@blocklet/sdk 1.8.36 → 1.8.38

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
@@ -8,5 +8,6 @@ declare const env: Readonly<{
8
8
  cacheDir: string;
9
9
  mode: string;
10
10
  appStorageEndpoint: string;
11
+ preferences: {};
11
12
  }>;
12
13
  export = env;
package/lib/env.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const constant_1 = require("@blocklet/constant");
2
3
  const env = Object.freeze({
3
4
  appId: process.env.BLOCKLET_APP_ID,
4
5
  appName: process.env.BLOCKLET_APP_NAME,
@@ -8,6 +9,12 @@ const env = Object.freeze({
8
9
  dataDir: process.env.BLOCKLET_DATA_DIR,
9
10
  cacheDir: process.env.BLOCKLET_CACHE_DIR,
10
11
  mode: process.env.BLOCKLET_MODE,
11
- appStorageEndpoint: process.env.BLOCKLET_APP_STORAGE_ENDPOINT,
12
+ appStorageEndpoint: process.env.BLOCKLET_APP_SPACE_ENDPOINT,
13
+ preferences: Object.keys(process.env)
14
+ .filter((x) => x.startsWith(constant_1.BLOCKLET_PREFERENCE_PREFIX))
15
+ .reduce((acc, x) => {
16
+ acc[x.replace(constant_1.BLOCKLET_PREFERENCE_PREFIX, '')] = process.env[x];
17
+ return acc;
18
+ }, {}),
12
19
  });
13
20
  module.exports = env;
package/lib/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const version = "1.8.36";
1
+ declare const version = "1.8.38";
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.36';
4
+ const version = '1.8.38';
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.36",
6
+ "version": "1.8.38",
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,18 +26,18 @@
26
26
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@abtnode/client": "1.8.36",
30
- "@abtnode/constant": "1.8.36",
31
- "@arcblock/did-auth": "1.18.15",
32
- "@arcblock/jwt": "1.18.15",
33
- "@arcblock/ws": "1.18.15",
34
- "@blocklet/constant": "1.8.36",
35
- "@blocklet/meta": "1.8.36",
29
+ "@abtnode/client": "1.8.38",
30
+ "@abtnode/constant": "1.8.38",
31
+ "@arcblock/did-auth": "1.18.18",
32
+ "@arcblock/jwt": "1.18.18",
33
+ "@arcblock/ws": "1.18.18",
34
+ "@blocklet/constant": "1.8.38",
35
+ "@blocklet/meta": "1.8.38",
36
36
  "@did-connect/authenticator": "^2.1.26",
37
37
  "@did-connect/handler": "^2.1.26",
38
38
  "@nedb/core": "^2.0.5",
39
- "@ocap/mcrypto": "1.18.15",
40
- "@ocap/wallet": "1.18.15",
39
+ "@ocap/mcrypto": "1.18.18",
40
+ "@ocap/wallet": "1.18.18",
41
41
  "axios": "^0.27.2",
42
42
  "fs-extra": "^10.1.0",
43
43
  "joi": "17.6.3",
@@ -68,5 +68,5 @@
68
68
  "ts-node": "^10.9.1",
69
69
  "typescript": "^4.8.4"
70
70
  },
71
- "gitHead": "507e974ce88bad1aa002c593130b32982207f803"
71
+ "gitHead": "cbb88f107eb6b403c8cd47a765920575860c7bc7"
72
72
  }