@blocklet/sdk 1.17.0-beta-20251106-103128-74cfc823 → 1.17.1-beta-20251107-074502-034bafdc
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/lib/config.js +1 -1
- package/lib/connect/shared.js +5 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +19 -19
package/lib/config.js
CHANGED
|
@@ -378,7 +378,7 @@ const fetchBlockletJs = async (type = 'js') => {
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
catch (err) {
|
|
381
|
-
logger.error(`Fetch blocklet.${type} failed: ${env.appPid}/${componentDid}`, err.message);
|
|
381
|
+
logger.error(`Fetch blocklet.${type} failed: ${env.appPid}/${componentDid} from ${env.appUrl}`, err.message);
|
|
382
382
|
return type === 'js' ? '' : {};
|
|
383
383
|
}
|
|
384
384
|
};
|
package/lib/connect/shared.js
CHANGED
|
@@ -26,17 +26,17 @@ function getFederatedMaster(blocklet) {
|
|
|
26
26
|
const closure = (value) => (typeof value === 'function' ? value : () => value);
|
|
27
27
|
const getDelegator = () => {
|
|
28
28
|
// BLOCKLET_WALLET_TYPE is for backward compatibility
|
|
29
|
-
const {
|
|
30
|
-
if (
|
|
31
|
-
return (0, wallet_2.getWallet)(CHAIN_TYPE || BLOCKLET_WALLET_TYPE,
|
|
29
|
+
const { BLOCKLET_APP_ID, BLOCKLET_APP_PID, BLOCKLET_WALLET_TYPE, CHAIN_TYPE } = process.env;
|
|
30
|
+
if (BLOCKLET_APP_ID && BLOCKLET_APP_PID && BLOCKLET_APP_ID !== BLOCKLET_APP_PID) {
|
|
31
|
+
return (0, wallet_2.getWallet)(CHAIN_TYPE || BLOCKLET_WALLET_TYPE, '', 'psk');
|
|
32
32
|
}
|
|
33
33
|
return null;
|
|
34
34
|
};
|
|
35
35
|
exports.getDelegator = getDelegator;
|
|
36
36
|
const getDelegatee = () => {
|
|
37
37
|
// BLOCKLET_WALLET_TYPE is for backward compatibility
|
|
38
|
-
const {
|
|
39
|
-
return (0, wallet_2.getWallet)(CHAIN_TYPE || BLOCKLET_WALLET_TYPE,
|
|
38
|
+
const { BLOCKLET_WALLET_TYPE, CHAIN_TYPE } = process.env;
|
|
39
|
+
return (0, wallet_2.getWallet)(CHAIN_TYPE || BLOCKLET_WALLET_TYPE, '', 'sk');
|
|
40
40
|
};
|
|
41
41
|
exports.getDelegatee = getDelegatee;
|
|
42
42
|
const getDelegation = async (delegator, delegatee) => {
|
package/lib/version.d.ts
CHANGED
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.
|
|
6
|
+
"version": "1.17.1-beta-20251107-074502-034bafdc",
|
|
7
7
|
"description": "graphql client to read/write data on abt node",
|
|
8
8
|
"homepage": "https://www.arcblock.io/docs/blocklet-sdk-nodejs",
|
|
9
9
|
"main": "lib/index.js",
|
|
@@ -26,26 +26,26 @@
|
|
|
26
26
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@abtnode/constant": "1.17.
|
|
30
|
-
"@abtnode/db-cache": "1.17.
|
|
31
|
-
"@abtnode/util": "1.17.
|
|
32
|
-
"@arcblock/did": "^1.27.
|
|
33
|
-
"@arcblock/did-connect-js": "^1.27.
|
|
34
|
-
"@arcblock/did-ext": "^1.27.
|
|
35
|
-
"@arcblock/jwt": "^1.27.
|
|
36
|
-
"@arcblock/ws": "^1.27.
|
|
37
|
-
"@blocklet/constant": "1.17.
|
|
38
|
-
"@blocklet/env": "1.17.
|
|
39
|
-
"@blocklet/error": "^0.3.
|
|
40
|
-
"@blocklet/meta": "1.17.
|
|
41
|
-
"@blocklet/server-js": "1.17.
|
|
42
|
-
"@blocklet/theme": "^3.
|
|
29
|
+
"@abtnode/constant": "1.17.1-beta-20251107-074502-034bafdc",
|
|
30
|
+
"@abtnode/db-cache": "1.17.1-beta-20251107-074502-034bafdc",
|
|
31
|
+
"@abtnode/util": "1.17.1-beta-20251107-074502-034bafdc",
|
|
32
|
+
"@arcblock/did": "^1.27.3",
|
|
33
|
+
"@arcblock/did-connect-js": "^1.27.3",
|
|
34
|
+
"@arcblock/did-ext": "^1.27.3",
|
|
35
|
+
"@arcblock/jwt": "^1.27.3",
|
|
36
|
+
"@arcblock/ws": "^1.27.3",
|
|
37
|
+
"@blocklet/constant": "1.17.1-beta-20251107-074502-034bafdc",
|
|
38
|
+
"@blocklet/env": "1.17.1-beta-20251107-074502-034bafdc",
|
|
39
|
+
"@blocklet/error": "^0.3.2",
|
|
40
|
+
"@blocklet/meta": "1.17.1-beta-20251107-074502-034bafdc",
|
|
41
|
+
"@blocklet/server-js": "1.17.1-beta-20251107-074502-034bafdc",
|
|
42
|
+
"@blocklet/theme": "^3.2.0",
|
|
43
43
|
"@did-connect/authenticator": "^2.2.8",
|
|
44
44
|
"@did-connect/handler": "^2.2.8",
|
|
45
45
|
"@nedb/core": "^2.1.5",
|
|
46
|
-
"@ocap/mcrypto": "^1.27.
|
|
47
|
-
"@ocap/util": "^1.27.
|
|
48
|
-
"@ocap/wallet": "^1.27.
|
|
46
|
+
"@ocap/mcrypto": "^1.27.3",
|
|
47
|
+
"@ocap/util": "^1.27.3",
|
|
48
|
+
"@ocap/wallet": "^1.27.3",
|
|
49
49
|
"axios": "^1.7.9",
|
|
50
50
|
"cheerio": "1.0.0-rc.12",
|
|
51
51
|
"debug": "^4.4.1",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"ts-node": "^10.9.1",
|
|
83
83
|
"typescript": "^5.6.3"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "89102b7f2bb2b373602b62b7989de8468924a0c2"
|
|
86
86
|
}
|