@abtnode/core 1.16.21-beta-420f105a → 1.16.21-beta-445a8baa
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/router/helper.js +1 -0
- package/lib/util/blocklet.js +5 -2
- package/package.json +20 -20
package/lib/router/helper.js
CHANGED
|
@@ -395,6 +395,7 @@ const ensureWellknownRule = async (sites = []) => {
|
|
|
395
395
|
componentId: rule.to.componentId,
|
|
396
396
|
cacheGroup: isServiceFeDevelopment ? '' : 'blockletProxy',
|
|
397
397
|
target: avatarPathPrefix,
|
|
398
|
+
port: process.env.ABT_NODE_SERVICE_PORT,
|
|
398
399
|
},
|
|
399
400
|
isProtected: true,
|
|
400
401
|
dynamic: true,
|
package/lib/util/blocklet.js
CHANGED
|
@@ -1942,13 +1942,16 @@ const getPackConfig = (app) => {
|
|
|
1942
1942
|
return null;
|
|
1943
1943
|
}
|
|
1944
1944
|
|
|
1945
|
-
const resource = (packComponent.meta.
|
|
1945
|
+
const resource = (packComponent.meta.resource?.bundles || []).find(
|
|
1946
|
+
(x) => x.did === packComponent.meta.did && x.type === 'config'
|
|
1947
|
+
);
|
|
1948
|
+
|
|
1946
1949
|
if (!resource) {
|
|
1947
1950
|
return null;
|
|
1948
1951
|
}
|
|
1949
1952
|
|
|
1950
1953
|
const { appDir } = packComponent.env;
|
|
1951
|
-
const configFile = path.join(appDir, BLOCKLET_RESOURCE_DIR, resource, 'config.json');
|
|
1954
|
+
const configFile = path.join(appDir, BLOCKLET_RESOURCE_DIR, resource.did, resource.type, 'config.json');
|
|
1952
1955
|
|
|
1953
1956
|
if (!fs.existsSync(configFile)) {
|
|
1954
1957
|
return null;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.21-beta-
|
|
6
|
+
"version": "1.16.21-beta-445a8baa",
|
|
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.21-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.21-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.21-beta-
|
|
25
|
-
"@abtnode/constant": "1.16.21-beta-
|
|
26
|
-
"@abtnode/cron": "1.16.21-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.21-beta-
|
|
28
|
-
"@abtnode/models": "1.16.21-beta-
|
|
29
|
-
"@abtnode/queue": "1.16.21-beta-
|
|
30
|
-
"@abtnode/rbac": "1.16.21-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.16.21-beta-
|
|
32
|
-
"@abtnode/static-server": "1.16.21-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.16.21-beta-
|
|
34
|
-
"@abtnode/util": "1.16.21-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.21-beta-445a8baa",
|
|
23
|
+
"@abtnode/auth": "1.16.21-beta-445a8baa",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.21-beta-445a8baa",
|
|
25
|
+
"@abtnode/constant": "1.16.21-beta-445a8baa",
|
|
26
|
+
"@abtnode/cron": "1.16.21-beta-445a8baa",
|
|
27
|
+
"@abtnode/logger": "1.16.21-beta-445a8baa",
|
|
28
|
+
"@abtnode/models": "1.16.21-beta-445a8baa",
|
|
29
|
+
"@abtnode/queue": "1.16.21-beta-445a8baa",
|
|
30
|
+
"@abtnode/rbac": "1.16.21-beta-445a8baa",
|
|
31
|
+
"@abtnode/router-provider": "1.16.21-beta-445a8baa",
|
|
32
|
+
"@abtnode/static-server": "1.16.21-beta-445a8baa",
|
|
33
|
+
"@abtnode/timemachine": "1.16.21-beta-445a8baa",
|
|
34
|
+
"@abtnode/util": "1.16.21-beta-445a8baa",
|
|
35
35
|
"@arcblock/did": "1.18.107",
|
|
36
36
|
"@arcblock/did-auth": "1.18.107",
|
|
37
37
|
"@arcblock/did-ext": "^1.18.107",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@arcblock/pm2-events": "^0.0.5",
|
|
43
43
|
"@arcblock/validator": "^1.18.107",
|
|
44
44
|
"@arcblock/vc": "1.18.107",
|
|
45
|
-
"@blocklet/constant": "1.16.21-beta-
|
|
46
|
-
"@blocklet/env": "1.16.21-beta-
|
|
47
|
-
"@blocklet/meta": "1.16.21-beta-
|
|
48
|
-
"@blocklet/resolver": "1.16.21-beta-
|
|
49
|
-
"@blocklet/sdk": "1.16.21-beta-
|
|
45
|
+
"@blocklet/constant": "1.16.21-beta-445a8baa",
|
|
46
|
+
"@blocklet/env": "1.16.21-beta-445a8baa",
|
|
47
|
+
"@blocklet/meta": "1.16.21-beta-445a8baa",
|
|
48
|
+
"@blocklet/resolver": "1.16.21-beta-445a8baa",
|
|
49
|
+
"@blocklet/sdk": "1.16.21-beta-445a8baa",
|
|
50
50
|
"@did-space/client": "^0.3.45",
|
|
51
51
|
"@fidm/x509": "^1.2.1",
|
|
52
52
|
"@ocap/mcrypto": "1.18.107",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"jest": "^27.5.1",
|
|
103
103
|
"unzipper": "^0.10.11"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "7a7ff8be7f424775c3bde0eead773d8e6177fa1a"
|
|
106
106
|
}
|