SocialGouv / e2esdk

SDK to build end-to-end encrypted web applications
https://socialgouv.github.io/e2esdk
Apache License 2.0
21 stars 0 forks source link

Missing export in `@e2esdk/api` #55

Closed matmut7 closed 1 year ago

matmut7 commented 1 year ago

The latest @e2esdk/client uses a rather old @e2esdk/api.

The missing export seems to have been added in the code but not released.

import { thirtyTwoBytesBase64Schema, sixtyFourBytesBase64Schema, fingerprintSchema, timestampSchema, identitySchema as identitySchema$1, signatureSchema, deviceIdSchema, base64Bytes, signupResponse, signupCompleteResponse, encodeDeviceRegistrationURI, loginResponse, loginFinalResponse, deviceSchema, deviceEnrollmentResponse, deviceEnrolledResponse, decodeDeviceRegistrationURI, listDevicesResponseBody, getSharedKeysResponseBody, getSingleIdentityResponseBody, getMultipleIdentitiesResponseBody, getParticipantsResponseBody, permissionFlags, getKeychainResponseBody, websocketNotificationTypesSchema, WebSocketNotificationTypes, responseHeaders, isFarFromCurrentTime } from '@socialgouv/e2esdk-api';
                                                                                                                                                                                                                                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module '@socialgouv/e2esdk-api' does not provide an export named 'decodeDeviceRegistrationURI'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:438:15) {
  page: '/'
}
file:///home/mateo/Pro/socialgouv/template/node_modules/@socialgouv/e2esdk-client/dist/index.js:3
import { thirtyTwoBytesBase64Schema, sixtyFourBytesBase64Schema, fingerprintSchema, timestampSchema, identitySchema as identitySchema$1, signatureSchema, deviceIdSchema, base64Bytes, signupResponse, signupCompleteResponse, encodeDeviceRegistrationURI, loginResponse, loginFinalResponse, deviceSchema, deviceEnrollmentResponse, deviceEnrolledResponse, decodeDeviceRegistrationURI, listDevicesResponseBody, getSharedKeysResponseBody, getSingleIdentityResponseBody, getMultipleIdentitiesResponseBody, getParticipantsResponseBody, permissionFlags, getKeychainResponseBody, websocketNotificationTypesSchema, WebSocketNotificationTypes, responseHeaders, isFarFromCurrentTime } from '@socialgouv/e2esdk-api';
                                                                                                                                                                                                                                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module '@socialgouv/e2esdk-api' does not provide an export named 'decodeDeviceRegistrationURI'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:438:15) {
  page: '/'
}