@delta-comic/plugin 0.3.1 → 0.3.2
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/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/pack.tgz +0 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -6709,14 +6709,14 @@ const Rr = () => i(Y, "pluginInstallSourceOverrides", []), zr = (e, t, n) => e.c
|
|
|
6709
6709
|
}), Br = (e, t) => H(`下载插件-${e}`, async (n) => {
|
|
6710
6710
|
let [i, a] = await n.createLoading("下载", async (t) => {
|
|
6711
6711
|
t.retryable = !0;
|
|
6712
|
-
let n =
|
|
6713
|
-
if (!n) throw Error("没有符合的下载器:" + e);
|
|
6714
|
-
t.description = n.name;
|
|
6715
|
-
let r = e;
|
|
6712
|
+
let n = e;
|
|
6716
6713
|
for (;;) {
|
|
6717
|
-
let e =
|
|
6718
|
-
if (
|
|
6719
|
-
|
|
6714
|
+
let e = Lr.filter((e) => e.isMatched(n)).at(0);
|
|
6715
|
+
if (!e) throw Error("没有符合的下载器:" + n);
|
|
6716
|
+
t.description = e.name;
|
|
6717
|
+
let r = await e.install(n);
|
|
6718
|
+
if (oe(r)) n = r;
|
|
6719
|
+
else return [r, e];
|
|
6720
6720
|
}
|
|
6721
6721
|
}), o = await n.createLoading("安装插件", async (t) => {
|
|
6722
6722
|
t.retryable = !0;
|