@blocklet/sdk 1.17.0-beta-20251031-063309-13d088fe → 1.17.0-beta-20251103-104515-e4795f0f
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/service/notification.js +6 -1
- package/lib/wallet.js +2 -2
- package/package.json +18 -18
|
@@ -207,7 +207,12 @@ const initClient = async () => {
|
|
|
207
207
|
// verify sender is server
|
|
208
208
|
const tolerance = 600;
|
|
209
209
|
if (!(await Jwt.verify(sender.token, process.env.ABT_NODE_PK, { tolerance }))) {
|
|
210
|
-
const message = `verify sender failed in internal events. event: ${event}, sender: ${JSON.stringify(
|
|
210
|
+
const message = `verify sender failed in internal events. event: ${event}, sender: ${JSON.stringify({
|
|
211
|
+
sender,
|
|
212
|
+
decode: Jwt.decode(sender.token),
|
|
213
|
+
now: Date.now(),
|
|
214
|
+
ABT_NODE_PK: process.env.ABT_NODE_PK,
|
|
215
|
+
})}`;
|
|
211
216
|
emitError({ message });
|
|
212
217
|
console.error(message);
|
|
213
218
|
return;
|
package/lib/wallet.js
CHANGED
|
@@ -44,8 +44,8 @@ const createRemoteWallet = (publicKey, type, keyType = 'sk') => {
|
|
|
44
44
|
const baseWallet = (0, wallet_1.fromPublicKey)(publicKey, type);
|
|
45
45
|
const remoteWallet = Object.create(baseWallet);
|
|
46
46
|
// Add remote sign method
|
|
47
|
-
//
|
|
48
|
-
remoteWallet.sign = async (payload,
|
|
47
|
+
// Match the standard wallet.sign signature: sign(data, hashBeforeSign?, encoding?)
|
|
48
|
+
remoteWallet.sign = async (payload, hashBeforeSign, encoding) => {
|
|
49
49
|
try {
|
|
50
50
|
const { signature } = await (0, signature_1.remoteSign)(payload, { keyType, encoding, hashBeforeSign, type });
|
|
51
51
|
if (!signature) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.0-beta-
|
|
6
|
+
"version": "1.17.0-beta-20251103-104515-e4795f0f",
|
|
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-
|
|
30
|
-
"@abtnode/db-cache": "1.17.0-beta-
|
|
31
|
-
"@abtnode/util": "1.17.0-beta-
|
|
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.0-beta-
|
|
38
|
-
"@blocklet/env": "1.17.0-beta-
|
|
39
|
-
"@blocklet/error": "^0.
|
|
40
|
-
"@blocklet/meta": "1.17.0-beta-
|
|
41
|
-
"@blocklet/server-js": "1.17.0-beta-
|
|
29
|
+
"@abtnode/constant": "1.17.0-beta-20251103-104515-e4795f0f",
|
|
30
|
+
"@abtnode/db-cache": "1.17.0-beta-20251103-104515-e4795f0f",
|
|
31
|
+
"@abtnode/util": "1.17.0-beta-20251103-104515-e4795f0f",
|
|
32
|
+
"@arcblock/did": "^1.27.1",
|
|
33
|
+
"@arcblock/did-connect-js": "^1.27.1",
|
|
34
|
+
"@arcblock/did-ext": "^1.27.1",
|
|
35
|
+
"@arcblock/jwt": "^1.27.1",
|
|
36
|
+
"@arcblock/ws": "^1.27.1",
|
|
37
|
+
"@blocklet/constant": "1.17.0-beta-20251103-104515-e4795f0f",
|
|
38
|
+
"@blocklet/env": "1.17.0-beta-20251103-104515-e4795f0f",
|
|
39
|
+
"@blocklet/error": "^0.3.0",
|
|
40
|
+
"@blocklet/meta": "1.17.0-beta-20251103-104515-e4795f0f",
|
|
41
|
+
"@blocklet/server-js": "1.17.0-beta-20251103-104515-e4795f0f",
|
|
42
42
|
"@blocklet/theme": "^3.1.54",
|
|
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.1",
|
|
47
|
+
"@ocap/util": "^1.27.1",
|
|
48
|
+
"@ocap/wallet": "^1.27.1",
|
|
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": "2fb9b7f6dbf45b407a82ac676955b4ede1c6b347"
|
|
86
86
|
}
|