@abtnode/core 1.7.15 → 1.7.16
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 +6 -1
- package/package.json +14 -14
package/lib/router/helper.js
CHANGED
|
@@ -326,7 +326,12 @@ const ensureWellknownRule = async (sites) => {
|
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
// add /.well-known/service for blocklet
|
|
329
|
-
const blockletRules = site.rules
|
|
329
|
+
const blockletRules = site.rules
|
|
330
|
+
.filter((x) => x.to.type === ROUTING_RULE_TYPES.BLOCKLET)
|
|
331
|
+
// 可能存在挂载的 blocklet 不是自己, 是其他 blocklet
|
|
332
|
+
// 这里默认 pathPrefix 最短的是自己 ( 通常自己在 /, 其他 blocklet 在 /xxxx )
|
|
333
|
+
// 挂载其他 blocklet 的使用方式不推荐, 将来可能会被废弃
|
|
334
|
+
.sort((a, b) => (a.from.pathPrefix.length > b.from.pathPrefix.length ? 1 : -1));
|
|
330
335
|
if (blockletRules.length) {
|
|
331
336
|
// get pathPrefix for blocklet-service
|
|
332
337
|
const rootBlockletRule = blockletRules.find((x) => x.to.did === x.to.realDid);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.7.
|
|
6
|
+
"version": "1.7.16",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/certificate-manager": "1.7.
|
|
23
|
-
"@abtnode/constant": "1.7.
|
|
24
|
-
"@abtnode/cron": "1.7.
|
|
25
|
-
"@abtnode/db": "1.7.
|
|
26
|
-
"@abtnode/logger": "1.7.
|
|
27
|
-
"@abtnode/queue": "1.7.
|
|
28
|
-
"@abtnode/rbac": "1.7.
|
|
29
|
-
"@abtnode/router-provider": "1.7.
|
|
30
|
-
"@abtnode/static-server": "1.7.
|
|
31
|
-
"@abtnode/timemachine": "1.7.
|
|
32
|
-
"@abtnode/util": "1.7.
|
|
22
|
+
"@abtnode/certificate-manager": "1.7.16",
|
|
23
|
+
"@abtnode/constant": "1.7.16",
|
|
24
|
+
"@abtnode/cron": "1.7.16",
|
|
25
|
+
"@abtnode/db": "1.7.16",
|
|
26
|
+
"@abtnode/logger": "1.7.16",
|
|
27
|
+
"@abtnode/queue": "1.7.16",
|
|
28
|
+
"@abtnode/rbac": "1.7.16",
|
|
29
|
+
"@abtnode/router-provider": "1.7.16",
|
|
30
|
+
"@abtnode/static-server": "1.7.16",
|
|
31
|
+
"@abtnode/timemachine": "1.7.16",
|
|
32
|
+
"@abtnode/util": "1.7.16",
|
|
33
33
|
"@arcblock/did": "^1.16.8",
|
|
34
34
|
"@arcblock/did-motif": "^1.1.5",
|
|
35
35
|
"@arcblock/event-hub": "1.16.8",
|
|
36
36
|
"@arcblock/pm2-events": "^0.0.5",
|
|
37
37
|
"@arcblock/vc": "^1.16.8",
|
|
38
|
-
"@blocklet/meta": "1.7.
|
|
38
|
+
"@blocklet/meta": "1.7.16",
|
|
39
39
|
"@fidm/x509": "^1.2.1",
|
|
40
40
|
"@nedb/core": "^1.2.2",
|
|
41
41
|
"@nedb/multi": "^1.2.2",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"express": "^4.17.1",
|
|
80
80
|
"jest": "^27.4.5"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "04529c50cd42af0166b776fae82f8f4398834bfa"
|
|
83
83
|
}
|