@blocklet/sdk 1.16.6-beta-8be2fe37 → 1.16.6-beta-4ea1eb90
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/index.d.ts +2 -0
- package/lib/service/notification.js +2 -2
- package/package.json +15 -15
package/lib/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ const channel_1 = require("@blocklet/meta/lib/channel");
|
|
|
35
35
|
const check_blocklet_env_1 = __importDefault(require("../util/check-blocklet-env"));
|
|
36
36
|
const send_notification_1 = require("../util/send-notification");
|
|
37
37
|
const constants_1 = require("../util/constants");
|
|
38
|
-
const wallet_1 =
|
|
38
|
+
const wallet_1 = __importStar(require("../wallet"));
|
|
39
39
|
const notification_1 = require("../validators/notification");
|
|
40
40
|
const getSender = () => {
|
|
41
41
|
const wallet = (0, wallet_1.default)();
|
|
@@ -90,7 +90,7 @@ const emitError = (error) => {
|
|
|
90
90
|
let client = null;
|
|
91
91
|
const initClient = () => {
|
|
92
92
|
if (!client) {
|
|
93
|
-
const wallet = (0, wallet_1.
|
|
93
|
+
const wallet = (0, wallet_1.getPermanentWallet)();
|
|
94
94
|
const { address: did, publicKey: pk, secretKey: sk } = wallet;
|
|
95
95
|
const url = `ws://127.0.0.1:${process.env.ABT_NODE_SERVICE_PORT}${constants_1.SERVICE_PREFIX}`;
|
|
96
96
|
const token = () => Jwt.sign(did, sk, {});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.6-beta-
|
|
6
|
+
"version": "1.16.6-beta-4ea1eb90",
|
|
7
7
|
"description": "graphql client to read/write data on abt node",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"typings": "lib/index.d.ts",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@abtnode/client": "1.16.6-beta-
|
|
30
|
-
"@abtnode/constant": "1.16.6-beta-
|
|
31
|
-
"@arcblock/did": "1.18.
|
|
32
|
-
"@arcblock/did-auth": "1.18.
|
|
33
|
-
"@arcblock/jwt": "1.18.
|
|
34
|
-
"@arcblock/ws": "1.18.
|
|
35
|
-
"@blocklet/constant": "1.16.6-beta-
|
|
36
|
-
"@blocklet/env": "1.16.6-beta-
|
|
37
|
-
"@blocklet/meta": "1.16.6-beta-
|
|
38
|
-
"@did-connect/authenticator": "^2.1.
|
|
39
|
-
"@did-connect/handler": "^2.1.
|
|
29
|
+
"@abtnode/client": "1.16.6-beta-4ea1eb90",
|
|
30
|
+
"@abtnode/constant": "1.16.6-beta-4ea1eb90",
|
|
31
|
+
"@arcblock/did": "1.18.72",
|
|
32
|
+
"@arcblock/did-auth": "1.18.72",
|
|
33
|
+
"@arcblock/jwt": "1.18.72",
|
|
34
|
+
"@arcblock/ws": "1.18.72",
|
|
35
|
+
"@blocklet/constant": "1.16.6-beta-4ea1eb90",
|
|
36
|
+
"@blocklet/env": "1.16.6-beta-4ea1eb90",
|
|
37
|
+
"@blocklet/meta": "1.16.6-beta-4ea1eb90",
|
|
38
|
+
"@did-connect/authenticator": "^2.1.51",
|
|
39
|
+
"@did-connect/handler": "^2.1.51",
|
|
40
40
|
"@nedb/core": "^2.1.5",
|
|
41
|
-
"@ocap/mcrypto": "1.18.
|
|
42
|
-
"@ocap/wallet": "1.18.
|
|
41
|
+
"@ocap/mcrypto": "1.18.72",
|
|
42
|
+
"@ocap/wallet": "1.18.72",
|
|
43
43
|
"axios": "^0.27.2",
|
|
44
44
|
"cheerio": "^1.0.0-rc.12",
|
|
45
45
|
"fs-extra": "^10.1.0",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"ts-node": "^10.9.1",
|
|
73
73
|
"typescript": "^4.8.4"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "0f0f63b552a88343a3f8e0d434b47c3bca6a75b9"
|
|
76
76
|
}
|