@abtnode/blocklet-services 1.16.54-beta-20251027-105624-dfa978f8 → 1.16.54-beta-20251028-092308-569763e6

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.
@@ -290,8 +290,11 @@ module.exports = {
290
290
  return;
291
291
  }
292
292
 
293
- // Pass options to getWalletFromBlocklet (already supports keyType)
294
- const wallet = getWalletFromBlocklet({ blocklet, options });
293
+ // Force ethereum type for ethSign - pass type: 'ethereum' explicitly
294
+ const wallet = getWalletFromBlocklet({
295
+ blocklet,
296
+ options: { ...options, type: 'ethereum' },
297
+ });
295
298
  const signature = await wallet.ethSign(data, hashBeforeSign);
296
299
 
297
300
  const componentId = req.headers['x-component-did'];
@@ -337,14 +340,14 @@ module.exports = {
337
340
  (req, res) => {
338
341
  try {
339
342
  const { blocklet } = req;
340
- const { sub, type, index } = req.body || {};
343
+ const { sub, type, index, options } = req.body || {};
341
344
 
342
345
  if (!sub) {
343
346
  res.status(400).json({ error: 'Sub is required' });
344
347
  return;
345
348
  }
346
349
 
347
- const wallet = getWalletFromBlocklet({ blocklet, options: { type } });
350
+ const wallet = getWalletFromBlocklet({ blocklet, options: { type, ...options } });
348
351
  const userWallet = fromAppDid(sub, wallet.secretKey, type, index);
349
352
 
350
353
  const componentId = req.headers['x-component-did'];
@@ -28,7 +28,7 @@ const _getSecurityConfig = async ({ node, blockletDid, id, componentMountPoints,
28
28
  try {
29
29
  const { securityRules: rawSecurityRules } = await node.getBlockletSecurityRules({
30
30
  did: blockletDid,
31
- formated: true,
31
+ formatted: true,
32
32
  });
33
33
  // NOTICE: 如果指定的组件已经不存在,则跳过对应的安全规则
34
34
  const securityRules = rawSecurityRules.filter((x) => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.54-beta-20251027-105624-dfa978f8",
6
+ "version": "1.16.54-beta-20251028-092308-569763e6",
7
7
  "description": "Provide unified services for every blocklet",
8
8
  "main": "api/index.js",
9
9
  "files": [
@@ -34,17 +34,17 @@
34
34
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@abtnode/analytics": "1.16.54-beta-20251027-105624-dfa978f8",
38
- "@abtnode/auth": "1.16.54-beta-20251027-105624-dfa978f8",
39
- "@abtnode/connect-storage": "1.16.54-beta-20251027-105624-dfa978f8",
40
- "@abtnode/constant": "1.16.54-beta-20251027-105624-dfa978f8",
41
- "@abtnode/core": "1.16.54-beta-20251027-105624-dfa978f8",
42
- "@abtnode/cron": "1.16.54-beta-20251027-105624-dfa978f8",
43
- "@abtnode/db-cache": "1.16.54-beta-20251027-105624-dfa978f8",
44
- "@abtnode/logger": "1.16.54-beta-20251027-105624-dfa978f8",
45
- "@abtnode/models": "1.16.54-beta-20251027-105624-dfa978f8",
46
- "@abtnode/router-templates": "1.16.54-beta-20251027-105624-dfa978f8",
47
- "@abtnode/util": "1.16.54-beta-20251027-105624-dfa978f8",
37
+ "@abtnode/analytics": "1.16.54-beta-20251028-092308-569763e6",
38
+ "@abtnode/auth": "1.16.54-beta-20251028-092308-569763e6",
39
+ "@abtnode/connect-storage": "1.16.54-beta-20251028-092308-569763e6",
40
+ "@abtnode/constant": "1.16.54-beta-20251028-092308-569763e6",
41
+ "@abtnode/core": "1.16.54-beta-20251028-092308-569763e6",
42
+ "@abtnode/cron": "1.16.54-beta-20251028-092308-569763e6",
43
+ "@abtnode/db-cache": "1.16.54-beta-20251028-092308-569763e6",
44
+ "@abtnode/logger": "1.16.54-beta-20251028-092308-569763e6",
45
+ "@abtnode/models": "1.16.54-beta-20251028-092308-569763e6",
46
+ "@abtnode/router-templates": "1.16.54-beta-20251028-092308-569763e6",
47
+ "@abtnode/util": "1.16.54-beta-20251028-092308-569763e6",
48
48
  "@arcblock/did": "^1.26.3",
49
49
  "@arcblock/did-connect-js": "^1.26.3",
50
50
  "@arcblock/did-ext": "^1.26.3",
@@ -54,18 +54,18 @@
54
54
  "@arcblock/jwt": "^1.26.3",
55
55
  "@arcblock/validator": "^1.26.3",
56
56
  "@arcblock/ws": "^1.26.3",
57
- "@blocklet/constant": "1.16.54-beta-20251027-105624-dfa978f8",
57
+ "@blocklet/constant": "1.16.54-beta-20251028-092308-569763e6",
58
58
  "@blocklet/dbhub": "^0.2.9",
59
- "@blocklet/env": "1.16.54-beta-20251027-105624-dfa978f8",
59
+ "@blocklet/env": "1.16.54-beta-20251028-092308-569763e6",
60
60
  "@blocklet/error": "^0.2.5",
61
61
  "@blocklet/form-builder": "^0.1.12",
62
62
  "@blocklet/form-collector": "^0.1.8",
63
- "@blocklet/images": "1.16.54-beta-20251027-105624-dfa978f8",
64
- "@blocklet/js-sdk": "1.16.54-beta-20251027-105624-dfa978f8",
65
- "@blocklet/meta": "1.16.54-beta-20251027-105624-dfa978f8",
66
- "@blocklet/rate-limit": "1.16.54-beta-20251027-105624-dfa978f8",
67
- "@blocklet/sdk": "1.16.54-beta-20251027-105624-dfa978f8",
68
- "@blocklet/server-js": "1.16.54-beta-20251027-105624-dfa978f8",
63
+ "@blocklet/images": "1.16.54-beta-20251028-092308-569763e6",
64
+ "@blocklet/js-sdk": "1.16.54-beta-20251028-092308-569763e6",
65
+ "@blocklet/meta": "1.16.54-beta-20251028-092308-569763e6",
66
+ "@blocklet/rate-limit": "1.16.54-beta-20251028-092308-569763e6",
67
+ "@blocklet/sdk": "1.16.54-beta-20251028-092308-569763e6",
68
+ "@blocklet/server-js": "1.16.54-beta-20251028-092308-569763e6",
69
69
  "@blocklet/theme": "^3.1.51",
70
70
  "@blocklet/theme-builder": "0.4.7",
71
71
  "@blocklet/uploader-server": "^0.2.15",
@@ -125,7 +125,7 @@
125
125
  "whatwg-url": "14.0.0"
126
126
  },
127
127
  "devDependencies": {
128
- "@abtnode/ux": "1.16.54-beta-20251027-105624-dfa978f8",
128
+ "@abtnode/ux": "1.16.54-beta-20251028-092308-569763e6",
129
129
  "@arcblock/bridge": "^3.1.51",
130
130
  "@arcblock/did-connect-react": "^3.1.51",
131
131
  "@arcblock/icons": "^3.1.51",
@@ -135,7 +135,7 @@
135
135
  "@blocklet/did-space-react": "^1.1.34",
136
136
  "@blocklet/launcher-layout": "^3.1.51",
137
137
  "@blocklet/payment-react": "^1.21.17",
138
- "@blocklet/tracker": "1.16.54-beta-20251027-105624-dfa978f8",
138
+ "@blocklet/tracker": "1.16.54-beta-20251028-092308-569763e6",
139
139
  "@blocklet/ui-react": "^3.1.51",
140
140
  "@blocklet/uploader": "^0.2.15",
141
141
  "@emotion/react": "^11.14.0",
@@ -215,5 +215,5 @@
215
215
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
216
216
  "email": "shijun@arcblock.io"
217
217
  },
218
- "gitHead": "03b0bb26807c6c427ca700f48566ecc913f1353e"
218
+ "gitHead": "6143a5fe06862e017da9a2dca2b0ff18c318587b"
219
219
  }