@blocklet/resolver 1.17.12-beta-20260422-075550-7bd6bb1a → 1.17.12
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 +3 -2
- package/package.json +7 -20
package/index.js
CHANGED
|
@@ -34,7 +34,8 @@ 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
|
-
//
|
|
37
|
+
// 选择最小版本:
|
|
38
|
+
// 如果 com1 和 com2 都依赖某个 component, com1 声明依赖版本 1.0.0, 实际获取版本 1.0.0; com2 声明依赖版本 latest(不限), 实际获取版本 2.0.0 -> 则应该取 1.0.0
|
|
38
39
|
if (semver_1.default.lt(component.meta.version, exist.meta.version)) {
|
|
39
40
|
arr.splice(index, 1, component);
|
|
40
41
|
}
|
|
@@ -279,7 +280,7 @@ const parseOptionalComponents = async (blocklet, logger = console) => {
|
|
|
279
280
|
}
|
|
280
281
|
}
|
|
281
282
|
catch (err) {
|
|
282
|
-
// FIXME:
|
|
283
|
+
// FIXME: parseComponents 有一些错误是符合预期的, 这里不应该抛出
|
|
283
284
|
logger.warn(`Can not parse optional child: ${child.meta.name}, error:`, err);
|
|
284
285
|
}
|
|
285
286
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.17.12
|
|
6
|
+
"version": "1.17.12",
|
|
7
7
|
"description": "Blocklet meta resolver",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"files": [
|
|
@@ -16,33 +16,20 @@
|
|
|
16
16
|
"build:blocklet-resolver": "npm run build",
|
|
17
17
|
"build": "npm run clean && tsc"
|
|
18
18
|
},
|
|
19
|
-
"author":
|
|
20
|
-
"name": "ArcBlock",
|
|
21
|
-
"email": "blocklet@arcblock.io",
|
|
22
|
-
"url": "https://github.com/ArcBlock"
|
|
23
|
-
},
|
|
19
|
+
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
24
20
|
"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",
|
|
34
21
|
"dependencies": {
|
|
35
22
|
"@arcblock/did": "1.29.27",
|
|
36
|
-
"@blocklet/constant": "1.17.12
|
|
37
|
-
"@blocklet/meta": "1.17.12
|
|
23
|
+
"@blocklet/constant": "1.17.12",
|
|
24
|
+
"@blocklet/meta": "1.17.12",
|
|
38
25
|
"lodash": "^4.17.21",
|
|
39
26
|
"lru-cache": "^11.0.2",
|
|
40
27
|
"semver": "^7.6.3",
|
|
41
28
|
"ufo": "^1.5.3"
|
|
42
29
|
},
|
|
43
30
|
"devDependencies": {
|
|
44
|
-
"@abtnode/db-cache": "1.17.12
|
|
45
|
-
"@abtnode/types": "1.17.12
|
|
31
|
+
"@abtnode/db-cache": "1.17.12",
|
|
32
|
+
"@abtnode/types": "1.17.12",
|
|
46
33
|
"@arcblock/eslint-config-ts": "^0.3.3",
|
|
47
34
|
"@types/node": "^22.7.5",
|
|
48
35
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
@@ -51,5 +38,5 @@
|
|
|
51
38
|
"eslint": "^8.57.0",
|
|
52
39
|
"prettier": "^3.3.2"
|
|
53
40
|
},
|
|
54
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "a851c46d35a66372b7aa8fb5d7eed7d26980da8a"
|
|
55
42
|
}
|