@dynamic-labs-sdk/client 0.23.1 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/{InvalidParamError-BPDELsWj.cjs.js → InvalidParamError-B2Zg4cNy.cjs.js} +4 -4
  2. package/dist/{InvalidParamError-BPDELsWj.cjs.js.map → InvalidParamError-B2Zg4cNy.cjs.js.map} +1 -1
  3. package/dist/{InvalidParamError-PbPtszcu.esm.js → InvalidParamError-CMLuCl4V.esm.js} +3 -3
  4. package/dist/{InvalidParamError-PbPtszcu.esm.js.map → InvalidParamError-CMLuCl4V.esm.js.map} +1 -1
  5. package/dist/{NotWaasWalletAccountError-yGgYWVWH.cjs.js → NotWaasWalletAccountError-CDTnlyoi.cjs.js} +3 -3
  6. package/dist/{NotWaasWalletAccountError-yGgYWVWH.cjs.js.map → NotWaasWalletAccountError-CDTnlyoi.cjs.js.map} +1 -1
  7. package/dist/{NotWaasWalletAccountError-rk8VKKmI.esm.js → NotWaasWalletAccountError-Cc-JW6v2.esm.js} +3 -3
  8. package/dist/{NotWaasWalletAccountError-rk8VKKmI.esm.js.map → NotWaasWalletAccountError-Cc-JW6v2.esm.js.map} +1 -1
  9. package/dist/core.cjs.js +5 -5
  10. package/dist/core.esm.js +7 -7
  11. package/dist/core.esm.js.map +1 -1
  12. package/dist/{getNetworkProviderFromNetworkId-De3xWm2m.cjs.js → getNetworkProviderFromNetworkId--laFFnCw.cjs.js} +3 -3
  13. package/dist/{getNetworkProviderFromNetworkId-De3xWm2m.cjs.js.map → getNetworkProviderFromNetworkId--laFFnCw.cjs.js.map} +1 -1
  14. package/dist/{getNetworkProviderFromNetworkId-CWvu3VlX.esm.js → getNetworkProviderFromNetworkId-DZT4uwvK.esm.js} +7 -7
  15. package/dist/{getNetworkProviderFromNetworkId-CWvu3VlX.esm.js.map → getNetworkProviderFromNetworkId-DZT4uwvK.esm.js.map} +1 -1
  16. package/dist/{getSignedSessionId-Dxeg8aKK.esm.js → getSignedSessionId-BxIa5aIJ.esm.js} +3 -3
  17. package/dist/{getSignedSessionId-Dxeg8aKK.esm.js.map → getSignedSessionId-BxIa5aIJ.esm.js.map} +1 -1
  18. package/dist/{getSignedSessionId-D53DSqqV.cjs.js → getSignedSessionId-DAiBb3Cs.cjs.js} +3 -3
  19. package/dist/{getSignedSessionId-D53DSqqV.cjs.js.map → getSignedSessionId-DAiBb3Cs.cjs.js.map} +1 -1
  20. package/dist/{getVerifiedCredentialForWalletAccount-CoEfadjb.cjs.js → getVerifiedCredentialForWalletAccount-CxDYYgVI.cjs.js} +3 -3
  21. package/dist/{getVerifiedCredentialForWalletAccount-CoEfadjb.cjs.js.map → getVerifiedCredentialForWalletAccount-CxDYYgVI.cjs.js.map} +1 -1
  22. package/dist/{getVerifiedCredentialForWalletAccount-YZIMpV8i.esm.js → getVerifiedCredentialForWalletAccount-ppy36Ru3.esm.js} +2 -2
  23. package/dist/{getVerifiedCredentialForWalletAccount-YZIMpV8i.esm.js.map → getVerifiedCredentialForWalletAccount-ppy36Ru3.esm.js.map} +1 -1
  24. package/dist/index.cjs.js +5 -5
  25. package/dist/index.esm.js +8 -8
  26. package/dist/index.esm.js.map +1 -1
  27. package/dist/{isMfaRequiredForAction-DpcCQ_eS.esm.js → isMfaRequiredForAction-CriARzkK.esm.js} +2 -2
  28. package/dist/{isMfaRequiredForAction-DpcCQ_eS.esm.js.map → isMfaRequiredForAction-CriARzkK.esm.js.map} +1 -1
  29. package/dist/{isMfaRequiredForAction-Ce0nDvgt.cjs.js → isMfaRequiredForAction-x-QgXEWm.cjs.js} +2 -2
  30. package/dist/{isMfaRequiredForAction-Ce0nDvgt.cjs.js.map → isMfaRequiredForAction-x-QgXEWm.cjs.js.map} +1 -1
  31. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  32. package/dist/waas.cjs.js +4 -4
  33. package/dist/waas.esm.js +3 -3
  34. package/dist/waasCore.cjs.js +4 -4
  35. package/dist/waasCore.esm.js +3 -3
  36. package/package.json +3 -3
