@dynamic-labs-sdk/client 0.23.0 → 0.23.1
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-DclKf-Fr.cjs.js → InvalidParamError-BPDELsWj.cjs.js} +3 -3
- package/dist/{InvalidParamError-DclKf-Fr.cjs.js.map → InvalidParamError-BPDELsWj.cjs.js.map} +1 -1
- package/dist/{InvalidParamError-C007HUxI.esm.js → InvalidParamError-PbPtszcu.esm.js} +2 -2
- package/dist/{InvalidParamError-C007HUxI.esm.js.map → InvalidParamError-PbPtszcu.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-Brs6Iazd.esm.js → NotWaasWalletAccountError-rk8VKKmI.esm.js} +3 -3
- package/dist/{NotWaasWalletAccountError-Brs6Iazd.esm.js.map → NotWaasWalletAccountError-rk8VKKmI.esm.js.map} +1 -1
- package/dist/{NotWaasWalletAccountError-CjZRvGAC.cjs.js → NotWaasWalletAccountError-yGgYWVWH.cjs.js} +3 -3
- package/dist/{NotWaasWalletAccountError-CjZRvGAC.cjs.js.map → NotWaasWalletAccountError-yGgYWVWH.cjs.js.map} +1 -1
- package/dist/core.cjs.js +5 -5
- package/dist/core.esm.js +7 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DQ8l1SUO.esm.js → getNetworkProviderFromNetworkId-CWvu3VlX.esm.js} +7 -7
- package/dist/{getNetworkProviderFromNetworkId-DQ8l1SUO.esm.js.map → getNetworkProviderFromNetworkId-CWvu3VlX.esm.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CkGWP1AK.cjs.js → getNetworkProviderFromNetworkId-De3xWm2m.cjs.js} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-CkGWP1AK.cjs.js.map → getNetworkProviderFromNetworkId-De3xWm2m.cjs.js.map} +1 -1
- package/dist/{getSignedSessionId-C0_JcdCo.cjs.js → getSignedSessionId-D53DSqqV.cjs.js} +3 -3
- package/dist/{getSignedSessionId-C0_JcdCo.cjs.js.map → getSignedSessionId-D53DSqqV.cjs.js.map} +1 -1
- package/dist/{getSignedSessionId-Dp4-deNe.esm.js → getSignedSessionId-Dxeg8aKK.esm.js} +3 -3
- package/dist/{getSignedSessionId-Dp4-deNe.esm.js.map → getSignedSessionId-Dxeg8aKK.esm.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-BZNiNonx.cjs.js → getVerifiedCredentialForWalletAccount-CoEfadjb.cjs.js} +3 -3
- package/dist/{getVerifiedCredentialForWalletAccount-BZNiNonx.cjs.js.map → getVerifiedCredentialForWalletAccount-CoEfadjb.cjs.js.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-BsosjAwN.esm.js → getVerifiedCredentialForWalletAccount-YZIMpV8i.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-BsosjAwN.esm.js.map → getVerifiedCredentialForWalletAccount-YZIMpV8i.esm.js.map} +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-de1lo55N.cjs.js → isMfaRequiredForAction-Ce0nDvgt.cjs.js} +2 -2
- package/dist/{isMfaRequiredForAction-de1lo55N.cjs.js.map → isMfaRequiredForAction-Ce0nDvgt.cjs.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-i9M-yk-f.esm.js → isMfaRequiredForAction-DpcCQ_eS.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-i9M-yk-f.esm.js.map → isMfaRequiredForAction-DpcCQ_eS.esm.js.map} +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/waas.cjs.js +4 -4
- package/dist/waas.esm.js +3 -3
- package/dist/waasCore.cjs.js +4 -4
- package/dist/waasCore.esm.js +3 -3
- package/package.json +2 -2
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-
|
|
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-
|
|
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-
|
|
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 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";
|
|
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
|
|
@@ -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();
|
|
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();
|
|
776
|
+
const createEventEmitter = () => new EventEmitter$1();
|
|
777
777
|
|
|
778
778
|
//#endregion
|
|
779
779
|
//#region src/errors/UnavailableInServerSideError.ts
|