@blocklet/js-sdk 1.17.6-beta-20251221-021146-1a145a92 → 1.17.7-beta-20251223-090654-55d57623
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/index.mjs +4 -3
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -443,7 +443,7 @@ class FederatedService {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
const version = "1.17.
|
|
446
|
+
const version = "1.17.6";
|
|
447
447
|
|
|
448
448
|
const sleep = (time = 0) => {
|
|
449
449
|
return new Promise((resolve) => {
|
|
@@ -455,9 +455,10 @@ const sleep = (time = 0) => {
|
|
|
455
455
|
const getBearerToken = (token) => {
|
|
456
456
|
return `Bearer ${encodeURIComponent(token)}`;
|
|
457
457
|
};
|
|
458
|
-
const visitorIdKey = "
|
|
458
|
+
const visitorIdKey = "vid";
|
|
459
|
+
const visitorIdKeyLegacy = "__visitor_id";
|
|
459
460
|
const getVisitorId = () => {
|
|
460
|
-
return localStorage.getItem(
|
|
461
|
+
return Cookie.get(visitorIdKey) || localStorage.getItem(visitorIdKeyLegacy);
|
|
461
462
|
};
|
|
462
463
|
const verifyResponse = async (response, onInvalid) => {
|
|
463
464
|
if (isObject(response.data) && response.status >= 200 && response.status < 300 && window.blocklet && window.blocklet.appId && window.blocklet.appPk) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/js-sdk",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.7-beta-20251223-090654-55d57623",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"watch": "nodemon -w src -e ts -x 'npm run build'"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@abtnode/constant": "1.17.
|
|
39
|
+
"@abtnode/constant": "1.17.7-beta-20251223-090654-55d57623",
|
|
40
40
|
"@arcblock/did": "^1.27.15",
|
|
41
|
-
"@blocklet/meta": "1.17.
|
|
41
|
+
"@blocklet/meta": "1.17.7-beta-20251223-090654-55d57623",
|
|
42
42
|
"@ocap/wallet": "^1.27.15",
|
|
43
43
|
"axios": "^1.7.9",
|
|
44
44
|
"is-url": "^1.2.4",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"typescript": "^5.6.3",
|
|
65
65
|
"unbuild": "^2.0.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "00a82b6f4ef5818d6ec37d74be404031c693247c"
|
|
68
68
|
}
|