@blocklet/resolver 1.17.12 → 1.17.13-beta-20260512-004004-69bacba8
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/index.js +2 -3
- package/package.json +20 -7
package/index.js
CHANGED
|
@@ -34,8 +34,7 @@ const filterDuplicateComponents = (components = [], currents = []) => {
|
|
|
34
34
|
const index = arr.findIndex((x) => x.meta.did === component.meta.did);
|
|
35
35
|
if (index > -1) {
|
|
36
36
|
const exist = arr[index];
|
|
37
|
-
//
|
|
38
|
-
// 如果 com1 和 com2 都依赖某个 component, com1 声明依赖版本 1.0.0, 实际获取版本 1.0.0; com2 声明依赖版本 latest(不限), 实际获取版本 2.0.0 -> 则应该取 1.0.0
|
|
37
|
+
// Select the minimum version: if com1 declares 1.0.0 (resolves to 1.0.0) and com2 declares latest (resolves to 2.0.0), choose the minimum (1.0.0)
|
|
39
38
|
if (semver_1.default.lt(component.meta.version, exist.meta.version)) {
|
|
40
39
|
arr.splice(index, 1, component);
|
|
41
40
|
}
|
|
@@ -280,7 +279,7 @@ const parseOptionalComponents = async (blocklet, logger = console) => {
|
|
|
280
279
|
}
|
|
281
280
|
}
|
|
282
281
|
catch (err) {
|
|
283
|
-
// FIXME: parseComponents
|
|
282
|
+
// FIXME: Some errors from parseComponents are expected; this should not throw
|
|
284
283
|
logger.warn(`Can not parse optional child: ${child.meta.name}, error:`, err);
|
|
285
284
|
}
|
|
286
285
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.
|
|
6
|
+
"version": "1.17.13-beta-20260512-004004-69bacba8",
|
|
7
7
|
"description": "Blocklet meta resolver",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"files": [
|
|
@@ -16,20 +16,33 @@
|
|
|
16
16
|
"build:blocklet-resolver": "npm run build",
|
|
17
17
|
"build": "npm run clean && tsc"
|
|
18
18
|
},
|
|
19
|
-
"author":
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "ArcBlock",
|
|
21
|
+
"email": "blocklet@arcblock.io",
|
|
22
|
+
"url": "https://github.com/ArcBlock"
|
|
23
|
+
},
|
|
20
24
|
"license": "Apache-2.0",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/ArcBlock/blocklet-server.git",
|
|
28
|
+
"directory": "blocklet/resolver"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/ArcBlock/blocklet-server/tree/main/blocklet/resolver#readme",
|
|
21
34
|
"dependencies": {
|
|
22
35
|
"@arcblock/did": "1.29.27",
|
|
23
|
-
"@blocklet/constant": "1.17.
|
|
24
|
-
"@blocklet/meta": "1.17.
|
|
36
|
+
"@blocklet/constant": "1.17.13-beta-20260512-004004-69bacba8",
|
|
37
|
+
"@blocklet/meta": "1.17.13-beta-20260512-004004-69bacba8",
|
|
25
38
|
"lodash": "^4.17.21",
|
|
26
39
|
"lru-cache": "^11.0.2",
|
|
27
40
|
"semver": "^7.6.3",
|
|
28
41
|
"ufo": "^1.5.3"
|
|
29
42
|
},
|
|
30
43
|
"devDependencies": {
|
|
31
|
-
"@abtnode/db-cache": "1.17.
|
|
32
|
-
"@abtnode/types": "1.17.
|
|
44
|
+
"@abtnode/db-cache": "1.17.13-beta-20260512-004004-69bacba8",
|
|
45
|
+
"@abtnode/types": "1.17.13-beta-20260512-004004-69bacba8",
|
|
33
46
|
"@arcblock/eslint-config-ts": "^0.3.3",
|
|
34
47
|
"@types/node": "^22.7.5",
|
|
35
48
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
@@ -38,5 +51,5 @@
|
|
|
38
51
|
"eslint": "^8.57.0",
|
|
39
52
|
"prettier": "^3.3.2"
|
|
40
53
|
},
|
|
41
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "289f06c2f5a9390aa03cb942b29da0fc5bfdc745"
|
|
42
55
|
}
|