@blocklet/meta 1.16.27-beta-43a3bbb2 → 1.16.27-beta-c450492a
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/index.d.ts +1 -0
- package/lib/info.d.ts +1 -0
- package/lib/info.js +4 -0
- package/package.json +13 -13
package/lib/index.d.ts
CHANGED
package/lib/info.d.ts
CHANGED
package/lib/info.js
CHANGED
|
@@ -15,11 +15,13 @@ const getBlockletInfo = (state, nodeSk, { returnWallet = true } = {}) => {
|
|
|
15
15
|
const customDescription = envs.find((x) => x.key === 'BLOCKLET_APP_DESCRIPTION');
|
|
16
16
|
const customPassportColor = envs.find((x) => x.key === 'BLOCKLET_PASSPORT_COLOR');
|
|
17
17
|
const customAppUrl = envs.find((x) => x.key === 'BLOCKLET_APP_URL');
|
|
18
|
+
const customTenantMode = envs.find((x) => x.key === 'BLOCKLET_APP_TENANT_MODE');
|
|
18
19
|
const { did, version } = state.meta;
|
|
19
20
|
const name = (0, util_1.getDisplayName)(state);
|
|
20
21
|
const description = (0, get_1.default)(customDescription, 'value', state.meta.description);
|
|
21
22
|
const passportColor = (0, get_1.default)(customPassportColor, 'value', 'auto');
|
|
22
23
|
const appUrl = (0, get_1.default)(customAppUrl, 'value', '');
|
|
24
|
+
const tenantMode = (0, get_1.default)(customTenantMode, 'value', '');
|
|
23
25
|
if (!returnWallet) {
|
|
24
26
|
return {
|
|
25
27
|
did,
|
|
@@ -31,6 +33,7 @@ const getBlockletInfo = (state, nodeSk, { returnWallet = true } = {}) => {
|
|
|
31
33
|
secret: '',
|
|
32
34
|
wallet: null,
|
|
33
35
|
permanentWallet: null,
|
|
36
|
+
tenantMode,
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
const customSk = envs.find((x) => x.key === 'BLOCKLET_APP_SK');
|
|
@@ -70,6 +73,7 @@ const getBlockletInfo = (state, nodeSk, { returnWallet = true } = {}) => {
|
|
|
70
73
|
secret,
|
|
71
74
|
wallet,
|
|
72
75
|
permanentWallet: permanentWallet || wallet,
|
|
76
|
+
tenantMode,
|
|
73
77
|
};
|
|
74
78
|
};
|
|
75
79
|
module.exports = getBlockletInfo;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.27-beta-
|
|
6
|
+
"version": "1.16.27-beta-c450492a",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"typings": "./lib/index.d.ts",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/constant": "1.16.27-beta-
|
|
29
|
-
"@arcblock/did": "1.18.
|
|
30
|
-
"@arcblock/did-ext": "1.18.
|
|
31
|
-
"@arcblock/did-util": "1.18.
|
|
32
|
-
"@arcblock/jwt": "1.18.
|
|
33
|
-
"@blocklet/constant": "1.16.27-beta-
|
|
34
|
-
"@ocap/asset": "1.18.
|
|
35
|
-
"@ocap/mcrypto": "1.18.
|
|
36
|
-
"@ocap/types": "1.18.
|
|
37
|
-
"@ocap/util": "1.18.
|
|
38
|
-
"@ocap/wallet": "1.18.
|
|
28
|
+
"@abtnode/constant": "1.16.27-beta-c450492a",
|
|
29
|
+
"@arcblock/did": "1.18.117",
|
|
30
|
+
"@arcblock/did-ext": "1.18.117",
|
|
31
|
+
"@arcblock/did-util": "1.18.117",
|
|
32
|
+
"@arcblock/jwt": "1.18.117",
|
|
33
|
+
"@blocklet/constant": "1.16.27-beta-c450492a",
|
|
34
|
+
"@ocap/asset": "1.18.117",
|
|
35
|
+
"@ocap/mcrypto": "1.18.117",
|
|
36
|
+
"@ocap/types": "1.18.117",
|
|
37
|
+
"@ocap/util": "1.18.117",
|
|
38
|
+
"@ocap/wallet": "1.18.117",
|
|
39
39
|
"ajv": "^8.11.0",
|
|
40
40
|
"axios": "^0.27.2",
|
|
41
41
|
"cjk-length": "^1.0.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"ts-node": "^10.9.1",
|
|
80
80
|
"typescript": "^5.0.4"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "acb1a611412f31cd292b4db4536352dba75bbe3f"
|
|
83
83
|
}
|