@getpara/core-sdk 2.13.0 → 2.14.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.
@@ -107,7 +107,7 @@ var import_PregenWalletService = require("./services/PregenWalletService.js");
107
107
  var import_PortalUrlService = require("./services/PortalUrlService.js");
108
108
  var import_SessionManagementService = require("./services/SessionManagementService.js");
109
109
  var import_ExternalWalletService = require("./services/ExternalWalletService.js");
110
- var _stateManager, _authService, _walletService, _externalWalletService, _pregenWalletService, _pollingService, _portalUrlService, _sessionManagementService, _debugLogsEnabled, _ParaCore_instances, assertPartner_fn, toAuthInfo_fn, assertIsLinkingAccount_fn, assertIsLinkingAccountOrStart_fn, waitForLoginProcess_fn, logout_fn;
110
+ var _stateManager, _authService, _walletService, _externalWalletService, _pregenWalletService, _pollingService, _portalUrlService, _sessionManagementService, _debugLogsEnabled, _ParaCore_instances, assertPartner_fn, toAuthInfo_fn, _servicesInitialized, assertIsLinkingAccount_fn, assertIsLinkingAccountOrStart_fn, waitForLoginProcess_fn, logout_fn;
111
111
  if (typeof global !== "undefined") {
112
112
  global.Buffer = global.Buffer || import_buffer.Buffer;
113
113
  } else if (typeof window !== "undefined") {
@@ -197,6 +197,7 @@ const _ParaCore = class _ParaCore {
197
197
  yield this.platformUtils.secureStorage.clear(constants.PARA_PREFIX);
198
198
  }
199
199
  });
200
+ __privateAdd(this, _servicesInitialized, false);
200
201
  this.initExternalWalletProvider = (params) => __async(this, null, function* () {
201
202
  yield __privateGet(this, _externalWalletService).initExternalWalletProvider(params);
202
203
  });
@@ -491,59 +492,7 @@ const _ParaCore = class _ParaCore {
491
492
  if (!this.platformUtils.isSyncStorage || opts.useStorageOverrides) {
492
493
  return;
493
494
  }
494
- __privateSet(this, _authService, new import_AuthService.AuthService(this));
495
- __privateSet(this, _walletService, new import_WalletService.WalletService(this));
496
- __privateSet(this, _externalWalletService, new import_ExternalWalletService.ExternalWalletService(this));
497
- __privateSet(this, _pregenWalletService, new import_PregenWalletService.PregenWalletService(this));
498
- __privateSet(this, _pollingService, new import_PollingService.PollingService(this));
499
- __privateSet(this, _portalUrlService, new import_PortalUrlService.PortalUrlService(this));
500
- __privateSet(this, _sessionManagementService, new import_SessionManagementService.SessionManagementService(this));
501
- __privateSet(this, _stateManager, new import_CoreStateManager.CoreStateManager(this));
502
- __privateGet(this, _authService).init({
503
- stateManager: __privateGet(this, _stateManager),
504
- portalUrlService: __privateGet(this, _portalUrlService),
505
- externalWalletService: __privateGet(this, _externalWalletService),
506
- sessionManagementService: __privateGet(this, _sessionManagementService),
507
- pregenWalletService: __privateGet(this, _pregenWalletService),
508
- walletService: __privateGet(this, _walletService)
509
- });
510
- __privateGet(this, _walletService).init({
511
- authService: __privateGet(this, _authService),
512
- pollingService: __privateGet(this, _pollingService),
513
- pregenWalletService: __privateGet(this, _pregenWalletService),
514
- externalWalletService: __privateGet(this, _externalWalletService)
515
- });
516
- __privateGet(this, _externalWalletService).init({
517
- stateManager: __privateGet(this, _stateManager),
518
- authService: __privateGet(this, _authService),
519
- walletService: __privateGet(this, _walletService)
520
- });
521
- __privateGet(this, _pollingService).init({
522
- authService: __privateGet(this, _authService),
523
- pregenWalletService: __privateGet(this, _pregenWalletService),
524
- walletService: __privateGet(this, _walletService),
525
- portalUrlService: __privateGet(this, _portalUrlService),
526
- sessionManagementService: __privateGet(this, _sessionManagementService)
527
- });
528
- __privateGet(this, _pregenWalletService).init({
529
- stateManager: __privateGet(this, _stateManager),
530
- authService: __privateGet(this, _authService),
531
- walletService: __privateGet(this, _walletService),
532
- pollingService: __privateGet(this, _pollingService)
533
- });
534
- __privateGet(this, _portalUrlService).init({
535
- authService: __privateGet(this, _authService),
536
- walletService: __privateGet(this, _walletService),
537
- pregenWalletService: __privateGet(this, _pregenWalletService),
538
- sessionManagementService: __privateGet(this, _sessionManagementService)
539
- });
540
- __privateGet(this, _sessionManagementService).init({
541
- authService: __privateGet(this, _authService),
542
- portalUrlService: __privateGet(this, _portalUrlService),
543
- walletService: __privateGet(this, _walletService),
544
- pregenWalletService: __privateGet(this, _pregenWalletService),
545
- externalWalletService: __privateGet(this, _externalWalletService)
546
- });
495
+ this.initializeServices();
547
496
  this.initializeFromStorage();
548
497
  import_utils2.setupListeners.bind(this)();
549
498
  (0, import_utils2.autoBind)(this);
@@ -905,6 +854,63 @@ const _ParaCore = class _ParaCore {
905
854
  }
906
855
  return env;
907
856
  }
