@abtnode/core 1.16.17-beta-0213b250 → 1.16.17-beta-d282d63e
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/blocklet/manager/disk.js +0 -1
- package/lib/router/helper.js +0 -1
- package/lib/util/blocklet.js +8 -7
- package/package.json +20 -20
|
@@ -3432,7 +3432,6 @@ class DiskBlockletManager extends BaseBlockletManager {
|
|
|
3432
3432
|
await updateBlockletDocument({
|
|
3433
3433
|
blocklet,
|
|
3434
3434
|
nodeInfo,
|
|
3435
|
-
states,
|
|
3436
3435
|
});
|
|
3437
3436
|
logger.info('updated blocklet dns document', { appPid: blocklet.appPid, appDid: blocklet.appDid });
|
|
3438
3437
|
}
|
package/lib/router/helper.js
CHANGED
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) => {
|
|
@@ -1824,15 +1827,13 @@ const getSlpDid = (serverDid, appPid) => {
|
|
|
1824
1827
|
};
|
|
1825
1828
|
|
|
1826
1829
|
// eslint-disable-next-line require-await
|
|
1827
|
-
const updateDidDocument = async ({ blocklet, nodeInfo
|
|
1830
|
+
const updateDidDocument = async ({ blocklet, nodeInfo }) => {
|
|
1828
1831
|
const alsoKnownAs = getBlockletKnownAs(blocklet);
|
|
1829
1832
|
const { wallet } = getBlockletInfo(blocklet, nodeInfo.sk);
|
|
1830
1833
|
const { mode, launcher, did: serverDid } = nodeInfo;
|
|
1831
1834
|
|
|
1832
1835
|
let slpDid = null;
|
|
1833
|
-
const
|
|
1834
|
-
const blockletController = blockletExtra?.controller;
|
|
1835
|
-
const enableSlpDomain = shouldEnableSlpDomain({ mode, launcher, blockletController });
|
|
1836
|
+
const enableSlpDomain = shouldEnableSlpDomain({ mode, launcher });
|
|
1836
1837
|
if (enableSlpDomain) {
|
|
1837
1838
|
slpDid = getSlpDid(serverDid, blocklet.appPid);
|
|
1838
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-d282d63e",
|
|
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-d282d63e",
|
|
23
|
+
"@abtnode/auth": "1.16.17-beta-d282d63e",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.17-beta-d282d63e",
|
|
25
|
+
"@abtnode/constant": "1.16.17-beta-d282d63e",
|
|
26
|
+
"@abtnode/cron": "1.16.17-beta-d282d63e",
|
|
27
|
+
"@abtnode/logger": "1.16.17-beta-d282d63e",
|
|
28
|
+
"@abtnode/models": "1.16.17-beta-d282d63e",
|
|
29
|
+
"@abtnode/queue": "1.16.17-beta-d282d63e",
|
|
30
|
+
"@abtnode/rbac": "1.16.17-beta-d282d63e",
|
|
31
|
+
"@abtnode/router-provider": "1.16.17-beta-d282d63e",
|
|
32
|
+
"@abtnode/static-server": "1.16.17-beta-d282d63e",
|
|
33
|
+
"@abtnode/timemachine": "1.16.17-beta-d282d63e",
|
|
34
|
+
"@abtnode/util": "1.16.17-beta-d282d63e",
|
|
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-d282d63e",
|
|
46
|
+
"@blocklet/env": "1.16.17-beta-d282d63e",
|
|
47
|
+
"@blocklet/meta": "1.16.17-beta-d282d63e",
|
|
48
|
+
"@blocklet/resolver": "1.16.17-beta-d282d63e",
|
|
49
|
+
"@blocklet/sdk": "1.16.17-beta-d282d63e",
|
|
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": "b675be55d76903e8b92d98cfca7d960fcfedd98f"
|
|
105
105
|
}
|