@abtnode/core 1.16.17-beta-8cacb9b3 → 1.16.17-beta-09df289d
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/util/blocklet.js +7 -4
- package/package.json +20 -20
package/lib/util/blocklet.js
CHANGED
|
@@ -1667,7 +1667,10 @@ const getBlockletDidDomainList = (blocklet, nodeInfo) => {
|
|
|
1667
1667
|
domainAliases.push({ value: domain, isProtected: true });
|
|
1668
1668
|
});
|
|
1669
1669
|
|
|
1670
|
-
const enableSlpDomain = shouldEnableSlpDomain({
|
|
1670
|
+
const enableSlpDomain = shouldEnableSlpDomain({
|
|
1671
|
+
mode: nodeInfo.mode,
|
|
1672
|
+
launcher: nodeInfo.launcher,
|
|
1673
|
+
});
|
|
1671
1674
|
if (enableSlpDomain) {
|
|
1672
1675
|
const slpDid = getSlpDid(nodeInfo.did, blocklet.appPid);
|
|
1673
1676
|
const domain = getDidDomainForBlocklet({ did: slpDid, didDomain: nodeInfo.slpDomain });
|
|
@@ -1803,12 +1806,12 @@ const getComponentNamesWithVersion = (app = {}, componentDids = []) => {
|
|
|
1803
1806
|
return str;
|
|
1804
1807
|
};
|
|
1805
1808
|
|
|
1806
|
-
const shouldEnableSlpDomain = ({ mode, launcher
|
|
1809
|
+
const shouldEnableSlpDomain = ({ mode, launcher }) => {
|
|
1807
1810
|
if (process.env.NODE_ENV === 'development' && process.env.ABT_NODE_ENABLE_SLP_DOMAIN === 'true') {
|
|
1808
1811
|
return true;
|
|
1809
1812
|
}
|
|
1810
1813
|
|
|
1811
|
-
return mode === NODE_MODES.SERVERLESS && !!launcher
|
|
1814
|
+
return mode === NODE_MODES.SERVERLESS && !!launcher;
|
|
1812
1815
|
};
|
|
1813
1816
|
|
|
1814
1817
|
const getSlpDid = (serverDid, appPid) => {
|
|
@@ -1830,7 +1833,7 @@ const updateDidDocument = async ({ blocklet, nodeInfo }) => {
|
|
|
1830
1833
|
const { mode, launcher, did: serverDid } = nodeInfo;
|
|
1831
1834
|
|
|
1832
1835
|
let slpDid = null;
|
|
1833
|
-
const enableSlpDomain = shouldEnableSlpDomain({ mode, launcher
|
|
1836
|
+
const enableSlpDomain = shouldEnableSlpDomain({ mode, launcher });
|
|
1834
1837
|
if (enableSlpDomain) {
|
|
1835
1838
|
slpDid = getSlpDid(serverDid, blocklet.appPid);
|
|
1836
1839
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.17-beta-
|
|
6
|
+
"version": "1.16.17-beta-09df289d",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/analytics": "1.16.17-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.17-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.17-beta-
|
|
25
|
-
"@abtnode/constant": "1.16.17-beta-
|
|
26
|
-
"@abtnode/cron": "1.16.17-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.17-beta-
|
|
28
|
-
"@abtnode/models": "1.16.17-beta-
|
|
29
|
-
"@abtnode/queue": "1.16.17-beta-
|
|
30
|
-
"@abtnode/rbac": "1.16.17-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.16.17-beta-
|
|
32
|
-
"@abtnode/static-server": "1.16.17-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.16.17-beta-
|
|
34
|
-
"@abtnode/util": "1.16.17-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.17-beta-09df289d",
|
|
23
|
+
"@abtnode/auth": "1.16.17-beta-09df289d",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.17-beta-09df289d",
|
|
25
|
+
"@abtnode/constant": "1.16.17-beta-09df289d",
|
|
26
|
+
"@abtnode/cron": "1.16.17-beta-09df289d",
|
|
27
|
+
"@abtnode/logger": "1.16.17-beta-09df289d",
|
|
28
|
+
"@abtnode/models": "1.16.17-beta-09df289d",
|
|
29
|
+
"@abtnode/queue": "1.16.17-beta-09df289d",
|
|
30
|
+
"@abtnode/rbac": "1.16.17-beta-09df289d",
|
|
31
|
+
"@abtnode/router-provider": "1.16.17-beta-09df289d",
|
|
32
|
+
"@abtnode/static-server": "1.16.17-beta-09df289d",
|
|
33
|
+
"@abtnode/timemachine": "1.16.17-beta-09df289d",
|
|
34
|
+
"@abtnode/util": "1.16.17-beta-09df289d",
|
|
35
35
|
"@arcblock/did": "1.18.91",
|
|
36
36
|
"@arcblock/did-auth": "1.18.91",
|
|
37
37
|
"@arcblock/did-ext": "^1.18.91",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@arcblock/pm2-events": "^0.0.5",
|
|
43
43
|
"@arcblock/validator": "^1.18.91",
|
|
44
44
|
"@arcblock/vc": "1.18.91",
|
|
45
|
-
"@blocklet/constant": "1.16.17-beta-
|
|
46
|
-
"@blocklet/env": "1.16.17-beta-
|
|
47
|
-
"@blocklet/meta": "1.16.17-beta-
|
|
48
|
-
"@blocklet/resolver": "1.16.17-beta-
|
|
49
|
-
"@blocklet/sdk": "1.16.17-beta-
|
|
45
|
+
"@blocklet/constant": "1.16.17-beta-09df289d",
|
|
46
|
+
"@blocklet/env": "1.16.17-beta-09df289d",
|
|
47
|
+
"@blocklet/meta": "1.16.17-beta-09df289d",
|
|
48
|
+
"@blocklet/resolver": "1.16.17-beta-09df289d",
|
|
49
|
+
"@blocklet/sdk": "1.16.17-beta-09df289d",
|
|
50
50
|
"@did-space/client": "^0.3.8",
|
|
51
51
|
"@fidm/x509": "^1.2.1",
|
|
52
52
|
"@ocap/mcrypto": "1.18.91",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"jest": "^27.5.1",
|
|
102
102
|
"unzipper": "^0.10.11"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "e86da424c87029c447e4900fc5b6d91a287ebbae"
|
|
105
105
|
}
|