857
+ initializeServices() {
858
+ if (__privateGet(this, _servicesInitialized)) return;
859
+ __privateSet(this, _authService, new import_AuthService.AuthService(this));
860
+ __privateSet(this, _walletService, new import_WalletService.WalletService(this));
861
+ __privateSet(this, _externalWalletService, new import_ExternalWalletService.ExternalWalletService(this));
862
+ __privateSet(this, _pregenWalletService, new import_PregenWalletService.PregenWalletService(this));
863
+ __privateSet(this, _pollingService, new import_PollingService.PollingService(this));
864
+ __privateSet(this, _portalUrlService, new import_PortalUrlService.PortalUrlService(this));
865
+ __privateSet(this, _sessionManagementService, new import_SessionManagementService.SessionManagementService(this));
866
+ __privateSet(this, _stateManager, new import_CoreStateManager.CoreStateManager(this));
867
+ __privateGet(this, _authService).init({
868
+ stateManager: __privateGet(this, _stateManager),
869
+ portalUrlService: __privateGet(this, _portalUrlService),
870
+ externalWalletService: __privateGet(this, _externalWalletService),
871
+ sessionManagementService: __privateGet(this, _sessionManagementService),
872
+ pregenWalletService: __privateGet(this, _pregenWalletService),
873
+ walletService: __privateGet(this, _walletService)
874
+ });
875
+ __privateGet(this, _walletService).init({
876
+ authService: __privateGet(this, _authService),
877
+ pollingService: __privateGet(this, _pollingService),
878
+ pregenWalletService: __privateGet(this, _pregenWalletService),
879
+ externalWalletService: __privateGet(this, _externalWalletService)
880
+ });
881
+ __privateGet(this, _externalWalletService).init({
882
+ stateManager: __privateGet(this, _stateManager),
883
+ authService: __privateGet(this, _authService),
884
+ walletService: __privateGet(this, _walletService)
885
+ });
886
+ __privateGet(this, _pollingService).init({
887
+ authService: __privateGet(this, _authService),
888
+ pregenWalletService: __privateGet(this, _pregenWalletService),
889
+ walletService: __privateGet(this, _walletService),
890
+ portalUrlService: __privateGet(this, _portalUrlService),
891
+ sessionManagementService: __privateGet(this, _sessionManagementService)
892
+ });
893
+ __privateGet(this, _pregenWalletService).init({
894
+ stateManager: __privateGet(this, _stateManager),
895
+ authService: __privateGet(this, _authService),
896
+ walletService: __privateGet(this, _walletService),
897
+ pollingService: __privateGet(this, _pollingService)
898
+ });
899
+ __privateGet(this, _portalUrlService).init({
900
+ authService: __privateGet(this, _authService),
901
+ walletService: __privateGet(this, _walletService),
902
+ pregenWalletService: __privateGet(this, _pregenWalletService),
903
+ sessionManagementService: __privateGet(this, _sessionManagementService)
904
+ });
905
+ __privateGet(this, _sessionManagementService).init({
906
+ authService: __privateGet(this, _authService),
907
+ portalUrlService: __privateGet(this, _portalUrlService),
908
+ walletService: __privateGet(this, _walletService),
909
+ pregenWalletService: __privateGet(this, _pregenWalletService),
910
+ externalWalletService: __privateGet(this, _externalWalletService)
911
+ });
912
+ __privateSet(this, _servicesInitialized, true);
913
+ }
908
914
  // Create a dedicated interface for #authService
