@dynamic-labs-sdk/client 0.26.3 → 0.26.4
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.
- package/dist/{InvalidParamError-lzmyACdu.native.esm.js → InvalidParamError-CB0LQwcO.native.esm.js} +2 -2
- package/dist/{InvalidParamError-lzmyACdu.native.esm.js.map → InvalidParamError-CB0LQwcO.native.esm.js.map} +1 -1
- package/dist/{InvalidParamError-D70dsAPf.esm.js → InvalidParamError-CaO8zuAt.esm.js} +2 -2
- package/dist/{InvalidParamError-D70dsAPf.esm.js.map → InvalidParamError-CaO8zuAt.esm.js.map} +1 -1
- package/dist/{InvalidParamError-BVuNzsXN.cjs → InvalidParamError-D745dtMS.cjs} +3 -3
- package/dist/{InvalidParamError-BVuNzsXN.cjs.map → InvalidParamError-D745dtMS.cjs.map} +1 -1
- package/dist/{NotWaasWalletAccountError-Ba1US7YQ.esm.js → NotWaasWalletAccountError-D9HOBza_.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-Ba1US7YQ.esm.js.map → NotWaasWalletAccountError-D9HOBza_.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-DAthnj1O.cjs → NotWaasWalletAccountError-DEZeNnLy.cjs} +3 -3
- package/dist/{NotWaasWalletAccountError-DAthnj1O.cjs.map → NotWaasWalletAccountError-DEZeNnLy.cjs.map} +1 -1
- package/dist/{NotWaasWalletAccountError-DA_3rPzY.native.esm.js → NotWaasWalletAccountError-VxTJzIUw.native.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-DA_3rPzY.native.esm.js.map → NotWaasWalletAccountError-VxTJzIUw.native.esm.js.map} +1 -1
- package/dist/core.cjs +5 -5
- package/dist/core.esm.js +7 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +5 -5
- package/dist/{getNetworkProviderFromNetworkId-CCzPLH2P.cjs → getNetworkProviderFromNetworkId-C0hhJBuw.cjs} +5 -4
- package/dist/getNetworkProviderFromNetworkId-C0hhJBuw.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-D-5y3cSc.esm.js → getNetworkProviderFromNetworkId-DS1xtXK3.esm.js} +9 -8
- package/dist/getNetworkProviderFromNetworkId-DS1xtXK3.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-BHlnzW2_.native.esm.js → getNetworkProviderFromNetworkId-De1Y__cK.native.esm.js} +5 -4
- package/dist/getNetworkProviderFromNetworkId-De1Y__cK.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BmFAsio4.cjs → getSignedSessionId-BEHO1AHh.cjs} +3 -3
- package/dist/{getSignedSessionId-BmFAsio4.cjs.map → getSignedSessionId-BEHO1AHh.cjs.map} +1 -1
- package/dist/{getSignedSessionId-AtcPEeBb.native.esm.js → getSignedSessionId-Dez0C64D.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-AtcPEeBb.native.esm.js.map → getSignedSessionId-Dez0C64D.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-rgb8ovcE.esm.js → getSignedSessionId-DrqGRbMx.esm.js} +3 -3
- package/dist/{getSignedSessionId-rgb8ovcE.esm.js.map → getSignedSessionId-DrqGRbMx.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-2KeNZPyG.esm.js → getVerifiedCredentialForWalletAccount-BHVopHZ0.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-2KeNZPyG.esm.js.map → getVerifiedCredentialForWalletAccount-BHVopHZ0.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-DlaMYdQB.cjs → getVerifiedCredentialForWalletAccount-C-21KB51.cjs} +3 -3
- package/dist/{getVerifiedCredentialForWalletAccount-DlaMYdQB.cjs.map → getVerifiedCredentialForWalletAccount-C-21KB51.cjs.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-DnkqOcDi.native.esm.js → getVerifiedCredentialForWalletAccount-DPdNYxR1.native.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-DnkqOcDi.native.esm.js.map → getVerifiedCredentialForWalletAccount-DPdNYxR1.native.esm.js.map} +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +5 -5
- package/dist/{isMfaRequiredForAction-CpucxOPi.native.esm.js → isMfaRequiredForAction-BCmIa8zG.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CpucxOPi.native.esm.js.map → isMfaRequiredForAction-BCmIa8zG.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-nMwLvQ_T.esm.js → isMfaRequiredForAction-CUnqNQlh.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-nMwLvQ_T.esm.js.map → isMfaRequiredForAction-CUnqNQlh.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-BkOri8C4.cjs → isMfaRequiredForAction-DQPdh-pT.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-BkOri8C4.cjs.map → isMfaRequiredForAction-DQPdh-pT.cjs.map} +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs +4 -4
- package/dist/waas.esm.js +3 -3
- package/dist/waas.native.esm.js +3 -3
- package/dist/waasCore.cjs +4 -4
- package/dist/waasCore.esm.js +3 -3
- package/dist/waasCore.native.esm.js +3 -3
- package/package.json +2 -2
- package/dist/getNetworkProviderFromNetworkId-BHlnzW2_.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CCzPLH2P.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-D-5y3cSc.esm.js.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as extractSessionId, B as name, C as isCookieEnabled, D as instrumentFunction, E as __getElevatedAccessToken_wrapped, F as getDefaultClient, I as setDefaultClient, O as DEFAULT_PII_FIELDS, P as NONCE_POOL_SIZE, R as BaseError, T as ValueMustBeDefinedError, 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 getUserAgent, 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 assertDefined, x as APIError, y as LinkCredentialError, z as getCore } from "./InvalidParamError-
|
|
2
|
-
import { A as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, B as __createLocalStorageAdapter_wrapped, C as __createCrossTabBroadcast_wrapped, D as FETCH_PROJECT_SETTINGS_TRACKER_KEY, E as __createDeferredPromise_wrapped, F as __generateSessionKeys_wrapped, H as retryOnFail, I as __fetchProjectSettings_wrapped, L as __createStorageKeySchema_wrapped, M as isServerSideRendering, N as getBuffer, O as GENERATE_SESSION_KEYS_TRACKER_KEY, P as __logoutWithReason_wrapped, R as __createStorage_wrapped, S as __createLogger_wrapped, T as CannotTrackError, U as __subscribeWithSelector_wrapped, V as isSignedIn, W as isEqualShallow, _ as WalletAlreadyLinkedToAnotherUserError, a as __updateWalletProviderKeysForVerifiedCredentials_wrapped, b as __createRealtimeService_wrapped, c as __createSignInMessageStatement_wrapped, d as __createVisit_wrapped, f as hasExtension, g as isCaptchaRequired, h as __consumeCaptchaToken_wrapped, i as __getNetworksData_wrapped, j as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, k as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, l as formatSignInMessage, m as __setCaptchaToken_wrapped, o as __verifyMessageSignatureOwnership_wrapped, p as __createRealtimeChannelSchema_wrapped, s as __removeUnverifiedWalletAccount_wrapped, t as __getNetworkProviderFromNetworkId_wrapped, u as __setUnverifiedWalletAccounts_wrapped, v as NoNetworkProvidersError, x as createKeychainService, y as getKeychainIndexedDBName } from "./getNetworkProviderFromNetworkId-
|
|
3
|
-
import { A as emitEvent, C as formatWalletAccountId, D as __offEvent_wrapped, O as __onEvent_wrapped, T as splitWalletProviderKey, a as parseElevatedAccessToken, b as __getWalletAccounts_wrapped, d as isUserMissingMfaAuth, f as checkAndRaiseWalletAccountsChangedEvent, h as __getWalletProviderFromWalletAccount_wrapped, i as upsertElevatedAccessToken, k as __onceEvent_wrapped, n as getWalletProviderByKey, o as restoreUserSharesForAllWalletAccounts, p as emitWalletAccountsChangedEvent, r as __updateAuthFromVerifyResponse_wrapped, t as __getVerifiedCredentialForWalletAccount_wrapped, u as __getWalletProviders_wrapped, w as normalizeAddress, y as NoWalletProviderFoundError } from "./getVerifiedCredentialForWalletAccount-
|
|
4
|
-
import { n as __refreshAuth_wrapped, t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-
|
|
5
|
-
import { n as __getMfaMethods_wrapped, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
1
|
+
import { A as extractSessionId, B as name, C as isCookieEnabled, D as instrumentFunction, E as __getElevatedAccessToken_wrapped, F as getDefaultClient, I as setDefaultClient, O as DEFAULT_PII_FIELDS, P as NONCE_POOL_SIZE, R as BaseError, T as ValueMustBeDefinedError, 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 getUserAgent, 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 assertDefined, x as APIError, y as LinkCredentialError, z as getCore } from "./InvalidParamError-CaO8zuAt.esm.js";
|
|
2
|
+
import { A as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, B as __createLocalStorageAdapter_wrapped, C as __createCrossTabBroadcast_wrapped, D as FETCH_PROJECT_SETTINGS_TRACKER_KEY, E as __createDeferredPromise_wrapped, F as __generateSessionKeys_wrapped, H as retryOnFail, I as __fetchProjectSettings_wrapped, L as __createStorageKeySchema_wrapped, M as isServerSideRendering, N as getBuffer, O as GENERATE_SESSION_KEYS_TRACKER_KEY, P as __logoutWithReason_wrapped, R as __createStorage_wrapped, S as __createLogger_wrapped, T as CannotTrackError, U as __subscribeWithSelector_wrapped, V as isSignedIn, W as isEqualShallow, _ as WalletAlreadyLinkedToAnotherUserError, a as __updateWalletProviderKeysForVerifiedCredentials_wrapped, b as __createRealtimeService_wrapped, c as __createSignInMessageStatement_wrapped, d as __createVisit_wrapped, f as hasExtension, g as isCaptchaRequired, h as __consumeCaptchaToken_wrapped, i as __getNetworksData_wrapped, j as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, k as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, l as formatSignInMessage, m as __setCaptchaToken_wrapped, o as __verifyMessageSignatureOwnership_wrapped, p as __createRealtimeChannelSchema_wrapped, s as __removeUnverifiedWalletAccount_wrapped, t as __getNetworkProviderFromNetworkId_wrapped, u as __setUnverifiedWalletAccounts_wrapped, v as NoNetworkProvidersError, x as createKeychainService, y as getKeychainIndexedDBName } from "./getNetworkProviderFromNetworkId-DS1xtXK3.esm.js";
|
|
3
|
+
import { A as emitEvent, C as formatWalletAccountId, D as __offEvent_wrapped, O as __onEvent_wrapped, T as splitWalletProviderKey, a as parseElevatedAccessToken, b as __getWalletAccounts_wrapped, d as isUserMissingMfaAuth, f as checkAndRaiseWalletAccountsChangedEvent, h as __getWalletProviderFromWalletAccount_wrapped, i as upsertElevatedAccessToken, k as __onceEvent_wrapped, n as getWalletProviderByKey, o as restoreUserSharesForAllWalletAccounts, p as emitWalletAccountsChangedEvent, r as __updateAuthFromVerifyResponse_wrapped, t as __getVerifiedCredentialForWalletAccount_wrapped, u as __getWalletProviders_wrapped, w as normalizeAddress, y as NoWalletProviderFoundError } from "./getVerifiedCredentialForWalletAccount-BHVopHZ0.esm.js";
|
|
4
|
+
import { n as __refreshAuth_wrapped, t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-D9HOBza_.esm.js";
|
|
5
|
+
import { n as __getMfaMethods_wrapped, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-CUnqNQlh.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, { EventEmitter
|
|
9
|
+
import EventEmitter$1, { EventEmitter } from "eventemitter3";
|
|
10
10
|
import { browserSupportsWebAuthn, startAuthentication, startRegistration } from "@simplewebauthn/browser";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/state/raiseStateEvents/events.ts
|
|
@@ -535,7 +535,7 @@ const createAsyncTrack = () => {
|
|
|
535
535
|
* This ensures no process is missed (as it would throw when tracked on a different node tick).
|
|
536
536
|
*/
|
|
537
537
|
let isTrackEnabled = true;
|
|
538
|
-
const eventEmitter = new EventEmitter
|
|
538
|
+
const eventEmitter = new EventEmitter();
|
|
539
539
|
const allSettledPromise = __createDeferredPromise_wrapped();
|
|
540
540
|
const tracker = /* @__PURE__ */ new Map();
|
|
541
541
|
/**
|
|
@@ -582,7 +582,7 @@ const createAsyncTrack = () => {
|
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region src/services/eventEmitter/createEventEmitter.ts
|
|
584
584
|
/** @not-instrumented */
|
|
585
|
-
const createEventEmitter = () => new EventEmitter();
|
|
585
|
+
const createEventEmitter = () => new EventEmitter$1();
|
|
586
586
|
|
|
587
587
|
//#endregion
|
|
588
588
|
//#region src/errors/UnavailableInServerSideError.ts
|