@getpara/core-sdk 2.4.0 → 2.5.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/cjs/ParaCore.js
CHANGED
|
@@ -358,6 +358,10 @@ const _ParaCore = class _ParaCore {
|
|
|
358
358
|
env = _ParaCore.resolveEnvironment(void 0, envOrApiKey);
|
|
359
359
|
apiKey = envOrApiKey;
|
|
360
360
|
opts = apiKeyOrOpts;
|
|
361
|
+
} else if (typeof actualArgs[1] === "object" && actualArgs[1] !== null) {
|
|
362
|
+
env = _ParaCore.resolveEnvironment(void 0, actualArgs[0]);
|
|
363
|
+
apiKey = actualArgs[0];
|
|
364
|
+
opts = actualArgs[1];
|
|
361
365
|
} else {
|
|
362
366
|
env = _ParaCore.resolveEnvironment(envOrApiKey, apiKeyOrOpts);
|
|
363
367
|
apiKey = apiKeyOrOpts;
|
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.
|
|
46
|
+
const PARA_CORE_VERSION = "2.5.0";
|
|
47
47
|
const PREFIX = "@CAPSULE/";
|
|
48
48
|
const PARA_PREFIX = "@PARA/";
|
|
49
49
|
const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
|
|
@@ -62,8 +62,8 @@ const LOCAL_STORAGE_SESSION_COOKIE = `${PREFIX}sessionCookie`;
|
|
|
62
62
|
const LOCAL_STORAGE_ENCLAVE_JWT = `${PREFIX}enclaveJwt`;
|
|
63
63
|
const LOCAL_STORAGE_ENCLAVE_REFRESH_JWT = `${PREFIX}enclaveRefreshJwt`;
|
|
64
64
|
const SESSION_STORAGE_LOGIN_ENCRYPTION_KEY_PAIR = `${PREFIX}loginEncryptionKeyPair`;
|
|
65
|
-
const POLLING_INTERVAL_MS =
|
|
66
|
-
const SHORT_POLLING_INTERVAL_MS =
|
|
65
|
+
const POLLING_INTERVAL_MS = 1e3;
|
|
66
|
+
const SHORT_POLLING_INTERVAL_MS = 750;
|
|
67
67
|
const POLLING_TIMEOUT_MS = 3e5;
|
|
68
68
|
const EXTERNAL_WALLET_CONNECTION_ONLY_USER_ID = "EXTERNAL_WALLET_CONNECTION_ONLY";
|
|
69
69
|
const ACCOUNT_LINK_CONFLICT = "Account already linked";
|
package/dist/esm/ParaCore.js
CHANGED
|
@@ -324,6 +324,10 @@ const _ParaCore = class _ParaCore {
|
|
|
324
324
|
env = _ParaCore.resolveEnvironment(void 0, envOrApiKey);
|
|
325
325
|
apiKey = envOrApiKey;
|
|
326
326
|
opts = apiKeyOrOpts;
|
|
327
|
+
} else if (typeof actualArgs[1] === "object" && actualArgs[1] !== null) {
|
|
328
|
+
env = _ParaCore.resolveEnvironment(void 0, actualArgs[0]);
|
|
329
|
+
apiKey = actualArgs[0];
|
|
330
|
+
opts = actualArgs[1];
|
|
327
331
|
} else {
|
|
328
332
|
env = _ParaCore.resolveEnvironment(envOrApiKey, apiKeyOrOpts);
|
|
329
333
|
apiKey = apiKeyOrOpts;
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chunk-7B52C2XE.js";
|
|
2
|
-
const PARA_CORE_VERSION = "2.
|
|
2
|
+
const PARA_CORE_VERSION = "2.5.0";
|
|
3
3
|
const PREFIX = "@CAPSULE/";
|
|
4
4
|
const PARA_PREFIX = "@PARA/";
|
|
5
5
|
const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
|
|
@@ -18,8 +18,8 @@ const LOCAL_STORAGE_SESSION_COOKIE = `${PREFIX}sessionCookie`;
|
|
|
18
18
|
const LOCAL_STORAGE_ENCLAVE_JWT = `${PREFIX}enclaveJwt`;
|
|
19
19
|
const LOCAL_STORAGE_ENCLAVE_REFRESH_JWT = `${PREFIX}enclaveRefreshJwt`;
|
|
20
20
|
const SESSION_STORAGE_LOGIN_ENCRYPTION_KEY_PAIR = `${PREFIX}loginEncryptionKeyPair`;
|
|
21
|
-
const POLLING_INTERVAL_MS =
|
|
22
|
-
const SHORT_POLLING_INTERVAL_MS =
|
|
21
|
+
const POLLING_INTERVAL_MS = 1e3;
|
|
22
|
+
const SHORT_POLLING_INTERVAL_MS = 750;
|
|
23
23
|
const POLLING_TIMEOUT_MS = 3e5;
|
|
24
24
|
const EXTERNAL_WALLET_CONNECTION_ONLY_USER_ID = "EXTERNAL_WALLET_CONNECTION_ONLY";
|
|
25
25
|
const ACCOUNT_LINK_CONFLICT = "Account already linked";
|
|
@@ -17,8 +17,8 @@ export declare const LOCAL_STORAGE_SESSION_COOKIE = "@CAPSULE/sessionCookie";
|
|
|
17
17
|
export declare const LOCAL_STORAGE_ENCLAVE_JWT = "@CAPSULE/enclaveJwt";
|
|
18
18
|
export declare const LOCAL_STORAGE_ENCLAVE_REFRESH_JWT = "@CAPSULE/enclaveRefreshJwt";
|
|
19
19
|
export declare const SESSION_STORAGE_LOGIN_ENCRYPTION_KEY_PAIR = "@CAPSULE/loginEncryptionKeyPair";
|
|
20
|
-
export declare const POLLING_INTERVAL_MS =
|
|
21
|
-
export declare const SHORT_POLLING_INTERVAL_MS =
|
|
20
|
+
export declare const POLLING_INTERVAL_MS = 1000;
|
|
21
|
+
export declare const SHORT_POLLING_INTERVAL_MS = 750;
|
|
22
22
|
export declare const POLLING_TIMEOUT_MS = 300000;
|
|
23
23
|
export declare const EXTERNAL_WALLET_CONNECTION_ONLY_USER_ID = "EXTERNAL_WALLET_CONNECTION_ONLY";
|
|
24
24
|
export declare const ACCOUNT_LINK_CONFLICT = "Account already linked";
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.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.
|
|
8
|
+
"@getpara/user-management-client": "2.5.0",
|
|
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": "b987686a1c70684b3b656fe52d02a9074487dcb7",
|
|
31
31
|
"main": "dist/cjs/index.js",
|
|
32
32
|
"module": "dist/esm/index.js",
|
|
33
33
|
"scripts": {
|