@blocklet/sdk 1.17.8-beta-20260119-102944-6ba93a16 → 1.17.8-beta-20260125-093329-64b43854

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.
@@ -33,6 +33,7 @@ interface BlockletService {
33
33
  provider: keyof typeof LOGIN_PROVIDER;
34
34
  }>;
35
35
  getUser(did: string, options?: {
36
+ name?: string;
36
37
  enableConnectedAccount?: boolean;
37
38
  includeTags?: boolean;
38
39
  }): Promise<Client.ResponseUser>;
@@ -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 = __importDefault(require("@abtnode/constant"));
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-20260119-102944-6ba93a16",
6
+ "version": "1.17.8-beta-20260125-093329-64b43854",
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.8-beta-20260119-102944-6ba93a16",
30
- "@abtnode/db-cache": "1.17.8-beta-20260119-102944-6ba93a16",
31
- "@abtnode/util": "1.17.8-beta-20260119-102944-6ba93a16",
32
- "@arcblock/did": "^1.28.5",
33
- "@arcblock/did-connect-js": "^1.28.5",
34
- "@arcblock/did-ext": "^1.28.5",
35
- "@arcblock/jwt": "^1.28.5",
36
- "@arcblock/ws": "^1.28.5",
37
- "@blocklet/constant": "1.17.8-beta-20260119-102944-6ba93a16",
38
- "@blocklet/env": "1.17.8-beta-20260119-102944-6ba93a16",
29
+ "@abtnode/constant": "1.17.8-beta-20260125-093329-64b43854",
30
+ "@abtnode/db-cache": "1.17.8-beta-20260125-093329-64b43854",
31
+ "@abtnode/util": "1.17.8-beta-20260125-093329-64b43854",
32
+ "@arcblock/did": "^1.28.6",
33
+ "@arcblock/did-connect-js": "^1.28.6",
34
+ "@arcblock/did-ext": "^1.28.6",
35
+ "@arcblock/jwt": "^1.28.6",
36
+ "@arcblock/ws": "^1.28.6",
37
+ "@blocklet/constant": "1.17.8-beta-20260125-093329-64b43854",
38
+ "@blocklet/env": "1.17.8-beta-20260125-093329-64b43854",
39
39
  "@blocklet/error": "^0.3.5",
40
- "@blocklet/meta": "1.17.8-beta-20260119-102944-6ba93a16",
41
- "@blocklet/server-js": "1.17.8-beta-20260119-102944-6ba93a16",
42
- "@blocklet/theme": "^3.4.8",
40
+ "@blocklet/meta": "1.17.8-beta-20260125-093329-64b43854",
41
+ "@blocklet/server-js": "1.17.8-beta-20260125-093329-64b43854",
42
+ "@blocklet/theme": "^3.4.10",
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.28.5",
47
- "@ocap/util": "^1.28.5",
48
- "@ocap/wallet": "^1.28.5",
46
+ "@ocap/mcrypto": "^1.28.6",
47
+ "@ocap/util": "^1.28.6",
48
+ "@ocap/wallet": "^1.28.6",
49
49
  "axios": "^1.7.9",
50
50
  "debug": "^4.4.1",
51
51
  "fs-extra": "^11.2.0",
@@ -82,5 +82,5 @@
82
82
  "prettier": "^3.3.2",
83
83
  "ts-node": "^10.9.1"
84
84
  },
85
- "gitHead": "52d0430ade8bad2dbc91251b6183d152116fee0f"
85
+ "gitHead": "241254785bda907be2296228869b4fc9c1679a6b"
86
86
  }