@blocklet/sdk 1.17.8-beta-20260119-102944-6ba93a16 → 1.17.8-beta-20260121-102603-f9d0176f
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.
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.sendToEventBus = exports.sendToRelay = exports.sendToAppChannel = exports.sendToUser = void 0;
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
8
|
const pick_1 = __importDefault(require("lodash/pick"));
|
|
9
|
-
const constant_1 =
|
|
9
|
+
const constant_1 = require("@abtnode/constant");
|
|
10
10
|
const channel_1 = require("@blocklet/meta/lib/channel");
|
|
11
11
|
const did_1 = require("@arcblock/did");
|
|
12
12
|
const ufo_1 = require("ufo");
|
|
@@ -18,7 +18,6 @@ const constants_1 = require("./constants");
|
|
|
18
18
|
const version_1 = require("../version");
|
|
19
19
|
const parse_docker_endpoint_1 = require("./parse-docker-endpoint");
|
|
20
20
|
const axios = axios_1.default.create({ proxy: false });
|
|
21
|
-
const { NODE_MODES } = constant_1.default;
|
|
22
21
|
const VERSION = version_1.version; // version of notification sdk
|
|
23
22
|
const SERVER_MODE = process.env.ABT_NODE_MODE;
|
|
24
23
|
const getRequestHeaders = () => ({ 'User-Agent': `BlockletSDK/${VERSION}` });
|
|
@@ -77,7 +76,7 @@ const sendToUser = async (receiver, notification, sender, options = {}, pathname
|
|
|
77
76
|
}
|
|
78
77
|
const opt = (0, pick_1.default)(options, ['keepForOfflineUser', 'locale', 'channels', 'raw', 'ttl', 'allowUnsubscribe']);
|
|
79
78
|
await (0, index_1.validateOption)(opt);
|
|
80
|
-
if (SERVER_MODE !== NODE_MODES.DEBUG) {
|
|
79
|
+
if (SERVER_MODE !== constant_1.NODE_MODES.DEBUG) {
|
|
81
80
|
await (0, index_1.validateNotification)(notification);
|
|
82
81
|
}
|
|
83
82
|
try {
|
|
@@ -122,7 +121,7 @@ const sendToAppChannel = async (channel, event, notification, sender, options =
|
|
|
122
121
|
opt.socketDid = opt.userDid;
|
|
123
122
|
delete opt.userDid;
|
|
124
123
|
}
|
|
125
|
-
if (SERVER_MODE !== NODE_MODES.DEBUG) {
|
|
124
|
+
if (SERVER_MODE !== constant_1.NODE_MODES.DEBUG) {
|
|
126
125
|
await (0, index_1.validateNotification)(notification);
|
|
127
126
|
}
|
|
128
127
|
try {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.8-beta-
|
|
6
|
+
"version": "1.17.8-beta-20260121-102603-f9d0176f",
|
|
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,19 +26,19 @@
|
|
|
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.8-beta-
|
|
30
|
-
"@abtnode/db-cache": "1.17.8-beta-
|
|
31
|
-
"@abtnode/util": "1.17.8-beta-
|
|
29
|
+
"@abtnode/constant": "1.17.8-beta-20260121-102603-f9d0176f",
|
|
30
|
+
"@abtnode/db-cache": "1.17.8-beta-20260121-102603-f9d0176f",
|
|
31
|
+
"@abtnode/util": "1.17.8-beta-20260121-102603-f9d0176f",
|
|
32
32
|
"@arcblock/did": "^1.28.5",
|
|
33
33
|
"@arcblock/did-connect-js": "^1.28.5",
|
|
34
34
|
"@arcblock/did-ext": "^1.28.5",
|
|
35
35
|
"@arcblock/jwt": "^1.28.5",
|
|
36
36
|
"@arcblock/ws": "^1.28.5",
|
|
37
|
-
"@blocklet/constant": "1.17.8-beta-
|
|
38
|
-
"@blocklet/env": "1.17.8-beta-
|
|
37
|
+
"@blocklet/constant": "1.17.8-beta-20260121-102603-f9d0176f",
|
|
38
|
+
"@blocklet/env": "1.17.8-beta-20260121-102603-f9d0176f",
|
|
39
39
|
"@blocklet/error": "^0.3.5",
|
|
40
|
-
"@blocklet/meta": "1.17.8-beta-
|
|
41
|
-
"@blocklet/server-js": "1.17.8-beta-
|
|
40
|
+
"@blocklet/meta": "1.17.8-beta-20260121-102603-f9d0176f",
|
|
41
|
+
"@blocklet/server-js": "1.17.8-beta-20260121-102603-f9d0176f",
|
|
42
42
|
"@blocklet/theme": "^3.4.8",
|
|
43
43
|
"@did-connect/authenticator": "^2.2.8",
|
|
44
44
|
"@did-connect/handler": "^2.2.8",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"prettier": "^3.3.2",
|
|
83
83
|
"ts-node": "^10.9.1"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "7ae816f51ed511037e5b7ac0008012ebf4afc987"
|
|
86
86
|
}
|