@getpara/core-sdk 2.1.0 → 2.2.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/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.2.0";
|
|
47
47
|
const PREFIX = "@CAPSULE/";
|
|
48
48
|
const PARA_PREFIX = "@PARA/";
|
|
49
49
|
const LOCAL_STORAGE_AUTH_INFO = `${PREFIX}authInfo`;
|
package/dist/cjs/utils/config.js
CHANGED
|
@@ -40,14 +40,6 @@ function validateBalancesConfig(obj) {
|
|
|
40
40
|
if (!validateCustomAsset(asset)) {
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
43
|
-
const hasPriceUrl = typeof asset.priceUrl === "string" && asset.priceUrl.trim();
|
|
44
|
-
const hasPrice = asset.price && typeof asset.price === "object" && typeof asset.price.value === "number" && asset.price.value > 0 && typeof asset.price.currency === "string" && asset.price.currency.trim();
|
|
45
|
-
if (!hasPriceUrl && !hasPrice) {
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
if (hasPriceUrl && hasPrice) {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
43
|
}
|
|
52
44
|
}
|
|
53
45
|
return true;
|
package/dist/esm/constants.js
CHANGED
package/dist/esm/utils/config.js
CHANGED
|
@@ -19,14 +19,6 @@ function validateBalancesConfig(obj) {
|
|
|
19
19
|
if (!validateCustomAsset(asset)) {
|
|
20
20
|
return false;
|
|
21
21
|
}
|
|
22
|
-
const hasPriceUrl = typeof asset.priceUrl === "string" && asset.priceUrl.trim();
|
|
23
|
-
const hasPrice = asset.price && typeof asset.price === "object" && typeof asset.price.value === "number" && asset.price.value > 0 && typeof asset.price.currency === "string" && asset.price.currency.trim();
|
|
24
|
-
if (!hasPriceUrl && !hasPrice) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
if (hasPriceUrl && hasPrice) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
22
|
}
|
|
31
23
|
}
|
|
32
24
|
return true;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.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.2.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": "51765cf39b1667e0283b3906a8f8ef91e447e347",
|
|
31
31
|
"main": "dist/cjs/index.js",
|
|
32
32
|
"module": "dist/esm/index.js",
|
|
33
33
|
"scripts": {
|