@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 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
  };
@@ -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 { BLOCKLET_APP_SK, BLOCKLET_APP_PSK, BLOCKLET_WALLET_TYPE, CHAIN_TYPE } = process.env;
30
- if (BLOCKLET_APP_SK && BLOCKLET_APP_PSK && BLOCKLET_APP_SK !== BLOCKLET_APP_PSK) {
31
- return (0, wallet_2.getWallet)(CHAIN_TYPE || BLOCKLET_WALLET_TYPE, BLOCKLET_APP_PSK);
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 { BLOCKLET_APP_SK, BLOCKLET_WALLET_TYPE, CHAIN_TYPE } = process.env;
39
- return (0, wallet_2.getWallet)(CHAIN_TYPE || BLOCKLET_WALLET_TYPE, BLOCKLET_APP_SK);
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
@@ -1,4 +1,4 @@
1
- declare const version = "1.17.0";
1
+ declare const version = "1.17.1";
2
2
  export { version };
3
3
  declare const _default: {
4
4
  version: string;
package/lib/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- const version = '1.17.0';
4
+ const version = '1.17.1';
5
5
  exports.version = version;
6
6
  exports.default = { version };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.0-beta-20251106-103128-74cfc823",
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.0-beta-20251106-103128-74cfc823",
30
- "@abtnode/db-cache": "1.17.0-beta-20251106-103128-74cfc823",
31
- "@abtnode/util": "1.17.0-beta-20251106-103128-74cfc823",
32
- "@arcblock/did": "^1.27.2",
33
- "@arcblock/did-connect-js": "^1.27.2",
34
- "@arcblock/did-ext": "^1.27.2",
35
- "@arcblock/jwt": "^1.27.2",
36
- "@arcblock/ws": "^1.27.2",
37
- "@blocklet/constant": "1.17.0-beta-20251106-103128-74cfc823",
38
- "@blocklet/env": "1.17.0-beta-20251106-103128-74cfc823",
39
- "@blocklet/error": "^0.3.1",
40
- "@blocklet/meta": "1.17.0-beta-20251106-103128-74cfc823",
41
- "@blocklet/server-js": "1.17.0-beta-20251106-103128-74cfc823",
42
- "@blocklet/theme": "^3.1.60",
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.2",
47
- "@ocap/util": "^1.27.2",
48
- "@ocap/wallet": "^1.27.2",
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": "46512172e66dfc932c8d39ce45f746cb420bd504"
85
+ "gitHead": "89102b7f2bb2b373602b62b7989de8468924a0c2"
86
86
  }