@blocklet/sdk 1.16.49-beta-20250815-032308-7bcf0b85 → 1.16.49-beta-20250821-102221-1b7283d6

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/did.d.ts CHANGED
@@ -3,5 +3,5 @@ import { getConnectedAccounts, getConnectedDids, getPermanentDid, getWallet, get
3
3
  import AuthService from './service/auth';
4
4
  declare function getUserInfo(userDid: string, { authClient }?: {
5
5
  authClient?: AuthService;
6
- }): Promise<import("@abtnode/client").UserInfo>;
6
+ }): Promise<import("@blocklet/server-js").UserInfo>;
7
7
  export { getUserInfo, toBlockletDid, getConnectedAccounts, getConnectedDids, getPermanentDid, getWallet, getWalletDid };
@@ -1,4 +1,4 @@
1
- import Client from '@abtnode/client';
1
+ import Client from '@blocklet/server-js';
2
2
  import { LOGIN_PROVIDER } from '@blocklet/constant';
3
3
  type PartialDeep<T> = {
4
4
  [K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
@@ -40,7 +40,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
40
40
  /* eslint-disable @typescript-eslint/indent */
41
41
  const pickBy_1 = __importDefault(require("lodash/pickBy"));
42
42
  const ufo_1 = require("ufo");
43
- const client_1 = __importDefault(require("@abtnode/client"));
43
+ const server_js_1 = __importDefault(require("@blocklet/server-js"));
44
44
  const constant_1 = __importStar(require("@abtnode/constant"));
45
45
  const util_1 = require("@ocap/util");
46
46
  const constant_2 = require("@blocklet/constant");
@@ -62,7 +62,7 @@ const fixAvatar = (user) => {
62
62
  }
63
63
  return user;
64
64
  };
65
- class AuthClient extends client_1.default {
65
+ class AuthClient extends server_js_1.default {
66
66
  constructor(httpEndpoint) {
67
67
  (0, check_blocklet_env_1.default)();
68
68
  super(httpEndpoint || `http://${(0, parse_docker_endpoint_1.getServerHost)()}:${process.env.ABT_NODE_PORT}/api/gql`.trim(), `BlockletSDK/${VERSION}`);
@@ -14,9 +14,9 @@ export declare function getFederatedMasterAppInfo({ blocklet, sourceAppPid, vers
14
14
  nodeDid: any;
15
15
  };
16
16
  export declare function getBlockletInfoSimple(getBlocklet?: () => Promise<ABTNodeClient.BlockletState>): Promise<{
17
- federated: import("@abtnode/client").FederatedConfig;
17
+ federated: import("@blocklet/server-js").FederatedConfig;
18
18
  appPid: string;
19
- blocklet: import("@abtnode/client").BlockletState;
19
+ blocklet: import("@blocklet/server-js").BlockletState;
20
20
  description: string;
21
21
  name: string;
22
22
  version: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.49-beta-20250815-032308-7bcf0b85",
6
+ "version": "1.16.49-beta-20250821-102221-1b7283d6",
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,25 +27,25 @@
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.49-beta-20250815-032308-7bcf0b85",
31
- "@abtnode/constant": "1.16.49-beta-20250815-032308-7bcf0b85",
32
- "@abtnode/db-cache": "1.16.49-beta-20250815-032308-7bcf0b85",
33
- "@abtnode/util": "1.16.49-beta-20250815-032308-7bcf0b85",
34
- "@arcblock/did": "1.21.2",
35
- "@arcblock/did-connect-js": "1.21.2",
36
- "@arcblock/jwt": "1.21.2",
37
- "@arcblock/ws": "1.21.3",
38
- "@blocklet/constant": "1.16.49-beta-20250815-032308-7bcf0b85",
39
- "@blocklet/env": "1.16.49-beta-20250815-032308-7bcf0b85",
30
+ "@abtnode/constant": "1.16.49-beta-20250821-102221-1b7283d6",
31
+ "@abtnode/db-cache": "1.16.49-beta-20250821-102221-1b7283d6",
32
+ "@abtnode/util": "1.16.49-beta-20250821-102221-1b7283d6",
33
+ "@arcblock/did": "1.22.2",
34
+ "@arcblock/did-connect-js": "1.22.2",
35
+ "@arcblock/jwt": "1.22.2",
36
+ "@arcblock/ws": "1.22.2",
37
+ "@blocklet/constant": "1.16.49-beta-20250821-102221-1b7283d6",
38
+ "@blocklet/env": "1.16.49-beta-20250821-102221-1b7283d6",
40
39
  "@blocklet/error": "^0.2.5",
41
- "@blocklet/meta": "1.16.49-beta-20250815-032308-7bcf0b85",
42
- "@blocklet/theme": "^3.1.19",
40
+ "@blocklet/meta": "1.16.49-beta-20250821-102221-1b7283d6",
41
+ "@blocklet/server-js": "1.16.49-beta-20250821-102221-1b7283d6",
42
+ "@blocklet/theme": "^3.1.25",
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.21.2",
47
- "@ocap/util": "1.21.2",
48
- "@ocap/wallet": "1.21.2",
46
+ "@ocap/mcrypto": "1.22.2",
47
+ "@ocap/util": "1.22.2",
48
+ "@ocap/wallet": "1.22.2",
49
49
  "axios": "^1.7.9",
50
50
  "cheerio": "1.0.0-rc.12",
51
51
  "debug": "^4.4.1",
@@ -85,5 +85,5 @@
85
85
  "ts-node": "^10.9.1",
86
86
  "typescript": "^5.6.3"
87
87
  },
88
- "gitHead": "75dd236eb42d14a5093c1364e51625412aa91790"
88
+ "gitHead": "4fdd3b0cfb87b45ff8c0d539f83c3ddcbd71465b"
89
89
  }