@getpara/core-sdk 2.0.0-alpha.65 → 2.0.0-alpha.66
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/cjs/ParaCore.js +20 -3
- package/dist/cjs/constants.js +1 -1
- package/dist/esm/ParaCore.js +20 -3
- package/dist/esm/constants.js +1 -1
- package/package.json +3 -3
package/dist/cjs/ParaCore.js
CHANGED
|
@@ -1846,7 +1846,24 @@ Need help? Visit: https://docs.getpara.com or contact support
|
|
|
1846
1846
|
if (this.isSwitchingWallets) {
|
|
1847
1847
|
return isSessionActive;
|
|
1848
1848
|
}
|
|
1849
|
-
|
|
1849
|
+
if (!isSessionActive) {
|
|
1850
|
+
return false;
|
|
1851
|
+
}
|
|
1852
|
+
if (this.isNoWalletConfig) {
|
|
1853
|
+
return true;
|
|
1854
|
+
}
|
|
1855
|
+
const { supportedWalletTypes } = yield __privateMethod(this, _ParaCore_instances, assertPartner_fn).call(this);
|
|
1856
|
+
const requiredWalletTypes = supportedWalletTypes.filter(({ optional }) => !optional);
|
|
1857
|
+
for (const { type } of requiredWalletTypes) {
|
|
1858
|
+
const hasWalletForType = this.currentWalletIdsArray.some(([walletId, walletType]) => {
|
|
1859
|
+
const wallet = this.wallets[walletId];
|
|
1860
|
+
return wallet && walletType === type;
|
|
1861
|
+
});
|
|
1862
|
+
if (!hasWalletForType) {
|
|
1863
|
+
return false;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
return true;
|
|
1850
1867
|
});
|
|
1851
1868
|
}
|
|
1852
1869
|
get isGuestMode() {
|
|
@@ -3270,7 +3287,7 @@ Need help? Visit: https://docs.getpara.com or contact support
|
|
|
3270
3287
|
return { credentialId };
|
|
3271
3288
|
}
|
|
3272
3289
|
const { sessionId } = yield this.touchSession();
|
|
3273
|
-
const url = yield this.constructPortalUrl(isForNewDevice ? "addNewCredential" : urlType, {
|
|
3290
|
+
const url = (isForNewDevice || urlType) && (yield this.constructPortalUrl(isForNewDevice ? "addNewCredential" : urlType, {
|
|
3274
3291
|
isForNewDevice,
|
|
3275
3292
|
pathId: credentialId,
|
|
3276
3293
|
portalTheme,
|
|
@@ -3279,7 +3296,7 @@ Need help? Visit: https://docs.getpara.com or contact support
|
|
|
3279
3296
|
addNewCredentialType: optsAuthMethod,
|
|
3280
3297
|
addNewCredentialPasskeyId: passkeyId,
|
|
3281
3298
|
addNewCredentialPasswordId: passwordId
|
|
3282
|
-
});
|
|
3299
|
+
}));
|
|
3283
3300
|
return __spreadValues({ credentialId }, url ? { url } : {});
|
|
3284
3301
|
});
|
|
3285
3302
|
}
|
package/dist/cjs/constants.js
CHANGED
|
@@ -43,7 +43,7 @@ __export(constants_exports, {
|
|
|
43
43
|
SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(constants_exports);
|
|
46
|
-
const PARA_CORE_VERSION = "2.0.0-alpha.
|
|
46
|
+
const PARA_CORE_VERSION = "2.0.0-alpha.66";
|
|
47
47
|
const PREFIX = "@CAPSULE/";
|
|
48
48
|
const PARA_PREFIX = "@PARA/";
|
|
49
49
|
const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
|
package/dist/esm/ParaCore.js
CHANGED
|
@@ -1812,7 +1812,24 @@ Need help? Visit: https://docs.getpara.com or contact support
|
|
|
1812
1812
|
if (this.isSwitchingWallets) {
|
|
1813
1813
|
return isSessionActive;
|
|
1814
1814
|
}
|
|
1815
|
-
|
|
1815
|
+
if (!isSessionActive) {
|
|
1816
|
+
return false;
|
|
1817
|
+
}
|
|
1818
|
+
if (this.isNoWalletConfig) {
|
|
1819
|
+
return true;
|
|
1820
|
+
}
|
|
1821
|
+
const { supportedWalletTypes } = yield __privateMethod(this, _ParaCore_instances, assertPartner_fn).call(this);
|
|
1822
|
+
const requiredWalletTypes = supportedWalletTypes.filter(({ optional }) => !optional);
|
|
1823
|
+
for (const { type } of requiredWalletTypes) {
|
|
1824
|
+
const hasWalletForType = this.currentWalletIdsArray.some(([walletId, walletType]) => {
|
|
1825
|
+
const wallet = this.wallets[walletId];
|
|
1826
|
+
return wallet && walletType === type;
|
|
1827
|
+
});
|
|
1828
|
+
if (!hasWalletForType) {
|
|
1829
|
+
return false;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
return true;
|
|
1816
1833
|
});
|
|
1817
1834
|
}
|
|
1818
1835
|
get isGuestMode() {
|
|
@@ -3236,7 +3253,7 @@ Need help? Visit: https://docs.getpara.com or contact support
|
|
|
3236
3253
|
return { credentialId };
|
|
3237
3254
|
}
|
|
3238
3255
|
const { sessionId } = yield this.touchSession();
|
|
3239
|
-
const url = yield this.constructPortalUrl(isForNewDevice ? "addNewCredential" : urlType, {
|
|
3256
|
+
const url = (isForNewDevice || urlType) && (yield this.constructPortalUrl(isForNewDevice ? "addNewCredential" : urlType, {
|
|
3240
3257
|
isForNewDevice,
|
|
3241
3258
|
pathId: credentialId,
|
|
3242
3259
|
portalTheme,
|
|
@@ -3245,7 +3262,7 @@ Need help? Visit: https://docs.getpara.com or contact support
|
|
|
3245
3262
|
addNewCredentialType: optsAuthMethod,
|
|
3246
3263
|
addNewCredentialPasskeyId: passkeyId,
|
|
3247
3264
|
addNewCredentialPasswordId: passwordId
|
|
3248
|
-
});
|
|
3265
|
+
}));
|
|
3249
3266
|
return __spreadValues({ credentialId }, url ? { url } : {});
|
|
3250
3267
|
});
|
|
3251
3268
|
}
|
package/dist/esm/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-sdk",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.66",
|
|
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.0.0-alpha.
|
|
8
|
+
"@getpara/user-management-client": "2.0.0-alpha.66",
|
|
9
9
|
"@noble/hashes": "^1.5.0",
|
|
10
10
|
"base64url": "^3.0.1",
|
|
11
11
|
"libphonenumber-js": "^1.11.7",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist",
|
|
28
28
|
"package.json"
|
|
29
29
|
],
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "07c8b7b68aa36dec6071e3b3b3a66de2870312c8",
|
|
31
31
|
"main": "dist/cjs/index.js",
|
|
32
32
|
"module": "dist/esm/index.js",
|
|
33
33
|
"scripts": {
|