node-karin 1.3.17 → 1.3.18
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/CHANGELOG.md +7 -0
- package/dist/index.js +26 -22
- package/dist/web/assets/{index-C_Dj3lRc.js → index-DF8S_xgW.js} +8 -8
- package/dist/web/assets/index-DScKP-_C.js +1 -0
- package/dist/web/assets/index-tPsyyr3e.js +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-BAH_YkG3.js +0 -1
- package/dist/web/assets/index-C-B8C59Q.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.3.18](https://github.com/KarinJS/Karin/compare/core-v1.3.17...core-v1.3.18) (2025-02-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 兼容性提升 ([d22b68a](https://github.com/KarinJS/Karin/commit/d22b68a7600d419c4c2571e21893d2d36011df25))
|
|
9
|
+
|
|
3
10
|
## [1.3.17](https://github.com/KarinJS/Karin/compare/core-v1.3.16...core-v1.3.17) (2025-02-24)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.js
CHANGED
|
@@ -3400,8 +3400,6 @@ var init_list = __esm({
|
|
|
3400
3400
|
if (fs15.existsSync(`${pluginDir}/${v.name}/package.json`)) return;
|
|
3401
3401
|
list2.push(`app:${v.name}`);
|
|
3402
3402
|
}));
|
|
3403
|
-
const root2 = await requireFile("./package.json");
|
|
3404
|
-
if (root2.name && root2.karin) list2.push(`root:${root2.name}`);
|
|
3405
3403
|
};
|
|
3406
3404
|
filterGit = async (files, list2) => {
|
|
3407
3405
|
await Promise.all(files.map(async (v) => {
|
|
@@ -3410,6 +3408,8 @@ var init_list = __esm({
|
|
|
3410
3408
|
if (!fs15.existsSync(path9.join(pluginDir, v.name, "package.json"))) return;
|
|
3411
3409
|
list2.push(`git:${v.name}`);
|
|
3412
3410
|
}));
|
|
3411
|
+
const root2 = await requireFile("./package.json");
|
|
3412
|
+
if (root2.name && root2.karin) list2.push(`root:${root2.name}`);
|
|
3413
3413
|
};
|
|
3414
3414
|
filterPkg = async (list2) => {
|
|
3415
3415
|
const exclude = [
|
|
@@ -10880,31 +10880,35 @@ var init_local = __esm({
|
|
|
10880
10880
|
var _a, _b;
|
|
10881
10881
|
const pkg2 = val.pkgData;
|
|
10882
10882
|
if (isTs() && ((_a = pkg2.karin) == null ? void 0 : _a["ts-web"])) {
|
|
10883
|
-
|
|
10884
|
-
if (config2 &&
|
|
10885
|
-
|
|
10886
|
-
...config2.info,
|
|
10887
|
-
id: val.name,
|
|
10888
|
-
version: config2.info.version ?? pkg2.version,
|
|
10889
|
-
description: config2.info.description ?? pkg2.description,
|
|
10890
|
-
hasConfig: true,
|
|
10891
|
-
type: val.type
|
|
10892
|
-
});
|
|
10883
|
+
let config2 = await getWebConfig(val.type, val.name);
|
|
10884
|
+
if (!config2 && isDev()) {
|
|
10885
|
+
config2 = await getWebConfig("git", val.name);
|
|
10893
10886
|
}
|
|
10887
|
+
if (!config2 || !config2.info) return;
|
|
10888
|
+
result.push({
|
|
10889
|
+
...config2.info,
|
|
10890
|
+
id: val.name,
|
|
10891
|
+
version: config2.info.version ?? pkg2.version,
|
|
10892
|
+
description: config2.info.description ?? pkg2.description,
|
|
10893
|
+
hasConfig: true,
|
|
10894
|
+
type: val.type
|
|
10895
|
+
});
|
|
10894
10896
|
return;
|
|
10895
10897
|
}
|
|
10896
10898
|
if ((_b = pkg2.karin) == null ? void 0 : _b.web) {
|
|
10897
|
-
|
|
10898
|
-
if (config2 &&
|
|
10899
|
-
|
|
10900
|
-
...config2.info,
|
|
10901
|
-
id: val.name,
|
|
10902
|
-
version: config2.info.version ?? pkg2.version,
|
|
10903
|
-
description: config2.info.description ?? pkg2.description,
|
|
10904
|
-
hasConfig: true,
|
|
10905
|
-
type: val.type
|
|
10906
|
-
});
|
|
10899
|
+
let config2 = await getWebConfig(val.type, val.name);
|
|
10900
|
+
if (!config2 && isDev()) {
|
|
10901
|
+
config2 = await getWebConfig("git", val.name);
|
|
10907
10902
|
}
|
|
10903
|
+
if (!config2 || !config2.info) return;
|
|
10904
|
+
result.push({
|
|
10905
|
+
...config2.info,
|
|
10906
|
+
id: val.name,
|
|
10907
|
+
version: config2.info.version ?? pkg2.version,
|
|
10908
|
+
description: config2.info.description ?? pkg2.description,
|
|
10909
|
+
hasConfig: true,
|
|
10910
|
+
type: val.type
|
|
10911
|
+
});
|
|
10908
10912
|
}
|
|
10909
10913
|
}));
|
|
10910
10914
|
createSuccessResponse(res, result);
|