@blocklet/sdk 1.8.36 → 1.8.37
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 +1 -0
- package/lib/env.js +7 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +6 -6
package/lib/env.d.ts
CHANGED
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,
|
|
@@ -9,5 +10,11 @@ const env = Object.freeze({
|
|
|
9
10
|
cacheDir: process.env.BLOCKLET_CACHE_DIR,
|
|
10
11
|
mode: process.env.BLOCKLET_MODE,
|
|
11
12
|
appStorageEndpoint: process.env.BLOCKLET_APP_STORAGE_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
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.37",
|
|
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.
|
|
30
|
-
"@abtnode/constant": "1.8.
|
|
29
|
+
"@abtnode/client": "1.8.37",
|
|
30
|
+
"@abtnode/constant": "1.8.37",
|
|
31
31
|
"@arcblock/did-auth": "1.18.15",
|
|
32
32
|
"@arcblock/jwt": "1.18.15",
|
|
33
33
|
"@arcblock/ws": "1.18.15",
|
|
34
|
-
"@blocklet/constant": "1.8.
|
|
35
|
-
"@blocklet/meta": "1.8.
|
|
34
|
+
"@blocklet/constant": "1.8.37",
|
|
35
|
+
"@blocklet/meta": "1.8.37",
|
|
36
36
|
"@did-connect/authenticator": "^2.1.26",
|
|
37
37
|
"@did-connect/handler": "^2.1.26",
|
|
38
38
|
"@nedb/core": "^2.0.5",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"ts-node": "^10.9.1",
|
|
69
69
|
"typescript": "^4.8.4"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "f26f451c6e2b1168b36f78269eafdf3f671236bf"
|
|
72
72
|
}
|