@blocklet/sdk 1.16.28-beta-bfbab430 → 1.16.28-beta-641c9f13
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.d.ts +1 -1
- package/lib/config.js +2 -2
- package/lib/service/notification.d.ts +1 -1
- package/lib/service/notification.js +3 -3
- package/package.json +9 -9
package/lib/config.d.ts
CHANGED
package/lib/config.js
CHANGED
|
@@ -9,7 +9,7 @@ exports._handleComponentConfigUpdate = exports._handleComponentRemoved = exports
|
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
10
|
const fs_1 = __importDefault(require("fs"));
|
|
11
11
|
const ufo_1 = require("ufo");
|
|
12
|
-
const events_1 =
|
|
12
|
+
const events_1 = require("events");
|
|
13
13
|
const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
|
|
14
14
|
const throttle_1 = __importDefault(require("lodash/throttle"));
|
|
15
15
|
const env_1 = __importDefault(require("@blocklet/env"));
|
|
@@ -22,7 +22,7 @@ const version_1 = require("./version");
|
|
|
22
22
|
const notification_1 = __importDefault(require("./service/notification"));
|
|
23
23
|
const server_version_1 = __importDefault(require("./util/server-version"));
|
|
24
24
|
const parse_env_file_1 = require("./util/parse-env-file");
|
|
25
|
-
const events = new events_1.
|
|
25
|
+
const events = new events_1.EventEmitter();
|
|
26
26
|
exports.events = events;
|
|
27
27
|
const Events = {
|
|
28
28
|
componentAdded: 'componentAdded',
|
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.broadcast = exports.sendToRelay = exports.sendToMail = exports.sendToUser = exports._message = exports.off = exports.on = void 0;
|
|
30
30
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
31
31
|
const Jwt = __importStar(require("@arcblock/jwt"));
|
|
32
|
-
const
|
|
32
|
+
const node_events_1 = require("node:events");
|
|
33
33
|
const ws_1 = require("@arcblock/ws");
|
|
34
34
|
const channel_1 = require("@blocklet/meta/lib/channel");
|
|
35
35
|
const constant_1 = require("@blocklet/constant");
|
|
@@ -92,8 +92,8 @@ const broadcast = async (notification, options = {}) => {
|
|
|
92
92
|
};
|
|
93
93
|
exports.broadcast = broadcast;
|
|
94
94
|
const noop = () => { };
|
|
95
|
-
const emitter = new
|
|
96
|
-
const messageEmitter = new
|
|
95
|
+
const emitter = new node_events_1.EventEmitter();
|
|
96
|
+
const messageEmitter = new node_events_1.EventEmitter();
|
|
97
97
|
const emitError = (error) => {
|
|
98
98
|
messageEmitter.emit('error', error);
|
|
99
99
|
emitter.emit('error', error);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.28-beta-
|
|
6
|
+
"version": "1.16.28-beta-641c9f13",
|
|
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",
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@abtnode/client": "1.16.28-beta-
|
|
31
|
-
"@abtnode/constant": "1.16.28-beta-
|
|
30
|
+
"@abtnode/client": "1.16.28-beta-641c9f13",
|
|
31
|
+
"@abtnode/constant": "1.16.28-beta-641c9f13",
|
|
32
32
|
"@arcblock/did": "1.18.123",
|
|
33
33
|
"@arcblock/did-auth": "1.18.123",
|
|
34
34
|
"@arcblock/jwt": "1.18.123",
|
|
35
35
|
"@arcblock/ws": "1.18.123",
|
|
36
|
-
"@blocklet/constant": "1.16.28-beta-
|
|
37
|
-
"@blocklet/env": "1.16.28-beta-
|
|
38
|
-
"@blocklet/meta": "1.16.28-beta-
|
|
36
|
+
"@blocklet/constant": "1.16.28-beta-641c9f13",
|
|
37
|
+
"@blocklet/env": "1.16.28-beta-641c9f13",
|
|
38
|
+
"@blocklet/meta": "1.16.28-beta-641c9f13",
|
|
39
39
|
"@did-connect/authenticator": "^2.2.4",
|
|
40
40
|
"@did-connect/handler": "^2.2.4",
|
|
41
41
|
"@nedb/core": "^2.1.5",
|
|
42
42
|
"@ocap/mcrypto": "1.18.123",
|
|
43
43
|
"@ocap/wallet": "1.18.123",
|
|
44
|
-
"axios": "^
|
|
44
|
+
"axios": "^1.7.2",
|
|
45
45
|
"cheerio": "^1.0.0-rc.12",
|
|
46
46
|
"fs-extra": "^11.2.0",
|
|
47
47
|
"joi": "17.12.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"lru-cache": "^6.0.0",
|
|
51
51
|
"semver": "^7.3.8",
|
|
52
52
|
"sitemap": "^7.1.1",
|
|
53
|
-
"ufo": "^1.
|
|
53
|
+
"ufo": "^1.5.3",
|
|
54
54
|
"wait-port": "^1.1.0"
|
|
55
55
|
},
|
|
56
56
|
"resolutions": {
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"ts-node": "^10.9.1",
|
|
76
76
|
"typescript": "^5.0.4"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "eb1fa63e4ed26fe5ba230845a318faa29408138b"
|
|
79
79
|
}
|