909
915
  getAuthServiceInterface() {
910
916
  const self2 = this;
@@ -1113,6 +1119,7 @@ const _ParaCore = class _ParaCore {
1113
1119
  init() {
1114
1120
  return __async(this, null, function* () {
1115
1121
  var _a, _b;
1122
+ this.initializeServices();
1116
1123
  __privateGet(this, _authService).userId = (yield this.localStorageGetItem(constants.LOCAL_STORAGE_USER_ID)) || void 0;
1117
1124
  const storageAuthInfo = (yield this.localStorageGetItem(constants.LOCAL_STORAGE_AUTH_INFO)) || void 0;
1118
1125
  const stringExternalWallets = yield this.localStorageGetItem(constants.LOCAL_STORAGE_EXTERNAL_WALLETS);
@@ -1168,6 +1175,8 @@ const _ParaCore = class _ParaCore {
1168
1175
  this.isEnclaveUser = JSON.parse(storedIsEnclaveUser);
1169
1176
  }
1170
1177
  import_utils2.setupListeners.bind(this)();
1178
+ (0, import_utils2.autoBind)(this);
1179
+ __privateGet(this, _stateManager).start();
1171
1180
  yield this.touchSession();
1172
1181
  });
1173
1182
  }
@@ -2326,6 +2335,12 @@ const _ParaCore = class _ParaCore {
2326
2335
  return __async(this, null, function* () {
2327
2336
  var _b;
2328
2337
  const _a = options, { params, shouldOpenPopup } = _a, walletParams = __objRest(_a, ["params", "shouldOpenPopup"]);
2338
+ const allowedProviders = Object.values(import_user_management_client.OnRampProvider);
2339
+ if (!params.provider || !allowedProviders.includes(params.provider)) {
2340
+ throw new Error(
2341
+ `Invalid onramp provider: ${JSON.stringify(params.provider)}. Must be one of: ${allowedProviders.join(", ")}`
2342
+ );
2343
+ }
2329
2344
  const onRampPurchase = yield this.ctx.client.createOnRampPurchase(__spreadValues({
2330
2345
  userId: this.userId,
2331
2346
  params: __spreadProps(__spreadValues({}, params), {
@@ -2803,6 +2818,7 @@ toAuthInfo_fn = function({
2803
2818
  }
2804
2819
  return (0, import_user_management_client.extractAuthInfo)(auth);
2805
2820
  };
2821
+ _servicesInitialized = new WeakMap();
2806
2822
  assertIsLinkingAccount_fn = function(types) {
2807
2823
  if (!this.accountLinkInProgress || this.accountLinkInProgress.isComplete) {
2808
2824
  throw new Error("no account linking in progress");
@@ -45,7 +45,7 @@ __export(constants_exports, {
45
45
  SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
46
46
  });
47
47
  module.exports = __toCommonJS(constants_exports);
48
- const PARA_CORE_VERSION = "2.13.0";
48
+ const PARA_CORE_VERSION = "2.14.0";
49
49
  const PREFIX = "@CAPSULE/";
50
50
  const PARA_PREFIX = "@PARA/";
51
51
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
@@ -174,7 +174,7 @@ class ExternalWalletService {
174
174
  for (const type of types) {
175
175
  const providerInterface = this.externalWalletProviderInterfaces[type];
176
176
  if (!providerInterface) {
177
- console.error(
177
+ console.warn(
178
178
  `External wallet provider interface for type ${type} is not initialized. Para connector will not be connected.`
179
179
  );
180
180
  continue;
@@ -115,7 +115,7 @@ const _CoreStateManager = class _CoreStateManager {
115
115
  * Extracts all data needed by UI consumers from authStateResult.
116
116
  */
117
117
  computeAuthStateInfo(authContext, walletContext) {
118
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
118
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
119
119
  const defaultAuthStateInfo = {
120
120
  userId: null,
121
121
  isPasskeySupported: false,
@@ -127,6 +127,7 @@ const _CoreStateManager = class _CoreStateManager {
127
127
  passkeyKnownDeviceUrl: null,
128
128
  passwordUrl: null,
129
129
  pinUrl: null,
130
+ passkeyId: null,
130
131
  verificationUrl: null,
131
132
  externalWalletVerification: null,
132
133
  recoverySecret: null,
@@ -162,6 +163,7 @@ const _CoreStateManager = class _CoreStateManager {
162
163
  let pinUrl = null;
163
164
  let verificationUrl = null;
164
165
  let passkeyHints = null;
166
+ let passkeyId = null;
165
167
  if (stage === "login") {
166
168
  const loginState = authStateResult;
167
169
  const authMethods = (_j = loginState.loginAuthMethods) != null ? _j : [];
@@ -184,9 +186,10 @@ const _CoreStateManager = class _CoreStateManager {
184
186
  passkeyUrl = (_s = signupState.passkeyUrl) != null ? _s : null;
185
187
  passwordUrl = (_t = signupState.passwordUrl) != null ? _t : null;
186
188
  pinUrl = (_u = signupState.pinUrl) != null ? _u : null;
189
+ passkeyId = (_v = signupState.passkeyId) != null ? _v : null;
187
190
  } else if (stage === "verify") {
188
191
  const verifyState = authStateResult;
189
- verificationUrl = (_v = verifyState.loginUrl) != null ? _v : null;
192
+ verificationUrl = (_w = verifyState.loginUrl) != null ? _w : null;
190
193
  }
191
194
  return {
192
195
  userId,
@@ -199,11 +202,12 @@ const _CoreStateManager = class _CoreStateManager {
199
202
  passkeyKnownDeviceUrl,
200
203
  passwordUrl,
201
204
  pinUrl,
205
+ passkeyId,
202
206
  verificationUrl,
203
207
  externalWalletVerification: externalWalletVerification ? {
204
- signatureVerificationMessage: (_w = externalWalletVerification.signatureVerificationMessage) != null ? _w : "",
205
- walletAddress: (_y = (_x = externalWalletVerification.externalWallet) == null ? void 0 : _x.address) != null ? _y : "",
206
- walletType: (_A = (_z = externalWalletVerification.externalWallet) == null ? void 0 : _z.type) != null ? _A : ""
208
+ signatureVerificationMessage: (_x = externalWalletVerification.signatureVerificationMessage) != null ? _x : "",
209
+ walletAddress: (_z = (_y = externalWalletVerification.externalWallet) == null ? void 0 : _y.address) != null ? _z : "",
210
+ walletType: (_B = (_A = externalWalletVerification.externalWallet) == null ? void 0 : _A.type) != null ? _B : ""
207
211
  } : null,
208
212
  recoverySecret,
209
213
  isNewUser
@@ -264,7 +268,7 @@ const _CoreStateManager = class _CoreStateManager {
264
268
  }
265
269
  authStateInfoEqual(a, b) {
266
270
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
267
- return a.userId === b.userId && a.isPasskeySupported === b.isPasskeySupported && a.hasPasskey === b.hasPasskey && a.hasPassword === b.hasPassword && a.hasPin === b.hasPin && a.passkeyUrl === b.passkeyUrl && a.passkeyKnownDeviceUrl === b.passkeyKnownDeviceUrl && a.passwordUrl === b.passwordUrl && a.pinUrl === b.pinUrl && a.verificationUrl === b.verificationUrl && a.recoverySecret === b.recoverySecret && a.isNewUser === b.isNewUser && ((_a = a.externalWalletVerification) == null ? void 0 : _a.signatureVerificationMessage) === ((_b = b.externalWalletVerification) == null ? void 0 : _b.signatureVerificationMessage) && ((_c = a.externalWalletVerification) == null ? void 0 : _c.walletAddress) === ((_d = b.externalWalletVerification) == null ? void 0 : _d.walletAddress) && ((_e = a.externalWalletVerification) == null ? void 0 : _e.walletType) === ((_f = b.externalWalletVerification) == null ? void 0 : _f.walletType) && ((_g = a.passkeyHints) == null ? void 0 : _g.length) === ((_h = b.passkeyHints) == null ? void 0 : _h.length) && ((_i = a.passkeyHints) != null ? _i : []).every(
271
+ return a.userId === b.userId && a.isPasskeySupported === b.isPasskeySupported && a.hasPasskey === b.hasPasskey && a.hasPassword === b.hasPassword && a.hasPin === b.hasPin && a.passkeyUrl === b.passkeyUrl && a.passkeyKnownDeviceUrl === b.passkeyKnownDeviceUrl && a.passwordUrl === b.passwordUrl && a.pinUrl === b.pinUrl && a.passkeyId === b.passkeyId && a.verificationUrl === b.verificationUrl && a.recoverySecret === b.recoverySecret && a.isNewUser === b.isNewUser && ((_a = a.externalWalletVerification) == null ? void 0 : _a.signatureVerificationMessage) === ((_b = b.externalWalletVerification) == null ? void 0 : _b.signatureVerificationMessage) && ((_c = a.externalWalletVerification) == null ? void 0 : _c.walletAddress) === ((_d = b.externalWalletVerification) == null ? void 0 : _d.walletAddress) && ((_e = a.externalWalletVerification) == null ? void 0 : _e.walletType) === ((_f = b.externalWalletVerification) == null ? void 0 : _f.walletType) && ((_g = a.passkeyHints) == null ? void 0 : _g.length) === ((_h = b.passkeyHints) == null ? void 0 : _h.length) && ((_i = a.passkeyHints) != null ? _i : []).every(
268
272
  (hint, i) => hint.useragent === b.passkeyHints[i].useragent && hint.aaguid === b.passkeyHints[i].aaguid
269
273
  );
270
274
  }
@@ -129,6 +129,18 @@ function createWalletStateMachine(paraCoreInterface) {
129
129
  return stage === "login" || stage === "done" || stage === "verify" && paraCoreInterface.authService.isEnclaveUser;
130
130
  },
131
131
  hasPreviousWalletsResult: ({ context }) => context.newWalletsResult !== null,
132
+ isWalletsAlreadySetUp: ({ context }) => {
133
+ var _a, _b;
134
+ const stage = (_b = (_a = context.authData) == null ? void 0 : _a.authStateResult) == null ? void 0 : _b.stage;
135
+ const isLogin = stage === "login" || stage === "done";
136
+ if (!isLogin) return false;
137
+ const currentIds = paraCoreInterface.walletService.currentWalletIdsArray;
138
+ if (currentIds.length === 0) return false;
139
+ return currentIds.every(([walletId]) => {
140
+ const wallet = paraCoreInterface.walletService.wallets[walletId];
141
+ return wallet && !!wallet.signer;
142
+ });
143
+ },
132
144
  // Check if the auth state is guest mode
133
145
  isGuestMode: ({ context }) => {
134
146
  var _a;
@@ -186,6 +198,13 @@ function createWalletStateMachine(paraCoreInterface) {
186
198
  target: "needs_wallets",
187
199
  guard: "isNewUser"
188
200
  },
201
+ {
202
+ // Wallets already set up (e.g., by loginWithPasskey on mobile) — still
203
+ // go through creating_wallets so any missing provider-required types
204
+ // get created. createWalletPerType is idempotent (checks #getMissingTypes).
205
+ target: "creating_wallets",
206
+ guard: "isWalletsAlreadySetUp"
207
+ },
189
208
  {
190
209
  target: "waiting_for_wallets",
191
210
  guard: "isLegacyOrEnclaveLogin"
@@ -8,7 +8,7 @@ import {
8
8
  __spreadProps,
9
9
  __spreadValues
10
10
  } from "./chunk-7B52C2XE.js";
11
- var _stateManager, _authService, _walletService, _externalWalletService, _pregenWalletService, _pollingService, _portalUrlService, _sessionManagementService, _debugLogsEnabled, _ParaCore_instances, assertPartner_fn, toAuthInfo_fn, assertIsLinkingAccount_fn, assertIsLinkingAccountOrStart_fn, waitForLoginProcess_fn, logout_fn;
11
+ var _stateManager, _authService, _walletService, _externalWalletService, _pregenWalletService, _pollingService, _portalUrlService, _sessionManagementService, _debugLogsEnabled, _ParaCore_instances, assertPartner_fn, toAuthInfo_fn, _servicesInitialized, assertIsLinkingAccount_fn, assertIsLinkingAccountOrStart_fn, waitForLoginProcess_fn, logout_fn;
12
12
  import { Buffer as NodeBuffer } from "buffer";
13
13
  if (typeof global !== "undefined") {
14
14
  global.Buffer = global.Buffer || NodeBuffer;
@@ -23,7 +23,8 @@ import {
23
23
  AuthMethod,
24
24
  extractAuthInfo,
25
25
  WALLET_TYPES,
26
- LINKED_ACCOUNT_TYPES
26
+ LINKED_ACCOUNT_TYPES,
27
+ OnRampProvider
27
28
  } from "@getpara/user-management-client";
28
29
  import forge from "node-forge";
29
30
  const { pki, jsbn } = forge;
@@ -138,6 +139,7 @@ const _ParaCore = class _ParaCore {
138
139
  yield this.platformUtils.secureStorage.clear(constants.PARA_PREFIX);
139
140
  }
140
141
  });
142
+ __privateAdd(this, _servicesInitialized, false);
141
143
  this.initExternalWalletProvider = (params) => __async(this, null, function* () {
142
144
  yield __privateGet(this, _externalWalletService).initExternalWalletProvider(params);
143
145
  });
@@ -432,59 +434,7 @@ const _ParaCore = class _ParaCore {
432
434
  if (!this.platformUtils.isSyncStorage || opts.useStorageOverrides) {
433
435
  return;
434
436
  }
435
- __privateSet(this, _authService, new AuthService(this));
436
- __privateSet(this, _walletService, new WalletService(this));
437
- __privateSet(this, _externalWalletService, new ExternalWalletService(this));
438
- __privateSet(this, _pregenWalletService, new PregenWalletService(this));
439
- __privateSet(this, _pollingService, new PollingService(this));
440
- __privateSet(this, _portalUrlService, new PortalUrlService(this));
441
- __privateSet(this, _sessionManagementService, new SessionManagementService(this));
442
- __privateSet(this, _stateManager, new CoreStateManager(this));
443
- __privateGet(this, _authService).init({
444
- stateManager: __privateGet(this, _stateManager),
445
- portalUrlService: __privateGet(this, _portalUrlService),
446
- externalWalletService: __privateGet(this, _externalWalletService),
447
- sessionManagementService: __privateGet(this, _sessionManagementService),
448
- pregenWalletService: __privateGet(this, _pregenWalletService),
449
- walletService: __privateGet(this, _walletService)
450
- });
451
- __privateGet(this, _walletService).init({
452
- authService: __privateGet(this, _authService),
453
- pollingService: __privateGet(this, _pollingService),
454
- pregenWalletService: __privateGet(this, _pregenWalletService),
455
- externalWalletService: __privateGet(this, _externalWalletService)
456
- });
457
- __privateGet(this, _externalWalletService).init({
458
- stateManager: __privateGet(this, _stateManager),
459
- authService: __privateGet(this, _authService),
460
- walletService: __privateGet(this, _walletService)
461
- });
462
- __privateGet(this, _pollingService).init({
463
- authService: __privateGet(this, _authService),
464
- pregenWalletService: __privateGet(this, _pregenWalletService),
465
- walletService: __privateGet(this, _walletService),
466
- portalUrlService: __privateGet(this, _portalUrlService),
467
- sessionManagementService: __privateGet(this, _sessionManagementService)
468
- });
469
- __privateGet(this, _pregenWalletService).init({
470
- stateManager: __privateGet(this, _stateManager),
471
- authService: __privateGet(this, _authService),
472
- walletService: __privateGet(this, _walletService),
473
- pollingService: __privateGet(this, _pollingService)
474
- });
475
- __privateGet(this, _portalUrlService).init({
476
- authService: __privateGet(this, _authService),
477
- walletService: __privateGet(this, _walletService),
478
- pregenWalletService: __privateGet(this, _pregenWalletService),
479
- sessionManagementService: __privateGet(this, _sessionManagementService)
480
- });
481
- __privateGet(this, _sessionManagementService).init({
482
- authService: __privateGet(this, _authService),
483
- portalUrlService: __privateGet(this, _portalUrlService),
484
- walletService: __privateGet(this, _walletService),
485
- pregenWalletService: __privateGet(this, _pregenWalletService),
486
- externalWalletService: __privateGet(this, _externalWalletService)
487
- });
437
+ this.initializeServices();
488
438
  this.initializeFromStorage();
489
439
  setupListeners.bind(this)();
490
440
  autoBind(this);
@@ -846,6 +796,63 @@ const _ParaCore = class _ParaCore {
846
796
  }
847
797
  return env;
848
798
  }
799
+ initializeServices() {
800
+ if (__privateGet(this, _servicesInitialized)) return;
801
+ __privateSet(this, _authService, new AuthService(this));
802
+ __privateSet(this, _walletService, new WalletService(this));
803
+ __privateSet(this, _externalWalletService, new ExternalWalletService(this));
804
+ __privateSet(this, _pregenWalletService, new PregenWalletService(this));
805
+ __privateSet(this, _pollingService, new PollingService(this));
806
+ __privateSet(this, _portalUrlService, new PortalUrlService(this));
807
+ __privateSet(this, _sessionManagementService, new SessionManagementService(this));
808
+ __privateSet(this, _stateManager, new CoreStateManager(this));
809
+ __privateGet(this, _authService).init({
810
+ stateManager: __privateGet(this, _stateManager),
811
+ portalUrlService: __privateGet(this, _portalUrlService),
812
+ externalWalletService: __privateGet(this, _externalWalletService),
813
+ sessionManagementService: __privateGet(this, _sessionManagementService),
814
+ pregenWalletService: __privateGet(this, _pregenWalletService),
815
+ walletService: __privateGet(this, _walletService)
816
+ });
817
+ __privateGet(this, _walletService).init({
818
+ authService: __privateGet(this, _authService),
819
+ pollingService: __privateGet(this, _pollingService),
820
+ pregenWalletService: __privateGet(this, _pregenWalletService),
821
+ externalWalletService: __privateGet(this, _externalWalletService)
822
+ });
823
+ __privateGet(this, _externalWalletService).init({
824
+ stateManager: __privateGet(this, _stateManager),
825
+ authService: __privateGet(this, _authService),
826
+ walletService: __privateGet(this, _walletService)
827
+ });
828
+ __privateGet(this, _pollingService).init({
829
+ authService: __privateGet(this, _authService),
830
+ pregenWalletService: __privateGet(this, _pregenWalletService),
831
+ walletService: __privateGet(this, _walletService),
832
+ portalUrlService: __privateGet(this, _portalUrlService),
833
+ sessionManagementService: __privateGet(this, _sessionManagementService)
834
+ });
835
+ __privateGet(this, _pregenWalletService).init({
836
+ stateManager: __privateGet(this, _stateManager),
837
+ authService: __privateGet(this, _authService),
838
+ walletService: __privateGet(this, _walletService),
839
+ pollingService: __privateGet(this, _pollingService)
840
+ });
841
+ __privateGet(this, _portalUrlService).init({
842
+ authService: __privateGet(this, _authService),
843
+ walletService: __privateGet(this, _walletService),
844
+ pregenWalletService: __privateGet(this, _pregenWalletService),
845
+ sessionManagementService: __privateGet(this, _sessionManagementService)
846
+ });
847
+ __privateGet(this, _sessionManagementService).init({
848
+ authService: __privateGet(this, _authService),
849
+ portalUrlService: __privateGet(this, _portalUrlService),
850
+ walletService: __privateGet(this, _walletService),
851
+ pregenWalletService: __privateGet(this, _pregenWalletService),
852
+ externalWalletService: __privateGet(this, _externalWalletService)
853
+ });
854
+ __privateSet(this, _servicesInitialized, true);
855
+ }
849
856
  // Create a dedicated interface for #authService
850
857
  getAuthServiceInterface() {
851
858
  const self2 = this;
@@ -1054,6 +1061,7 @@ const _ParaCore = class _ParaCore {
1054
1061
  init() {
1055
1062
  return __async(this, null, function* () {
1056
1063
  var _a, _b;
1064
+ this.initializeServices();
1057
1065
  __privateGet(this, _authService).userId = (yield this.localStorageGetItem(constants.LOCAL_STORAGE_USER_ID)) || void 0;
1058
1066
  const storageAuthInfo = (yield this.localStorageGetItem(constants.LOCAL_STORAGE_AUTH_INFO)) || void 0;
1059
1067
  const stringExternalWallets = yield this.localStorageGetItem(constants.LOCAL_STORAGE_EXTERNAL_WALLETS);
@@ -1109,6 +1117,8 @@ const _ParaCore = class _ParaCore {
1109
1117
  this.isEnclaveUser = JSON.parse(storedIsEnclaveUser);
1110
1118
  }
1111
1119
  setupListeners.bind(this)();
1120
+ autoBind(this);
1121
+ __privateGet(this, _stateManager).start();
1112
1122
  yield this.touchSession();
1113
1123
  });
1114
1124
  }
@@ -2267,6 +2277,12 @@ const _ParaCore = class _ParaCore {
2267
2277
  return __async(this, null, function* () {
2268
2278
  var _b;
2269
2279
  const _a = options, { params, shouldOpenPopup } = _a, walletParams = __objRest(_a, ["params", "shouldOpenPopup"]);
2280
+ const allowedProviders = Object.values(OnRampProvider);
2281
+ if (!params.provider || !allowedProviders.includes(params.provider)) {
2282
+ throw new Error(
2283
+ `Invalid onramp provider: ${JSON.stringify(params.provider)}. Must be one of: ${allowedProviders.join(", ")}`
2284
+ );
2285
+ }
2270
2286
  const onRampPurchase = yield this.ctx.client.createOnRampPurchase(__spreadValues({
2271
2287
  userId: this.userId,
2272
2288
  params: __spreadProps(__spreadValues({}, params), {
@@ -2744,6 +2760,7 @@ toAuthInfo_fn = function({
2744
2760
  }
2745
2761
  return extractAuthInfo(auth);
2746
2762
  };
2763
+ _servicesInitialized = new WeakMap();
2747
2764
  assertIsLinkingAccount_fn = function(types) {
2748
2765
  if (!this.accountLinkInProgress || this.accountLinkInProgress.isComplete) {
2749
2766
  throw new Error("no account linking in progress");
@@ -1,5 +1,5 @@
1
1
  import "./chunk-7B52C2XE.js";
2
- const PARA_CORE_VERSION = "2.13.0";
2
+ const PARA_CORE_VERSION = "2.14.0";
3
3
  const PREFIX = "@CAPSULE/";
4
4
  const PARA_PREFIX = "@PARA/";
5
5
  const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
@@ -116,7 +116,7 @@ class ExternalWalletService {
116
116
  for (const type of types) {
117
117
  const providerInterface = this.externalWalletProviderInterfaces[type];
118
118
  if (!providerInterface) {
119
- console.error(
119
+ console.warn(
120
120
  `External wallet provider interface for type ${type} is not initialized. Para connector will not be connected.`
121
121
  );
122
122
  continue;
@@ -80,7 +80,7 @@ const _CoreStateManager = class _CoreStateManager {
80
80
  * Extracts all data needed by UI consumers from authStateResult.
81
81
  */
82
82
  computeAuthStateInfo(authContext, walletContext) {
83
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
84
84
  const defaultAuthStateInfo = {
85
85
  userId: null,
86
86
  isPasskeySupported: false,
@@ -92,6 +92,7 @@ const _CoreStateManager = class _CoreStateManager {
92
92
  passkeyKnownDeviceUrl: null,
93
93
  passwordUrl: null,
94
94
  pinUrl: null,
95
+ passkeyId: null,
95
96
  verificationUrl: null,
96
97
  externalWalletVerification: null,
97
98
  recoverySecret: null,
@@ -127,6 +128,7 @@ const _CoreStateManager = class _CoreStateManager {
127
128
  let pinUrl = null;
128
129
  let verificationUrl = null;
129
130
  let passkeyHints = null;
131
+ let passkeyId = null;
130
132
  if (stage === "login") {
131
133
  const loginState = authStateResult;
132
134
  const authMethods = (_j = loginState.loginAuthMethods) != null ? _j : [];
@@ -149,9 +151,10 @@ const _CoreStateManager = class _CoreStateManager {
149
151
  passkeyUrl = (_s = signupState.passkeyUrl) != null ? _s : null;
150
152
  passwordUrl = (_t = signupState.passwordUrl) != null ? _t : null;
151
153
  pinUrl = (_u = signupState.pinUrl) != null ? _u : null;
154
+ passkeyId = (_v = signupState.passkeyId) != null ? _v : null;
152
155
  } else if (stage === "verify") {
153
156
  const verifyState = authStateResult;
154
- verificationUrl = (_v = verifyState.loginUrl) != null ? _v : null;
157
+ verificationUrl = (_w = verifyState.loginUrl) != null ? _w : null;
155
158
  }
156
159
  return {
157
160
  userId,
@@ -164,11 +167,12 @@ const _CoreStateManager = class _CoreStateManager {
164
167
  passkeyKnownDeviceUrl,
165
168
  passwordUrl,
166
169
  pinUrl,
170
+ passkeyId,
167
171
  verificationUrl,
168
172
  externalWalletVerification: externalWalletVerification ? {
169
- signatureVerificationMessage: (_w = externalWalletVerification.signatureVerificationMessage) != null ? _w : "",
170
- walletAddress: (_y = (_x = externalWalletVerification.externalWallet) == null ? void 0 : _x.address) != null ? _y : "",
171
- walletType: (_A = (_z = externalWalletVerification.externalWallet) == null ? void 0 : _z.type) != null ? _A : ""
173
+ signatureVerificationMessage: (_x = externalWalletVerification.signatureVerificationMessage) != null ? _x : "",
174
+ walletAddress: (_z = (_y = externalWalletVerification.externalWallet) == null ? void 0 : _y.address) != null ? _z : "",
175
+ walletType: (_B = (_A = externalWalletVerification.externalWallet) == null ? void 0 : _A.type) != null ? _B : ""
172
176
  } : null,
173
177
  recoverySecret,
174
178
  isNewUser
@@ -229,7 +233,7 @@ const _CoreStateManager = class _CoreStateManager {
229
233
  }
230
234
  authStateInfoEqual(a, b) {
231
235
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
232
- return a.userId === b.userId && a.isPasskeySupported === b.isPasskeySupported && a.hasPasskey === b.hasPasskey && a.hasPassword === b.hasPassword && a.hasPin === b.hasPin && a.passkeyUrl === b.passkeyUrl && a.passkeyKnownDeviceUrl === b.passkeyKnownDeviceUrl && a.passwordUrl === b.passwordUrl && a.pinUrl === b.pinUrl && a.verificationUrl === b.verificationUrl && a.recoverySecret === b.recoverySecret && a.isNewUser === b.isNewUser && ((_a = a.externalWalletVerification) == null ? void 0 : _a.signatureVerificationMessage) === ((_b = b.externalWalletVerification) == null ? void 0 : _b.signatureVerificationMessage) && ((_c = a.externalWalletVerification) == null ? void 0 : _c.walletAddress) === ((_d = b.externalWalletVerification) == null ? void 0 : _d.walletAddress) && ((_e = a.externalWalletVerification) == null ? void 0 : _e.walletType) === ((_f = b.externalWalletVerification) == null ? void 0 : _f.walletType) && ((_g = a.passkeyHints) == null ? void 0 : _g.length) === ((_h = b.passkeyHints) == null ? void 0 : _h.length) && ((_i = a.passkeyHints) != null ? _i : []).every(
236
+ return a.userId === b.userId && a.isPasskeySupported === b.isPasskeySupported && a.hasPasskey === b.hasPasskey && a.hasPassword === b.hasPassword && a.hasPin === b.hasPin && a.passkeyUrl === b.passkeyUrl && a.passkeyKnownDeviceUrl === b.passkeyKnownDeviceUrl && a.passwordUrl === b.passwordUrl && a.pinUrl === b.pinUrl && a.passkeyId === b.passkeyId && a.verificationUrl === b.verificationUrl && a.recoverySecret === b.recoverySecret && a.isNewUser === b.isNewUser && ((_a = a.externalWalletVerification) == null ? void 0 : _a.signatureVerificationMessage) === ((_b = b.externalWalletVerification) == null ? void 0 : _b.signatureVerificationMessage) && ((_c = a.externalWalletVerification) == null ? void 0 : _c.walletAddress) === ((_d = b.externalWalletVerification) == null ? void 0 : _d.walletAddress) && ((_e = a.externalWalletVerification) == null ? void 0 : _e.walletType) === ((_f = b.externalWalletVerification) == null ? void 0 : _f.walletType) && ((_g = a.passkeyHints) == null ? void 0 : _g.length) === ((_h = b.passkeyHints) == null ? void 0 : _h.length) && ((_i = a.passkeyHints) != null ? _i : []).every(
233
237
  (hint, i) => hint.useragent === b.passkeyHints[i].useragent && hint.aaguid === b.passkeyHints[i].aaguid
234
238
  );
235
239
  }
@@ -75,6 +75,18 @@ function createWalletStateMachine(paraCoreInterface) {
75
75
  return stage === "login" || stage === "done" || stage === "verify" && paraCoreInterface.authService.isEnclaveUser;
76
76
  },
77
77
  hasPreviousWalletsResult: ({ context }) => context.newWalletsResult !== null,
78
+ isWalletsAlreadySetUp: ({ context }) => {
79
+ var _a, _b;
80
+ const stage = (_b = (_a = context.authData) == null ? void 0 : _a.authStateResult) == null ? void 0 : _b.stage;
81
+ const isLogin = stage === "login" || stage === "done";
82
+ if (!isLogin) return false;
83
+ const currentIds = paraCoreInterface.walletService.currentWalletIdsArray;
84
+ if (currentIds.length === 0) return false;
85
+ return currentIds.every(([walletId]) => {
86
+ const wallet = paraCoreInterface.walletService.wallets[walletId];
87
+ return wallet && !!wallet.signer;
88
+ });
89
+ },
78
90
  // Check if the auth state is guest mode
79
91
  isGuestMode: ({ context }) => {
80
92
  var _a;
@@ -132,6 +144,13 @@ function createWalletStateMachine(paraCoreInterface) {
132
144
  target: "needs_wallets",
133
145
  guard: "isNewUser"
134
146
  },
147
+ {
148
+ // Wallets already set up (e.g., by loginWithPasskey on mobile) — still
149
+ // go through creating_wallets so any missing provider-required types
150
+ // get created. createWalletPerType is idempotent (checks #getMissingTypes).
151
+ target: "creating_wallets",
152
+ guard: "isWalletsAlreadySetUp"
153
+ },
135
154
  {
136
155
  target: "waiting_for_wallets",
137
156
  guard: "isLegacyOrEnclaveLogin"
@@ -269,6 +269,7 @@ export declare abstract class ParaCore implements CoreInterface {
269
269
  */
270
270
  constructor(env: Environment | undefined, apiKey: string, opts?: ConstructorOpts);
271
271
  constructor(apiKey: string, opts?: ConstructorOpts);
272
+ private initializeServices;
272
273
  initExternalWalletProvider: (params: InitExternalWalletProviderParams) => Promise<void>;
273
274
  getAuthServiceInterface(): AuthServiceInterface;
274
275
  getWalletServiceInterface(): WalletServiceInterface;
@@ -2686,6 +2686,10 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
2686
2686
  type: "hasPreviousWalletsResult";
2687
2687
  params: unknown;
2688
2688
  };
2689
+ isWalletsAlreadySetUp: {
2690
+ type: "isWalletsAlreadySetUp";
2691
+ params: unknown;
2692
+ };
2689
2693
  isGuestMode: {
2690
2694
  type: "isGuestMode";
2691
2695
  params: unknown;
@@ -2763,6 +2767,9 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
2763
2767
  }, {
2764
2768
  readonly target: "needs_wallets";
2765
2769
  readonly guard: "isNewUser";
2770
+ }, {
2771
+ readonly target: "creating_wallets";
2772
+ readonly guard: "isWalletsAlreadySetUp";
2766
2773
  }, {
2767
2774
  readonly target: "waiting_for_wallets";
2768
2775
  readonly guard: "isLegacyOrEnclaveLogin";
@@ -6315,6 +6322,10 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
6315
6322
  type: "hasPreviousWalletsResult";
6316
6323
  params: unknown;
6317
6324
  };
6325
+ isWalletsAlreadySetUp: {
6326
+ type: "isWalletsAlreadySetUp";
6327
+ params: unknown;
6328
+ };
6318
6329
  isGuestMode: {
6319
6330
  type: "isGuestMode";
6320
6331
  params: unknown;
@@ -6392,6 +6403,9 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
6392
6403
  }, {
6393
6404
  readonly target: "needs_wallets";
6394
6405
  readonly guard: "isNewUser";
6406
+ }, {
6407
+ readonly target: "creating_wallets";
6408
+ readonly guard: "isWalletsAlreadySetUp";
6395
6409
  }, {
6396
6410
  readonly target: "waiting_for_wallets";
6397
6411
  readonly guard: "isLegacyOrEnclaveLogin";
@@ -10017,6 +10031,10 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
10017
10031
  type: "hasPreviousWalletsResult";
10018
10032
  params: unknown;
10019
10033
  };
10034
+ isWalletsAlreadySetUp: {
10035
+ type: "isWalletsAlreadySetUp";
10036
+ params: unknown;
10037
+ };
10020
10038
  isGuestMode: {
10021
10039
  type: "isGuestMode";
10022
10040
  params: unknown;
@@ -10094,6 +10112,9 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
10094
10112
  }, {
10095
10113
  readonly target: "needs_wallets";
10096
10114
  readonly guard: "isNewUser";
10115
+ }, {
10116
+ readonly target: "creating_wallets";
10117
+ readonly guard: "isWalletsAlreadySetUp";
10097
10118
  }, {
10098
10119
  readonly target: "waiting_for_wallets";
10099
10120
  readonly guard: "isLegacyOrEnclaveLogin";
@@ -13657,6 +13678,10 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
13657
13678
  type: "hasPreviousWalletsResult";
13658
13679
  params: unknown;
13659
13680
  };
13681
+ isWalletsAlreadySetUp: {
13682
+ type: "isWalletsAlreadySetUp";
13683
+ params: unknown;
13684
+ };
13660
13685
  isGuestMode: {
13661
13686
  type: "isGuestMode";
13662
13687
  params: unknown;
@@ -13734,6 +13759,9 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
13734
13759
  }, {
13735
13760
  readonly target: "needs_wallets";
13736
13761
  readonly guard: "isNewUser";
13762
+ }, {
13763
+ readonly target: "creating_wallets";
13764
+ readonly guard: "isWalletsAlreadySetUp";
13737
13765
  }, {
13738
13766
  readonly target: "waiting_for_wallets";
13739
13767
  readonly guard: "isLegacyOrEnclaveLogin";
@@ -17391,6 +17419,10 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
17391
17419
  type: "hasPreviousWalletsResult";
17392
17420
  params: unknown;
17393
17421
  };
17422
+ isWalletsAlreadySetUp: {
17423
+ type: "isWalletsAlreadySetUp";
17424
+ params: unknown;
17425
+ };
17394
17426
  isGuestMode: {
17395
17427
  type: "isGuestMode";
17396
17428
  params: unknown;
@@ -17468,6 +17500,9 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
17468
17500
  }, {
17469
17501
  readonly target: "needs_wallets";
17470
17502
  readonly guard: "isNewUser";
17503
+ }, {
17504
+ readonly target: "creating_wallets";
17505
+ readonly guard: "isWalletsAlreadySetUp";
17471
17506
  }, {
17472
17507
  readonly target: "waiting_for_wallets";
17473
17508
  readonly guard: "isLegacyOrEnclaveLogin";
@@ -21032,6 +21067,10 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
21032
21067
  type: "hasPreviousWalletsResult";
21033
21068
  params: unknown;
21034
21069
  };
21070
+ isWalletsAlreadySetUp: {
21071
+ type: "isWalletsAlreadySetUp";
21072
+ params: unknown;
21073
+ };
21035
21074
  isGuestMode: {
21036
21075
  type: "isGuestMode";
21037
21076
  params: unknown;
@@ -21109,6 +21148,9 @@ export declare function createCoreStateMachine(paraCoreInterface: StateMachineIn
21109
21148
  }, {
21110
21149
  readonly target: "needs_wallets";
21111
21150
  readonly guard: "isNewUser";
21151
+ }, {
21152
+ readonly target: "creating_wallets";
21153
+ readonly guard: "isWalletsAlreadySetUp";
21112
21154
  }, {
21113
21155
  readonly target: "waiting_for_wallets";
21114
21156
  readonly guard: "isLegacyOrEnclaveLogin";
@@ -119,6 +119,10 @@ export declare function createWalletStateMachine(paraCoreInterface: StateMachine
119
119
  type: "hasPreviousWalletsResult";
120
120
  params: unknown;
121
121
  };
122
+ isWalletsAlreadySetUp: {
123
+ type: "isWalletsAlreadySetUp";
124
+ params: unknown;
125
+ };
122
126
  isGuestMode: {
123
127
  type: "isGuestMode";
124
128
  params: unknown;
@@ -196,6 +200,9 @@ export declare function createWalletStateMachine(paraCoreInterface: StateMachine
196
200
  }, {
197
201
  readonly target: "needs_wallets";
198
202
  readonly guard: "isNewUser";
203
+ }, {
204
+ readonly target: "creating_wallets";
205
+ readonly guard: "isWalletsAlreadySetUp";
199
206
  }, {
200
207
  readonly target: "waiting_for_wallets";
201
208
  readonly guard: "isLegacyOrEnclaveLogin";
@@ -83,6 +83,8 @@ export type AuthStateInfo = {
83
83
  passwordUrl: string | null;
84
84
  /** Portal URL for PIN login/signup */
85
85
  pinUrl: string | null;
86
+ /** The Para system ID for the user's passkey credential (signup only) */
87
+ passkeyId: string | null;
86
88
  /** Verification URL for email/phone verification in SLO */
87
89
  verificationUrl: string | null;
88
90
  /** External wallet verification data when signature is needed */
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@getpara/core-sdk",
3
- "version": "2.13.0",
3
+ "version": "2.14.0",
4
4
  "dependencies": {
5
5
  "@celo/utils": "^8.0.2",
6
6
  "@cosmjs/encoding": "^0.32.4",
7
7
  "@ethereumjs/util": "^9.1.0",
8
- "@getpara/user-management-client": "2.13.0",
8
+ "@getpara/user-management-client": "2.14.0",
9
9
  "@noble/hashes": "^1.5.0",
10
10
  "base64url": "^3.0.1",
11
11
  "libphonenumber-js": "^1.11.7",
@@ -28,7 +28,7 @@
28
28
  "dist",
29
29
  "package.json"
30
30
  ],
31
- "gitHead": "75ac5d1ebe87366c23bb4e485481deb1b593e299",
31
+ "gitHead": "8ac7cfbe3b106a42e53f6e5439f484ab11b0e1f3",
32
32
  "main": "dist/cjs/index.js",
33
33
  "module": "dist/esm/index.js",
34
34
  "scripts": {