@blocklet/meta 1.6.4 → 1.6.5
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/info.js +7 -4
- package/package.json +2 -2
package/lib/info.js
CHANGED
|
@@ -6,8 +6,11 @@ module.exports = (state, nodeSk, { returnWallet = true } = {}) => {
|
|
|
6
6
|
throw new Error('Blocklet state must be an object');
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const { environments, configs = [] } = state;
|
|
10
|
+
const envs = [...configs, ...environments];
|
|
11
|
+
|
|
12
|
+
const customName = envs.find((x) => x.key === 'BLOCKLET_APP_NAME');
|
|
13
|
+
const customDescription = envs.find((x) => x.key === 'BLOCKLET_APP_DESCRIPTION');
|
|
11
14
|
|
|
12
15
|
const { did } = state.meta;
|
|
13
16
|
const name = get(customName, 'value', state.meta.title || state.meta.name);
|
|
@@ -25,8 +28,8 @@ module.exports = (state, nodeSk, { returnWallet = true } = {}) => {
|
|
|
25
28
|
throw new Error('Node secret key must be a string');
|
|
26
29
|
}
|
|
27
30
|
|
|
28
|
-
const customSk =
|
|
29
|
-
const customType =
|
|
31
|
+
const customSk = envs.find((x) => x.key === 'BLOCKLET_APP_SK');
|
|
32
|
+
const customType = envs.find((x) => x.key === 'BLOCKLET_WALLET_TYPE');
|
|
30
33
|
|
|
31
34
|
let type;
|
|
32
35
|
if (customType && customType.value === 'eth') {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.6.
|
|
6
|
+
"version": "1.6.5",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"jest": "^27.3.1"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "59da906682f8122797a932640aebbad5a30dfcc3"
|
|
46
46
|
}
|