package/dist/index.esm.js CHANGED
@@ -1,12 +1,12 @@
1
- import { A as ValueMustBeDefinedError, B as name, D as extractSessionId, E as getUserAgent, F as getDefaultClient, I as setDefaultClient, M as CLIENT_SDK_NAME, O as isCookieEnabled, P as NONCE_POOL_SIZE, R as BaseError, S as __getElevatedAccessToken_wrapped, T as DEFAULT_PII_FIELDS, V as version, _ as MfaRateLimitedError, a as DYNAMIC_ICONIC_SPRITE_URL, b as InvalidExternalAuthError, c as CHAINS_INFO_MAP, d as UnauthorizedError, g as SandboxMaximumThresholdReachedError, h as __getNonce_wrapped, j as randomString, k as assertDefined, l as fetchAndStoreNonces, o as SDK_API_CORE_VERSION, s as __getChainFromVerifiedCredentialChain_wrapped, t as InvalidParamError, u as __createApiClient_wrapped, v as MfaInvalidOtpError, w as instrumentFunction, x as APIError, y as LinkCredentialError, z as getCore } from "./InvalidParamError-PbPtszcu.esm.js";
2
- import { A as getBuffer, C as CannotTrackError, D as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, E as GENERATE_SESSION_KEYS_TRACKER_KEY, F as __createLocalStorageAdapter_wrapped, I as __subscribeWithSelector_wrapped, L as isEqualShallow, M as __createStorageKeySchema_wrapped, N as __createStorage_wrapped, O as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, T as FETCH_PROJECT_SETTINGS_TRACKER_KEY, _ as NoNetworkProvidersError, a as __updateWalletProviderKeysForVerifiedCredentials_wrapped, b as __createLogger_wrapped, c as __createSignInMessageStatement_wrapped, d as __createVisit_wrapped, f as hasExtension, g as WalletAlreadyLinkedToAnotherUserError, h as isCaptchaRequired, i as __getNetworksData_wrapped, j as __generateSessionKeys_wrapped, k as isServerSideRendering, l as formatSignInMessage, m as __consumeCaptchaToken_wrapped, o as __verifyMessageSignatureOwnership_wrapped, p as __setCaptchaToken_wrapped, s as __removeUnverifiedWalletAccount_wrapped, t as __getNetworkProviderFromNetworkId_wrapped, u as __setUnverifiedWalletAccounts_wrapped, v as __createRealtimeService_wrapped, w as __createDeferredPromise_wrapped, x as __createCrossTabBroadcast_wrapped, y as __createIndexedDBKeychainService_wrapped } from "./getNetworkProviderFromNetworkId-CWvu3VlX.esm.js";
3
- import { A as setCookie, C as normalizeAddress, D as __onEvent_wrapped, E as __offEvent_wrapped, O as __onceEvent_wrapped, S as formatWalletAccountId, a as parseElevatedAccessToken, d as checkAndRaiseWalletAccountsChangedEvent, f as emitWalletAccountsChangedEvent, i as upsertElevatedAccessToken, k as emitEvent, m as __getWalletProviderFromWalletAccount_wrapped, n as getWalletProviderByKey, o as restoreUserSharesForAllWalletAccounts, p as DYNAMIC_AUTH_COOKIE_NAME, r as __updateAuthFromVerifyResponse_wrapped, t as __getVerifiedCredentialForWalletAccount_wrapped, u as __getWalletProviders_wrapped, v as NoWalletProviderFoundError, w as splitWalletProviderKey, y as __getWalletAccounts_wrapped } from "./getVerifiedCredentialForWalletAccount-YZIMpV8i.esm.js";
4
- import { n as __refreshAuth_wrapped, t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-rk8VKKmI.esm.js";
5
- import { n as __getMfaMethods_wrapped, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-DpcCQ_eS.esm.js";
1
+ import { A as ValueMustBeDefinedError, B as name, D as extractSessionId, E as getUserAgent, F as getDefaultClient, I as setDefaultClient, M as CLIENT_SDK_NAME, O as isCookieEnabled, P as NONCE_POOL_SIZE, R as BaseError, S as __getElevatedAccessToken_wrapped, T as DEFAULT_PII_FIELDS, V as version, _ as MfaRateLimitedError, a as DYNAMIC_ICONIC_SPRITE_URL, b as InvalidExternalAuthError, c as CHAINS_INFO_MAP, d as UnauthorizedError, g as SandboxMaximumThresholdReachedError, h as __getNonce_wrapped, j as randomString, k as assertDefined, l as fetchAndStoreNonces, o as SDK_API_CORE_VERSION, s as __getChainFromVerifiedCredentialChain_wrapped, t as InvalidParamError, u as __createApiClient_wrapped, v as MfaInvalidOtpError, w as instrumentFunction, x as APIError, y as LinkCredentialError, z as getCore } from "./InvalidParamError-CMLuCl4V.esm.js";
2
+ import { A as getBuffer, C as CannotTrackError, D as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, E as GENERATE_SESSION_KEYS_TRACKER_KEY, F as __createLocalStorageAdapter_wrapped, I as __subscribeWithSelector_wrapped, L as isEqualShallow, M as __createStorageKeySchema_wrapped, N as __createStorage_wrapped, O as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, T as FETCH_PROJECT_SETTINGS_TRACKER_KEY, _ as NoNetworkProvidersError, a as __updateWalletProviderKeysForVerifiedCredentials_wrapped, b as __createLogger_wrapped, c as __createSignInMessageStatement_wrapped, d as __createVisit_wrapped, f as hasExtension, g as WalletAlreadyLinkedToAnotherUserError, h as isCaptchaRequired, i as __getNetworksData_wrapped, j as __generateSessionKeys_wrapped, k as isServerSideRendering, l as formatSignInMessage, m as __consumeCaptchaToken_wrapped, o as __verifyMessageSignatureOwnership_wrapped, p as __setCaptchaToken_wrapped, s as __removeUnverifiedWalletAccount_wrapped, t as __getNetworkProviderFromNetworkId_wrapped, u as __setUnverifiedWalletAccounts_wrapped, v as __createRealtimeService_wrapped, w as __createDeferredPromise_wrapped, x as __createCrossTabBroadcast_wrapped, y as __createIndexedDBKeychainService_wrapped } from "./getNetworkProviderFromNetworkId-DZT4uwvK.esm.js";
3
+ import { A as setCookie, C as normalizeAddress, D as __onEvent_wrapped, E as __offEvent_wrapped, O as __onceEvent_wrapped, S as formatWalletAccountId, a as parseElevatedAccessToken, d as checkAndRaiseWalletAccountsChangedEvent, f as emitWalletAccountsChangedEvent, i as upsertElevatedAccessToken, k as emitEvent, m as __getWalletProviderFromWalletAccount_wrapped, n as getWalletProviderByKey, o as restoreUserSharesForAllWalletAccounts, p as DYNAMIC_AUTH_COOKIE_NAME, r as __updateAuthFromVerifyResponse_wrapped, t as __getVerifiedCredentialForWalletAccount_wrapped, u as __getWalletProviders_wrapped, v as NoWalletProviderFoundError, w as splitWalletProviderKey, y as __getWalletAccounts_wrapped } from "./getVerifiedCredentialForWalletAccount-ppy36Ru3.esm.js";
4
+ import { n as __refreshAuth_wrapped, t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-Cc-JW6v2.esm.js";
5
+ import { n as __getMfaMethods_wrapped, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-CriARzkK.esm.js";
6
6
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
7
7
  import { AuthModeEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, TokenScope, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
8
8
  import * as z from "zod/mini";
9
- import EventEmitter$1, { EventEmitter } from "eventemitter3";
9
+ import EventEmitter, { EventEmitter as EventEmitter$1 } from "eventemitter3";
10
10
  import { browserSupportsWebAuthn, startAuthentication, startRegistration } from "@simplewebauthn/browser";
11
11
 
12
12
  //#region src/modules/state/raiseStateEvents/events.ts
@@ -726,7 +726,7 @@ const createAsyncTrack = () => {
726
726
  * This ensures no process is missed (as it would throw when tracked on a different node tick).
727
727
  */
728
728
  let isTrackEnabled = true;
729
- const eventEmitter = new EventEmitter();
729
+ const eventEmitter = new EventEmitter$1();
730
730
  const allSettledPromise = __createDeferredPromise_wrapped();
731
731
  const tracker = /* @__PURE__ */ new Map();
732
732
  /**
@@ -773,7 +773,7 @@ const createAsyncTrack = () => {
773
773
  //#endregion
774
774
  //#region src/services/eventEmitter/createEventEmitter.ts
775
775
  /** @not-instrumented */
776
- const createEventEmitter = () => new EventEmitter$1();
776
+ const createEventEmitter = () => new EventEmitter();
777
777
 
778
778
  //#endregion
779
779
  //#region src/errors/UnavailableInServerSideError.ts