@blocklet/sdk 1.8.69-beta-650a290b → 1.16.0-beta-b16cb035

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/env.d.ts CHANGED
@@ -9,6 +9,7 @@ declare const _default: Readonly<{
9
9
  cacheDir: string;
10
10
  mode: string;
11
11
  appStorageEndpoint: string;
12
+ serverVersion: string;
12
13
  preferences: {
13
14
  [key: string]: any;
14
15
  };
@@ -37,6 +37,7 @@ class AuthClient extends client_1.default {
37
37
  }
38
38
  _getAuthHeaders() {
39
39
  const headers = super._getAuthHeaders();
40
+ // BLOCKLET_DID is always same as BLOCKLET_APP_PID in structV2 application
40
41
  headers['x-access-blocklet'] = process.env.BLOCKLET_DID;
41
42
  // x-access-service is not used since 1.8.35
42
43
  headers['x-access-service'] = NODE_SERVICES.AUTH_SERVICE;
package/lib/util/env.d.ts CHANGED
@@ -13,6 +13,7 @@ export declare function parseEnv(env?: NodeJS.ProcessEnv): Readonly<{
13
13
  cacheDir: string;
14
14
  mode: string;
15
15
  appStorageEndpoint: string;
16
+ serverVersion: string;
16
17
  preferences: BlockletPreferences;
17
18
  }>;
18
19
  export {};
package/lib/util/env.js CHANGED
@@ -26,6 +26,7 @@ function parseEnv(env = process.env) {
26
26
  cacheDir: env.BLOCKLET_CACHE_DIR,
27
27
  mode: env.BLOCKLET_MODE,
28
28
  appStorageEndpoint: env.BLOCKLET_APP_SPACE_ENDPOINT,
29
+ serverVersion: env.ABT_NODE,
29
30
  preferences,
30
31
  });
31
32
  }
package/lib/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const version = "1.8.69";
1
+ declare const version = "1.16.0";
2
2
  export { version };
3
3
  declare const _default: {
4
4
  version: string;
package/lib/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- const version = '1.8.69';
4
+ const version = '1.16.0';
5
5
  exports.version = version;
6
6
  exports.default = { version };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.69-beta-650a290b",
6
+ "version": "1.16.0-beta-b16cb035",
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,13 +26,13 @@
26
26
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@abtnode/client": "1.8.69-beta-650a290b",
30
- "@abtnode/constant": "1.8.69-beta-650a290b",
29
+ "@abtnode/client": "1.16.0-beta-b16cb035",
30
+ "@abtnode/constant": "1.16.0-beta-b16cb035",
31
31
  "@arcblock/did-auth": "1.18.59",
32
32
  "@arcblock/jwt": "1.18.59",
33
33
  "@arcblock/ws": "1.18.59",
34
- "@blocklet/constant": "1.8.69-beta-650a290b",
35
- "@blocklet/meta": "1.8.69-beta-650a290b",
34
+ "@blocklet/constant": "1.16.0-beta-b16cb035",
35
+ "@blocklet/meta": "1.16.0-beta-b16cb035",
36
36
  "@did-connect/authenticator": "^2.1.44",
37
37
  "@did-connect/handler": "^2.1.44",
38
38
  "@nedb/core": "^2.1.5",
@@ -70,5 +70,5 @@
70
70
  "ts-node": "^10.9.1",
71
71
  "typescript": "^4.8.4"
72
72
  },
73
- "gitHead": "a33c9ce6a52b8d522d13860e85809dcbba236712"
73
+ "gitHead": "138bd91aee5a35b28c2de4e1e924c44932efaf3a"
74
74
  }