@dynamic-labs-sdk/client 0.26.10 → 0.27.0
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-XWDgGlk3.cjs → InvalidParamError-BHNFIR4K.cjs} +4 -4
- package/dist/{InvalidParamError-XWDgGlk3.cjs.map → InvalidParamError-BHNFIR4K.cjs.map} +1 -1
- package/dist/{InvalidParamError-De4xrOs4.esm.js → InvalidParamError-DJxqCxOB.esm.js} +3 -3
- package/dist/{InvalidParamError-De4xrOs4.esm.js.map → InvalidParamError-DJxqCxOB.esm.js.map} +1 -1
- package/dist/{InvalidParamError-DfGaCYmW.native.esm.js → InvalidParamError-D_EzyxXy.native.esm.js} +3 -3
- package/dist/{InvalidParamError-DfGaCYmW.native.esm.js.map → InvalidParamError-D_EzyxXy.native.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-Bws_qXec.native.esm.js → NotWaasWalletAccountError-BSon-4Ob.native.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-Bws_qXec.native.esm.js.map → NotWaasWalletAccountError-BSon-4Ob.native.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-rJzT_0wz.cjs → NotWaasWalletAccountError-CIUs1vxk.cjs} +3 -3
- package/dist/{NotWaasWalletAccountError-rJzT_0wz.cjs.map → NotWaasWalletAccountError-CIUs1vxk.cjs.map} +1 -1
- package/dist/{NotWaasWalletAccountError-CdAul2Xh.esm.js → NotWaasWalletAccountError-DyqqJavQ.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-CdAul2Xh.esm.js.map → NotWaasWalletAccountError-DyqqJavQ.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 +7 -7
- package/dist/core.native.esm.js.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-C_6K_daH.cjs → getNetworkProviderFromNetworkId-B5HGICoA.cjs} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-C_6K_daH.cjs.map → getNetworkProviderFromNetworkId-B5HGICoA.cjs.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-Dz1Wd9-n.native.esm.js → getNetworkProviderFromNetworkId-BN3NLh8u.native.esm.js} +7 -7
- package/dist/getNetworkProviderFromNetworkId-BN3NLh8u.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-Cqzo1MhF.esm.js → getNetworkProviderFromNetworkId-EbAuEVM-.esm.js} +7 -7
- package/dist/getNetworkProviderFromNetworkId-EbAuEVM-.esm.js.map +1 -0
- package/dist/{getSignedSessionId-G9BPBkMb.esm.js → getSignedSessionId-BW4I7fDk.esm.js} +3 -3
- package/dist/{getSignedSessionId-G9BPBkMb.esm.js.map → getSignedSessionId-BW4I7fDk.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-D-G950gE.native.esm.js → getSignedSessionId-B_a6CXGP.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-D-G950gE.native.esm.js.map → getSignedSessionId-B_a6CXGP.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-B2YC9266.cjs → getSignedSessionId-DMMejcaD.cjs} +3 -3
- package/dist/{getSignedSessionId-B2YC9266.cjs.map → getSignedSessionId-DMMejcaD.cjs.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-SS1WQ2i3.cjs → getVerifiedCredentialForWalletAccount-C7-3wtlJ.cjs} +3 -3
- package/dist/{getVerifiedCredentialForWalletAccount-SS1WQ2i3.cjs.map → getVerifiedCredentialForWalletAccount-C7-3wtlJ.cjs.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-DqXnLSqq.esm.js → getVerifiedCredentialForWalletAccount-ChZvrEQJ.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-DqXnLSqq.esm.js.map → getVerifiedCredentialForWalletAccount-ChZvrEQJ.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-a1WXUW0u.native.esm.js → getVerifiedCredentialForWalletAccount-DMoMmbjK.native.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-a1WXUW0u.native.esm.js.map → getVerifiedCredentialForWalletAccount-DMoMmbjK.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 +8 -8
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-CPlDnHuj.esm.js → isMfaRequiredForAction-BUfcq6P2.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CPlDnHuj.esm.js.map → isMfaRequiredForAction-BUfcq6P2.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-CYVZ_XGq.cjs → isMfaRequiredForAction-IhCAdScF.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-CYVZ_XGq.cjs.map → isMfaRequiredForAction-IhCAdScF.cjs.map} +1 -1
- package/dist/{isMfaRequiredForAction-CwUE98S3.native.esm.js → isMfaRequiredForAction-iVSdynw1.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CwUE98S3.native.esm.js.map → isMfaRequiredForAction-iVSdynw1.native.esm.js.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 +3 -3
- package/dist/getNetworkProviderFromNetworkId-Cqzo1MhF.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-Dz1Wd9-n.native.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, j as randomString, k as getUserAgent, l as fetchAndStoreNonces, o as SDK_API_CORE_VERSION, s as getChainFromVerifiedCredentialChain, t as InvalidParamError, u as createApiClient, 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, C as createCrossTabBroadcast, D as FETCH_PROJECT_SETTINGS_TRACKER_KEY, E as createDeferredPromise, F as generateSessionKeys, H as retryOnFail, I as fetchProjectSettings, L as createStorageKeySchema, M as isServerSideRendering, N as getBuffer, O as GENERATE_SESSION_KEYS_TRACKER_KEY, P as __logoutWithReason_wrapped, R as createStorage, S as createLogger, T as CannotTrackError, U as subscribeWithSelector, V as isSignedIn, W as isEqualShallow, _ as WalletAlreadyLinkedToAnotherUserError, a as updateWalletProviderKeysForVerifiedCredentials, b as createRealtimeService, c as createSignInMessageStatement, d as createVisit, f as hasExtension, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, 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, p as createRealtimeChannelSchema, s as removeUnverifiedWalletAccount, t as getNetworkProviderFromNetworkId, u as setUnverifiedWalletAccounts, v as NoNetworkProvidersError, x as createKeychainService, y as getKeychainIndexedDBName } from "./getNetworkProviderFromNetworkId-
|
|
3
|
-
import { A as onceEvent, C as formatWalletAccountId, D as emitEvent, O as offEvent, T as splitWalletProviderKey, a as parseElevatedAccessToken, b as getWalletAccounts, d as isUserMissingMfaAuth, f as checkAndRaiseWalletAccountsChangedEvent, h as getWalletProviderFromWalletAccount, i as upsertElevatedAccessToken, k as onEvent, n as getWalletProviderByKey, o as restoreUserSharesForAllWalletAccounts, p as emitWalletAccountsChangedEvent, r as updateAuthFromVerifyResponse, t as getVerifiedCredentialForWalletAccount, u as getWalletProviders, w as normalizeAddress, y as NoWalletProviderFoundError } from "./getVerifiedCredentialForWalletAccount-
|
|
4
|
-
import { n as __refreshAuth_wrapped, t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-
|
|
5
|
-
import { n as getMfaMethods, 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, j as randomString, k as getUserAgent, l as fetchAndStoreNonces, o as SDK_API_CORE_VERSION, s as getChainFromVerifiedCredentialChain, t as InvalidParamError, u as createApiClient, v as MfaInvalidOtpError, w as assertDefined, x as APIError, y as LinkCredentialError, z as getCore } from "./InvalidParamError-DJxqCxOB.esm.js";
|
|
2
|
+
import { A as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, B as createLocalStorageAdapter, C as createCrossTabBroadcast, D as FETCH_PROJECT_SETTINGS_TRACKER_KEY, E as createDeferredPromise, F as generateSessionKeys, H as retryOnFail, I as fetchProjectSettings, L as createStorageKeySchema, M as isServerSideRendering, N as getBuffer, O as GENERATE_SESSION_KEYS_TRACKER_KEY, P as __logoutWithReason_wrapped, R as createStorage, S as createLogger, T as CannotTrackError, U as subscribeWithSelector, V as isSignedIn, W as isEqualShallow, _ as WalletAlreadyLinkedToAnotherUserError, a as updateWalletProviderKeysForVerifiedCredentials, b as createRealtimeService, c as createSignInMessageStatement, d as createVisit, f as hasExtension, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, 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, p as createRealtimeChannelSchema, s as removeUnverifiedWalletAccount, t as getNetworkProviderFromNetworkId, u as setUnverifiedWalletAccounts, v as NoNetworkProvidersError, x as createKeychainService, y as getKeychainIndexedDBName } from "./getNetworkProviderFromNetworkId-EbAuEVM-.esm.js";
|
|
3
|
+
import { A as onceEvent, C as formatWalletAccountId, D as emitEvent, O as offEvent, T as splitWalletProviderKey, a as parseElevatedAccessToken, b as getWalletAccounts, d as isUserMissingMfaAuth, f as checkAndRaiseWalletAccountsChangedEvent, h as getWalletProviderFromWalletAccount, i as upsertElevatedAccessToken, k as onEvent, n as getWalletProviderByKey, o as restoreUserSharesForAllWalletAccounts, p as emitWalletAccountsChangedEvent, r as updateAuthFromVerifyResponse, t as getVerifiedCredentialForWalletAccount, u as getWalletProviders, w as normalizeAddress, y as NoWalletProviderFoundError } from "./getVerifiedCredentialForWalletAccount-ChZvrEQJ.esm.js";
|
|
4
|
+
import { n as __refreshAuth_wrapped, t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-DyqqJavQ.esm.js";
|
|
5
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-BUfcq6P2.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();
|
|
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
|