@forsakringskassan/vite-lib-config 4.3.5 → 4.3.7
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/api-extractor.js +180 -173
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/vite.config.cjs +180 -173
- package/dist/vite.config.mjs +182 -175
- package/package.json +2 -2
package/dist/vite.config.mjs
CHANGED
|
@@ -4560,7 +4560,7 @@ Object.assign(vuePluginCjs, {
|
|
|
4560
4560
|
var import_deepmerge = __toESM(require_cjs());
|
|
4561
4561
|
|
|
4562
4562
|
// node_modules/glob/dist/esm/index.min.js
|
|
4563
|
-
import { fileURLToPath as
|
|
4563
|
+
import { fileURLToPath as Wi } from "node:url";
|
|
4564
4564
|
import { posix as mi, win32 as re } from "node:path";
|
|
4565
4565
|
import { fileURLToPath as gi } from "node:url";
|
|
4566
4566
|
import { lstatSync as wi, readdir as yi, readdirSync as bi, readlinkSync as Si, realpathSync as Ei } from "fs";
|
|
@@ -4578,16 +4578,16 @@ var ce = (n7, t) => {
|
|
|
4578
4578
|
return e ? e[0] : null;
|
|
4579
4579
|
};
|
|
4580
4580
|
var ss = (n7, t, e) => {
|
|
4581
|
-
let s, i, r, o, h, a = e.indexOf(n7), l = e.indexOf(t, a + 1),
|
|
4581
|
+
let s, i, r, o, h, a = e.indexOf(n7), l = e.indexOf(t, a + 1), u = a;
|
|
4582
4582
|
if (a >= 0 && l > 0) {
|
|
4583
4583
|
if (n7 === t) return [a, l];
|
|
4584
|
-
for (s = [], r = e.length;
|
|
4585
|
-
if (
|
|
4584
|
+
for (s = [], r = e.length; u >= 0 && !h; ) {
|
|
4585
|
+
if (u === a) s.push(u), a = e.indexOf(n7, u + 1);
|
|
4586
4586
|
else if (s.length === 1) {
|
|
4587
4587
|
let c = s.pop();
|
|
4588
4588
|
c !== void 0 && (h = [c, l]);
|
|
4589
|
-
} else i = s.pop(), i !== void 0 && i < r && (r = i, o = l), l = e.indexOf(t,
|
|
4590
|
-
|
|
4589
|
+
} else i = s.pop(), i !== void 0 && i < r && (r = i, o = l), l = e.indexOf(t, u + 1);
|
|
4590
|
+
u = a < l && a >= 0 ? a : l;
|
|
4591
4591
|
}
|
|
4592
4592
|
s.length && o !== void 0 && (h = [r, o]);
|
|
4593
4593
|
}
|
|
@@ -4653,18 +4653,18 @@ function ht(n7, t, e) {
|
|
|
4653
4653
|
s.push(a);
|
|
4654
4654
|
}
|
|
4655
4655
|
else {
|
|
4656
|
-
let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = h || a,
|
|
4657
|
-
if (!l && !
|
|
4656
|
+
let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = h || a, u = i.body.indexOf(",") >= 0;
|
|
4657
|
+
if (!l && !u) return i.post.match(/,(?!,).*\}/) ? (n7 = i.pre + "{" + i.body + qt + i.post, ht(n7, t, true)) : [n7];
|
|
4658
4658
|
let c;
|
|
4659
4659
|
if (l) c = i.body.split(/\.\./);
|
|
4660
|
-
else if (c = me(i.body), c.length === 1 && c[0] !== void 0 && (c = ht(c[0], t, false).map(gs), c.length === 1)) return o.map((
|
|
4660
|
+
else if (c = me(i.body), c.length === 1 && c[0] !== void 0 && (c = ht(c[0], t, false).map(gs), c.length === 1)) return o.map((f) => i.pre + c[0] + f);
|
|
4661
4661
|
let d;
|
|
4662
4662
|
if (l && c[0] !== void 0 && c[1] !== void 0) {
|
|
4663
|
-
let
|
|
4664
|
-
m <
|
|
4663
|
+
let f = Ht(c[0]), m = Ht(c[1]), p = Math.max(c[0].length, c[1].length), w = c.length === 3 && c[2] !== void 0 ? Math.abs(Ht(c[2])) : 1, g = ys;
|
|
4664
|
+
m < f && (w *= -1, g = bs);
|
|
4665
4665
|
let E = c.some(ws);
|
|
4666
4666
|
d = [];
|
|
4667
|
-
for (let y =
|
|
4667
|
+
for (let y = f; g(y, m); y += w) {
|
|
4668
4668
|
let b;
|
|
4669
4669
|
if (a) b = String.fromCharCode(y), b === "\\" && (b = "");
|
|
4670
4670
|
else if (b = String(y), E) {
|
|
@@ -4678,10 +4678,10 @@ function ht(n7, t, e) {
|
|
|
4678
4678
|
}
|
|
4679
4679
|
} else {
|
|
4680
4680
|
d = [];
|
|
4681
|
-
for (let
|
|
4681
|
+
for (let f = 0; f < c.length; f++) d.push.apply(d, ht(c[f], t, false));
|
|
4682
4682
|
}
|
|
4683
|
-
for (let
|
|
4684
|
-
let p = r + d[
|
|
4683
|
+
for (let f = 0; f < d.length; f++) for (let m = 0; m < o.length && s.length < t; m++) {
|
|
4684
|
+
let p = r + d[f] + o[m];
|
|
4685
4685
|
(!e || l || p) && s.push(p);
|
|
4686
4686
|
}
|
|
4687
4687
|
}
|
|
@@ -4698,7 +4698,7 @@ var we = (n7) => n7.join("");
|
|
|
4698
4698
|
var ye = (n7, t) => {
|
|
4699
4699
|
let e = t;
|
|
4700
4700
|
if (n7.charAt(e) !== "[") throw new Error("not in a brace expression");
|
|
4701
|
-
let s = [], i = [], r = e + 1, o = false, h = false, a = false, l = false,
|
|
4701
|
+
let s = [], i = [], r = e + 1, o = false, h = false, a = false, l = false, u = e, c = "";
|
|
4702
4702
|
t: for (; r < n7.length; ) {
|
|
4703
4703
|
let p = n7.charAt(r);
|
|
4704
4704
|
if ((p === "!" || p === "^") && r === e + 1) {
|
|
@@ -4706,7 +4706,7 @@ var ye = (n7, t) => {
|
|
|
4706
4706
|
continue;
|
|
4707
4707
|
}
|
|
4708
4708
|
if (p === "]" && o && !a) {
|
|
4709
|
-
|
|
4709
|
+
u = r + 1;
|
|
4710
4710
|
break;
|
|
4711
4711
|
}
|
|
4712
4712
|
if (o = true, p === "\\" && !a) {
|
|
@@ -4734,14 +4734,14 @@ var ye = (n7, t) => {
|
|
|
4734
4734
|
}
|
|
4735
4735
|
s.push(lt(p)), r++;
|
|
4736
4736
|
}
|
|
4737
|
-
if (
|
|
4737
|
+
if (u < r) return ["", false, 0, false];
|
|
4738
4738
|
if (!s.length && !i.length) return ["$.", false, n7.length - e, true];
|
|
4739
4739
|
if (i.length === 0 && s.length === 1 && /^\\?.$/.test(s[0]) && !l) {
|
|
4740
4740
|
let p = s[0].length === 2 ? s[0].slice(-1) : s[0];
|
|
4741
|
-
return [Es(p), false,
|
|
4741
|
+
return [Es(p), false, u - e, false];
|
|
4742
4742
|
}
|
|
4743
|
-
let d = "[" + (l ? "^" : "") + we(s) + "]",
|
|
4744
|
-
return [s.length && i.length ? "(" + d + "|" +
|
|
4743
|
+
let d = "[" + (l ? "^" : "") + we(s) + "]", f = "[" + (l ? "" : "^") + we(i) + "]";
|
|
4744
|
+
return [s.length && i.length ? "(" + d + "|" + f + ")" : s.length ? d : f, h, u - e, true];
|
|
4745
4745
|
};
|
|
4746
4746
|
var W = (n7, { windowsPathsNoEscape: t = false, magicalBraces: e = true } = {}) => e ? t ? n7.replace(/\[([^\/\\])\]/g, "$1") : n7.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1") : t ? n7.replace(/\[([^\/\\{}])\]/g, "$1") : n7.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
|
|
4747
4747
|
var xs = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
@@ -4836,56 +4836,56 @@ var Q = class n {
|
|
|
4836
4836
|
static #i(t, e, s, i) {
|
|
4837
4837
|
let r = false, o = false, h = -1, a = false;
|
|
4838
4838
|
if (e.type === null) {
|
|
4839
|
-
let
|
|
4840
|
-
for (;
|
|
4841
|
-
let p = t.charAt(
|
|
4839
|
+
let f = s, m = "";
|
|
4840
|
+
for (; f < t.length; ) {
|
|
4841
|
+
let p = t.charAt(f++);
|
|
4842
4842
|
if (r || p === "\\") {
|
|
4843
4843
|
r = !r, m += p;
|
|
4844
4844
|
continue;
|
|
4845
4845
|
}
|
|
4846
4846
|
if (o) {
|
|
4847
|
-
|
|
4847
|
+
f === h + 1 ? (p === "^" || p === "!") && (a = true) : p === "]" && !(f === h + 2 && a) && (o = false), m += p;
|
|
4848
4848
|
continue;
|
|
4849
4849
|
} else if (p === "[") {
|
|
4850
|
-
o = true, h =
|
|
4850
|
+
o = true, h = f, a = false, m += p;
|
|
4851
4851
|
continue;
|
|
4852
4852
|
}
|
|
4853
|
-
if (!i.noext && be(p) && t.charAt(
|
|
4853
|
+
if (!i.noext && be(p) && t.charAt(f) === "(") {
|
|
4854
4854
|
e.push(m), m = "";
|
|
4855
4855
|
let w = new n(p, e);
|
|
4856
|
-
|
|
4856
|
+
f = n.#i(t, w, f, i), e.push(w);
|
|
4857
4857
|
continue;
|
|
4858
4858
|
}
|
|
4859
4859
|
m += p;
|
|
4860
4860
|
}
|
|
4861
|
-
return e.push(m),
|
|
4861
|
+
return e.push(m), f;
|
|
4862
4862
|
}
|
|
4863
|
-
let l = s + 1,
|
|
4863
|
+
let l = s + 1, u = new n(null, e), c = [], d = "";
|
|
4864
4864
|
for (; l < t.length; ) {
|
|
4865
|
-
let
|
|
4866
|
-
if (r ||
|
|
4867
|
-
r = !r, d +=
|
|
4865
|
+
let f = t.charAt(l++);
|
|
4866
|
+
if (r || f === "\\") {
|
|
4867
|
+
r = !r, d += f;
|
|
4868
4868
|
continue;
|
|
4869
4869
|
}
|
|
4870
4870
|
if (o) {
|
|
4871
|
-
l === h + 1 ? (
|
|
4871
|
+
l === h + 1 ? (f === "^" || f === "!") && (a = true) : f === "]" && !(l === h + 2 && a) && (o = false), d += f;
|
|
4872
4872
|
continue;
|
|
4873
|
-
} else if (
|
|
4874
|
-
o = true, h = l, a = false, d +=
|
|
4873
|
+
} else if (f === "[") {
|
|
4874
|
+
o = true, h = l, a = false, d += f;
|
|
4875
4875
|
continue;
|
|
4876
4876
|
}
|
|
4877
|
-
if (be(
|
|
4878
|
-
|
|
4879
|
-
let m = new n(
|
|
4880
|
-
|
|
4877
|
+
if (be(f) && t.charAt(l) === "(") {
|
|
4878
|
+
u.push(d), d = "";
|
|
4879
|
+
let m = new n(f, u);
|
|
4880
|
+
u.push(m), l = n.#i(t, m, l, i);
|
|
4881
4881
|
continue;
|
|
4882
4882
|
}
|
|
4883
|
-
if (
|
|
4884
|
-
|
|
4883
|
+
if (f === "|") {
|
|
4884
|
+
u.push(d), d = "", c.push(u), u = new n(null, e);
|
|
4885
4885
|
continue;
|
|
4886
4886
|
}
|
|
4887
|
-
if (
|
|
4888
|
-
d +=
|
|
4887
|
+
if (f === ")") return d === "" && e.#r.length === 0 && (e.#f = true), u.push(d), d = "", e.push(...c, u), l;
|
|
4888
|
+
d += f;
|
|
4889
4889
|
}
|
|
4890
4890
|
return e.type = null, e.#s = void 0, e.#r = [t.substring(s - 1)], l;
|
|
4891
4891
|
}
|
|
@@ -4906,16 +4906,16 @@ var Q = class n {
|
|
|
4906
4906
|
toRegExpSource(t) {
|
|
4907
4907
|
let e = t ?? !!this.#h.dot;
|
|
4908
4908
|
if (this.#t === this && this.#a(), !this.type) {
|
|
4909
|
-
let a = this.isStart() && this.isEnd() && !this.#r.some((
|
|
4910
|
-
let [m, p, w, g] = typeof
|
|
4909
|
+
let a = this.isStart() && this.isEnd() && !this.#r.some((f) => typeof f != "string"), l = this.#r.map((f) => {
|
|
4910
|
+
let [m, p, w, g] = typeof f == "string" ? n.#E(f, this.#s, a) : f.toRegExpSource(t);
|
|
4911
4911
|
return this.#s = this.#s || w, this.#n = this.#n || g, m;
|
|
4912
|
-
}).join(""),
|
|
4912
|
+
}).join(""), u = "";
|
|
4913
4913
|
if (this.isStart() && typeof this.#r[0] == "string" && !(this.#r.length === 1 && Ts.has(this.#r[0]))) {
|
|
4914
4914
|
let m = Cs, p = e && m.has(l.charAt(0)) || l.startsWith("\\.") && m.has(l.charAt(2)) || l.startsWith("\\.\\.") && m.has(l.charAt(4)), w = !e && !t && m.has(l.charAt(0));
|
|
4915
|
-
|
|
4915
|
+
u = p ? vs : w ? Ct : "";
|
|
4916
4916
|
}
|
|
4917
4917
|
let c = "";
|
|
4918
|
-
return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [
|
|
4918
|
+
return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [u + l + c, W(l), this.#s = !!this.#s, this.#n];
|
|
4919
4919
|
}
|
|
4920
4920
|
let s = this.type === "*" || this.type === "+", i = this.type === "!" ? "(?:(?!(?:" : "(?:", r = this.#d(e);
|
|
4921
4921
|
if (this.isStart() && this.isEnd() && !r && this.type !== "!") {
|
|
@@ -4940,33 +4940,34 @@ var Q = class n {
|
|
|
4940
4940
|
}).filter((e) => !(this.isStart() && this.isEnd()) || !!e).join("|");
|
|
4941
4941
|
}
|
|
4942
4942
|
static #E(t, e, s = false) {
|
|
4943
|
-
let i = false, r = "", o = false;
|
|
4944
|
-
for (let
|
|
4945
|
-
let
|
|
4943
|
+
let i = false, r = "", o = false, h = false;
|
|
4944
|
+
for (let a = 0; a < t.length; a++) {
|
|
4945
|
+
let l = t.charAt(a);
|
|
4946
4946
|
if (i) {
|
|
4947
|
-
i = false, r += (As.has(
|
|
4947
|
+
i = false, r += (As.has(l) ? "\\" : "") + l;
|
|
4948
4948
|
continue;
|
|
4949
4949
|
}
|
|
4950
|
-
if (
|
|
4951
|
-
h
|
|
4950
|
+
if (l === "*") {
|
|
4951
|
+
if (h) continue;
|
|
4952
|
+
h = true, r += s && /^[*]+$/.test(t) ? Ee : Se, e = true;
|
|
4953
|
+
continue;
|
|
4954
|
+
} else h = false;
|
|
4955
|
+
if (l === "\\") {
|
|
4956
|
+
a === t.length - 1 ? r += "\\\\" : i = true;
|
|
4952
4957
|
continue;
|
|
4953
4958
|
}
|
|
4954
|
-
if (
|
|
4955
|
-
let [
|
|
4956
|
-
if (
|
|
4957
|
-
r +=
|
|
4959
|
+
if (l === "[") {
|
|
4960
|
+
let [u, c, d, f] = ye(t, a);
|
|
4961
|
+
if (d) {
|
|
4962
|
+
r += u, o = o || c, a += d - 1, e = e || f;
|
|
4958
4963
|
continue;
|
|
4959
4964
|
}
|
|
4960
4965
|
}
|
|
4961
|
-
if (
|
|
4962
|
-
r += s && t === "*" ? Ee : Se, e = true;
|
|
4963
|
-
continue;
|
|
4964
|
-
}
|
|
4965
|
-
if (a === "?") {
|
|
4966
|
+
if (l === "?") {
|
|
4966
4967
|
r += Kt, e = true;
|
|
4967
4968
|
continue;
|
|
4968
4969
|
}
|
|
4969
|
-
r += ks(
|
|
4970
|
+
r += ks(l);
|
|
4970
4971
|
}
|
|
4971
4972
|
return [r, W(t), !!e, o];
|
|
4972
4973
|
}
|
|
@@ -5101,8 +5102,8 @@ var D = class {
|
|
|
5101
5102
|
let i = this.globParts.map((r, o, h) => {
|
|
5102
5103
|
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
5103
5104
|
let a = r[0] === "" && r[1] === "" && (r[2] === "?" || !ve.test(r[2])) && !ve.test(r[3]), l = /^[a-z]:/i.test(r[0]);
|
|
5104
|
-
if (a) return [...r.slice(0, 4), ...r.slice(4).map((
|
|
5105
|
-
if (l) return [r[0], ...r.slice(1).map((
|
|
5105
|
+
if (a) return [...r.slice(0, 4), ...r.slice(4).map((u) => this.parse(u))];
|
|
5106
|
+
if (l) return [r[0], ...r.slice(1).map((u) => this.parse(u))];
|
|
5106
5107
|
}
|
|
5107
5108
|
return r.map((a) => this.parse(a));
|
|
5108
5109
|
});
|
|
@@ -5166,8 +5167,8 @@ var D = class {
|
|
|
5166
5167
|
let h = s[i + 1], a = s[i + 2], l = s[i + 3];
|
|
5167
5168
|
if (h !== ".." || !a || a === "." || a === ".." || !l || l === "." || l === "..") continue;
|
|
5168
5169
|
e = true, s.splice(i, 1);
|
|
5169
|
-
let
|
|
5170
|
-
|
|
5170
|
+
let u = s.slice(0);
|
|
5171
|
+
u[i] = "**", t.push(u), i--;
|
|
5171
5172
|
}
|
|
5172
5173
|
if (!this.preserveMultipleSlashes) {
|
|
5173
5174
|
for (let o = 1; o < s.length - 1; o++) {
|
|
@@ -5232,30 +5233,30 @@ var D = class {
|
|
|
5232
5233
|
r >= 2 && (t = this.levelTwoFileOptimize(t)), this.debug("matchOne", this, { file: t, pattern: e }), this.debug("matchOne", t.length, e.length);
|
|
5233
5234
|
for (var o = 0, h = 0, a = t.length, l = e.length; o < a && h < l; o++, h++) {
|
|
5234
5235
|
this.debug("matchOne loop");
|
|
5235
|
-
var
|
|
5236
|
-
if (this.debug(e,
|
|
5237
|
-
if (
|
|
5238
|
-
this.debug("GLOBSTAR", [e,
|
|
5239
|
-
var d = o,
|
|
5240
|
-
if (
|
|
5236
|
+
var u = e[h], c = t[o];
|
|
5237
|
+
if (this.debug(e, u, c), u === false) return false;
|
|
5238
|
+
if (u === A) {
|
|
5239
|
+
this.debug("GLOBSTAR", [e, u, c]);
|
|
5240
|
+
var d = o, f = h + 1;
|
|
5241
|
+
if (f === l) {
|
|
5241
5242
|
for (this.debug("** at the end"); o < a; o++) if (t[o] === "." || t[o] === ".." || !i.dot && t[o].charAt(0) === ".") return false;
|
|
5242
5243
|
return true;
|
|
5243
5244
|
}
|
|
5244
5245
|
for (; d < a; ) {
|
|
5245
5246
|
var m = t[d];
|
|
5246
5247
|
if (this.debug(`
|
|
5247
|
-
globstar while`, t, d, e,
|
|
5248
|
+
globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) return this.debug("globstar found match!", d, a, m), true;
|
|
5248
5249
|
if (m === "." || m === ".." || !i.dot && m.charAt(0) === ".") {
|
|
5249
|
-
this.debug("dot detected!", t, d, e,
|
|
5250
|
+
this.debug("dot detected!", t, d, e, f);
|
|
5250
5251
|
break;
|
|
5251
5252
|
}
|
|
5252
5253
|
this.debug("globstar swallow a segment, and continue"), d++;
|
|
5253
5254
|
}
|
|
5254
5255
|
return !!(s && (this.debug(`
|
|
5255
|
-
>>> no match, partial?`, t, d, e,
|
|
5256
|
+
>>> no match, partial?`, t, d, e, f), d === a));
|
|
5256
5257
|
}
|
|
5257
5258
|
let p;
|
|
5258
|
-
if (typeof
|
|
5259
|
+
if (typeof u == "string" ? (p = c === u, this.debug("string match", u, c, p)) : (p = u.test(c), this.debug("pattern match", u, c, p)), !p) return false;
|
|
5259
5260
|
}
|
|
5260
5261
|
if (o === a && h === l) return true;
|
|
5261
5262
|
if (o === a) return s;
|
|
@@ -5285,16 +5286,16 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
5285
5286
|
return typeof c == "string" ? ei(c) : c === A ? A : c._src;
|
|
5286
5287
|
});
|
|
5287
5288
|
l.forEach((c, d) => {
|
|
5288
|
-
let
|
|
5289
|
-
c !== A || m === A || (m === void 0 ?
|
|
5289
|
+
let f = l[d + 1], m = l[d - 1];
|
|
5290
|
+
c !== A || m === A || (m === void 0 ? f !== void 0 && f !== A ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + f : l[d] = s : f === void 0 ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : f !== A && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + f, l[d + 1] = A));
|
|
5290
5291
|
});
|
|
5291
|
-
let
|
|
5292
|
-
if (this.partial &&
|
|
5292
|
+
let u = l.filter((c) => c !== A);
|
|
5293
|
+
if (this.partial && u.length >= 1) {
|
|
5293
5294
|
let c = [];
|
|
5294
|
-
for (let d = 1; d <=
|
|
5295
|
+
for (let d = 1; d <= u.length; d++) c.push(u.slice(0, d).join("/"));
|
|
5295
5296
|
return "(?:" + c.join("|") + ")";
|
|
5296
5297
|
}
|
|
5297
|
-
return
|
|
5298
|
+
return u.join("/");
|
|
5298
5299
|
}).join("|"), [o, h] = t.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
5299
5300
|
r = "^" + o + r + h + "$", this.partial && (r = "^(?:\\/|" + o + r.slice(1, -1) + h + ")$"), this.negate && (r = "^(?!" + r + ").+$");
|
|
5300
5301
|
try {
|
|
@@ -5478,7 +5479,7 @@ var ft = class Me {
|
|
|
5478
5479
|
return this.#o;
|
|
5479
5480
|
}
|
|
5480
5481
|
constructor(t) {
|
|
5481
|
-
let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert:
|
|
5482
|
+
let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert: u, disposeAfter: c, noDisposeOnSet: d, noUpdateTTL: f, maxSize: m = 0, maxEntrySize: p = 0, sizeCalculation: w, fetchMethod: g, memoMethod: S, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z, ignoreFetchAbort: $, perf: J } = t;
|
|
5482
5483
|
if (J !== void 0 && typeof J?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
5483
5484
|
if (this.#c = J ?? si, e !== 0 && !q(e)) throw new TypeError("max option must be a nonnegative integer");
|
|
5484
5485
|
let Z = e ? De(e) : Array;
|
|
@@ -5489,7 +5490,7 @@ var ft = class Me {
|
|
|
5489
5490
|
}
|
|
5490
5491
|
if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
5491
5492
|
if (this.#w = S, g !== void 0 && typeof g != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
5492
|
-
if (this.#S = g, this.#A = !!g, this.#f = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof
|
|
5493
|
+
if (this.#S = g, this.#A = !!g, this.#f = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof u == "function" && (this.#r = u), typeof c == "function" ? (this.#o = c, this.#m = []) : (this.#o = void 0, this.#m = void 0), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d, this.noUpdateTTL = !!f, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
|
|
5493
5494
|
if (this.#s !== 0 && !q(this.#s)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
5494
5495
|
if (!q(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
5495
5496
|
this.#G();
|
|
@@ -5525,8 +5526,8 @@ var ft = class Me {
|
|
|
5525
5526
|
let a = t[h], l = e[h];
|
|
5526
5527
|
if (!a || !l) return;
|
|
5527
5528
|
o.ttl = a, o.start = l, o.now = i || r();
|
|
5528
|
-
let
|
|
5529
|
-
o.remainingTTL = a -
|
|
5529
|
+
let u = o.now - l;
|
|
5530
|
+
o.remainingTTL = a - u;
|
|
5530
5531
|
}
|
|
5531
5532
|
};
|
|
5532
5533
|
let i = 0, r = () => {
|
|
@@ -5543,8 +5544,8 @@ var ft = class Me {
|
|
|
5543
5544
|
if (h === void 0) return 0;
|
|
5544
5545
|
let a = t[h], l = e[h];
|
|
5545
5546
|
if (!a || !l) return 1 / 0;
|
|
5546
|
-
let
|
|
5547
|
-
return a -
|
|
5547
|
+
let u = (i || r()) - l;
|
|
5548
|
+
return a - u;
|
|
5548
5549
|
}, this.#v = (o) => {
|
|
5549
5550
|
let h = e[o], a = t[o];
|
|
5550
5551
|
return !!a && !!h && (i || r()) - h > a;
|
|
@@ -5686,30 +5687,30 @@ var ft = class Me {
|
|
|
5686
5687
|
}
|
|
5687
5688
|
set(t, e, s = {}) {
|
|
5688
5689
|
if (e === void 0) return this.delete(t), this;
|
|
5689
|
-
let { ttl: i = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s,
|
|
5690
|
-
if (this.maxEntrySize &&
|
|
5690
|
+
let { ttl: i = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, u = this.#I(t, e, s.size || 0, h);
|
|
5691
|
+
if (this.maxEntrySize && u > this.maxEntrySize) return a && (a.set = "miss", a.maxEntrySizeExceeded = true), this.#O(t, "set"), this;
|
|
5691
5692
|
let c = this.#h === 0 ? void 0 : this.#f.get(t);
|
|
5692
|
-
if (c === void 0) c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(false) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c,
|
|
5693
|
+
if (c === void 0) c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(false) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c, u, a), a && (a.set = "add"), l = false, this.#_ && this.#r?.(e, t, "add");
|
|
5693
5694
|
else {
|
|
5694
5695
|
this.#W(c);
|
|
5695
5696
|
let d = this.#i[c];
|
|
5696
5697
|
if (e !== d) {
|
|
5697
5698
|
if (this.#A && this.#l(d)) {
|
|
5698
5699
|
d.__abortController.abort(new Error("replaced"));
|
|
5699
|
-
let { __staleWhileFetching:
|
|
5700
|
-
|
|
5700
|
+
let { __staleWhileFetching: f } = d;
|
|
5701
|
+
f !== void 0 && !o && (this.#x && this.#n?.(f, t, "set"), this.#e && this.#m?.push([f, t, "set"]));
|
|
5701
5702
|
} else o || (this.#x && this.#n?.(d, t, "set"), this.#e && this.#m?.push([d, t, "set"]));
|
|
5702
|
-
if (this.#P(c), this.#L(c,
|
|
5703
|
+
if (this.#P(c), this.#L(c, u, a), this.#i[c] = e, a) {
|
|
5703
5704
|
a.set = "replace";
|
|
5704
|
-
let
|
|
5705
|
-
|
|
5705
|
+
let f = d && this.#l(d) ? d.__staleWhileFetching : d;
|
|
5706
|
+
f !== void 0 && (a.oldValue = f);
|
|
5706
5707
|
}
|
|
5707
5708
|
} else a && (a.set = "update");
|
|
5708
5709
|
this.#_ && this.onInsert?.(e, t, e === d ? "update" : "replace");
|
|
5709
5710
|
}
|
|
5710
5711
|
if (i !== 0 && !this.#g && this.#M(), this.#g && (l || this.#j(c, i, r), a && this.#N(a, c)), !o && this.#e && this.#m) {
|
|
5711
|
-
let d = this.#m,
|
|
5712
|
-
for (;
|
|
5712
|
+
let d = this.#m, f;
|
|
5713
|
+
for (; f = d?.shift(); ) this.#o?.(...f);
|
|
5713
5714
|
}
|
|
5714
5715
|
return this;
|
|
5715
5716
|
}
|
|
@@ -5756,11 +5757,11 @@ var ft = class Me {
|
|
|
5756
5757
|
let a = { signal: o.signal, options: s, context: i }, l = (p, w = false) => {
|
|
5757
5758
|
let { aborted: g } = o.signal, S = s.ignoreFetchAbort && p !== void 0, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
|
|
5758
5759
|
if (s.status && (g && !w ? (s.status.fetchAborted = true, s.status.fetchError = o.signal.reason, S && (s.status.fetchAbortIgnored = true)) : s.status.fetchResolved = true), g && !S && !w) return c(o.signal.reason, E);
|
|
5759
|
-
let y =
|
|
5760
|
-
return (b ===
|
|
5761
|
-
},
|
|
5762
|
-
let { aborted: g } = o.signal, S = g && s.allowStaleOnFetchAbort, E = S || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, b =
|
|
5763
|
-
if (this.#i[e] ===
|
|
5760
|
+
let y = f, b = this.#i[e];
|
|
5761
|
+
return (b === f || S && w && b === void 0) && (p === void 0 ? y.__staleWhileFetching !== void 0 ? this.#i[e] = y.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.set(t, p, a.options))), p;
|
|
5762
|
+
}, u = (p) => (s.status && (s.status.fetchRejected = true, s.status.fetchError = p), c(p, false)), c = (p, w) => {
|
|
5763
|
+
let { aborted: g } = o.signal, S = g && s.allowStaleOnFetchAbort, E = S || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, b = f;
|
|
5764
|
+
if (this.#i[e] === f && (!y || !w && b.__staleWhileFetching === void 0 ? this.#O(t, "fetch") : S || (this.#i[e] = b.__staleWhileFetching)), E) return s.status && b.__staleWhileFetching !== void 0 && (s.status.returnedStale = true), b.__staleWhileFetching;
|
|
5764
5765
|
if (b.__returned === b) throw p;
|
|
5765
5766
|
}, d = (p, w) => {
|
|
5766
5767
|
let g = this.#S?.(t, r, a);
|
|
@@ -5769,7 +5770,7 @@ var ft = class Me {
|
|
|
5769
5770
|
});
|
|
5770
5771
|
};
|
|
5771
5772
|
s.status && (s.status.fetchDispatched = true);
|
|
5772
|
-
let
|
|
5773
|
+
let f = new Promise(d).then(l, u), m = Object.assign(f, { __abortController: o, __staleWhileFetching: r, __returned: void 0 });
|
|
5773
5774
|
return e === void 0 ? (this.set(t, m, { ...a.options, status: void 0 }), e = this.#f.get(t)) : this.#i[e] = m, m;
|
|
5774
5775
|
}
|
|
5775
5776
|
#l(t) {
|
|
@@ -5778,9 +5779,9 @@ var ft = class Me {
|
|
|
5778
5779
|
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof At;
|
|
5779
5780
|
}
|
|
5780
5781
|
async fetch(t, e = {}) {
|
|
5781
|
-
let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL:
|
|
5782
|
+
let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: u = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort, context: p, forceRefresh: w = false, status: g, signal: S } = e;
|
|
5782
5783
|
if (!this.#A) return g && (g.fetch = "get"), this.get(t, { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, status: g });
|
|
5783
|
-
let E = { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, ttl: o, noDisposeOnSet: h, size: a, sizeCalculation: l, noUpdateTTL:
|
|
5784
|
+
let E = { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, ttl: o, noDisposeOnSet: h, size: a, sizeCalculation: l, noUpdateTTL: u, noDeleteOnFetchRejection: c, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: m, ignoreFetchAbort: f, status: g, signal: S }, y = this.#f.get(t);
|
|
5784
5785
|
if (y === void 0) {
|
|
5785
5786
|
g && (g.fetch = "miss");
|
|
5786
5787
|
let b = this.#U(t, y, E, p);
|
|
@@ -5936,7 +5937,7 @@ var te = class extends Mt {
|
|
|
5936
5937
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
5937
5938
|
}
|
|
5938
5939
|
constructor(t, e, s) {
|
|
5939
|
-
super(t, e, s), this.proxyErrors = (i) =>
|
|
5940
|
+
super(t, e, s), this.proxyErrors = (i) => this.dest.emit("error", i), t.on("error", this.proxyErrors);
|
|
5940
5941
|
}
|
|
5941
5942
|
};
|
|
5942
5943
|
var di = (n7) => !!n7.objectMode;
|
|
@@ -6177,17 +6178,18 @@ var V = class extends ee {
|
|
|
6177
6178
|
if (i !== null) return Promise.resolve({ done: false, value: i });
|
|
6178
6179
|
if (this[G]) return e();
|
|
6179
6180
|
let r, o, h = (c) => {
|
|
6180
|
-
this.off("data", a), this.off("end", l), this.off(x,
|
|
6181
|
+
this.off("data", a), this.off("end", l), this.off(x, u), e(), o(c);
|
|
6181
6182
|
}, a = (c) => {
|
|
6182
|
-
this.off("error", h), this.off("end", l), this.off(x,
|
|
6183
|
+
this.off("error", h), this.off("end", l), this.off(x, u), this.pause(), r({ value: c, done: !!this[G] });
|
|
6183
6184
|
}, l = () => {
|
|
6184
|
-
this.off("error", h), this.off("data", a), this.off(x,
|
|
6185
|
-
},
|
|
6185
|
+
this.off("error", h), this.off("data", a), this.off(x, u), e(), r({ done: true, value: void 0 });
|
|
6186
|
+
}, u = () => h(new Error("stream destroyed"));
|
|
6186
6187
|
return new Promise((c, d) => {
|
|
6187
|
-
o = d, r = c, this.once(x,
|
|
6188
|
+
o = d, r = c, this.once(x, u), this.once("error", h), this.once("end", l), this.once("data", a);
|
|
6188
6189
|
});
|
|
6189
6190
|
}, throw: e, return: e, [Symbol.asyncIterator]() {
|
|
6190
6191
|
return this;
|
|
6192
|
+
}, [Symbol.asyncDispose]: async () => {
|
|
6191
6193
|
} };
|
|
6192
6194
|
}
|
|
6193
6195
|
[Symbol.iterator]() {
|
|
@@ -6199,6 +6201,7 @@ var V = class extends ee {
|
|
|
6199
6201
|
};
|
|
6200
6202
|
return this.once("end", e), this.once(Xt, e), this.once(x, e), { next: s, throw: e, return: e, [Symbol.iterator]() {
|
|
6201
6203
|
return this;
|
|
6204
|
+
}, [Symbol.dispose]: () => {
|
|
6202
6205
|
} };
|
|
6203
6206
|
}
|
|
6204
6207
|
destroy(t) {
|
|
@@ -6569,8 +6572,8 @@ var R = class {
|
|
|
6569
6572
|
}
|
|
6570
6573
|
}
|
|
6571
6574
|
#$(t) {
|
|
6572
|
-
let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev:
|
|
6573
|
-
this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s =
|
|
6575
|
+
let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
|
|
6576
|
+
this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
|
|
6574
6577
|
let y = ie(t);
|
|
6575
6578
|
this.#e = this.#e & gt | y | je, y !== L && y !== U && y !== X && (this.#e |= yt);
|
|
6576
6579
|
}
|
|
@@ -6726,10 +6729,10 @@ var It = class {
|
|
|
6726
6729
|
let a = h.substring(this.rootPath.length).split(s);
|
|
6727
6730
|
if (a.length === 1 && !a[0] && a.pop(), i === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
|
|
6728
6731
|
this.nocase = i, this.root = this.newRoot(this.#r), this.roots[this.rootPath] = this.root;
|
|
6729
|
-
let l = this.root,
|
|
6732
|
+
let l = this.root, u = a.length - 1, c = e.sep, d = this.rootPath, f = false;
|
|
6730
6733
|
for (let m of a) {
|
|
6731
|
-
let p =
|
|
6732
|
-
l = l.child(m, { relative: new Array(p).fill("..").join(c), relativePosix: new Array(p).fill("..").join("/"), fullpath: d += (
|
|
6734
|
+
let p = u--;
|
|
6735
|
+
l = l.child(m, { relative: new Array(p).fill("..").join(c), relativePosix: new Array(p).fill("..").join("/"), fullpath: d += (f ? "" : c) + m }), f = true;
|
|
6733
6736
|
}
|
|
6734
6737
|
this.cwd = l;
|
|
6735
6738
|
}
|
|
@@ -6817,8 +6820,8 @@ var It = class {
|
|
|
6817
6820
|
let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = [];
|
|
6818
6821
|
(!r || r(t)) && h.push(s ? t : t.fullpath());
|
|
6819
6822
|
let a = /* @__PURE__ */ new Set(), l = (c, d) => {
|
|
6820
|
-
a.add(c), c.readdirCB((
|
|
6821
|
-
if (
|
|
6823
|
+
a.add(c), c.readdirCB((f, m) => {
|
|
6824
|
+
if (f) return d(f);
|
|
6822
6825
|
let p = m.length;
|
|
6823
6826
|
if (!p) return d();
|
|
6824
6827
|
let w = () => {
|
|
@@ -6826,10 +6829,10 @@ var It = class {
|
|
|
6826
6829
|
};
|
|
6827
6830
|
for (let g of m) (!r || r(g)) && h.push(s ? g : g.fullpath()), i && g.isSymbolicLink() ? g.realpath().then((S) => S?.isUnknown() ? S.lstat() : S).then((S) => S?.shouldWalk(a, o) ? l(S, w) : w()) : g.shouldWalk(a, o) ? l(g, w) : w();
|
|
6828
6831
|
}, true);
|
|
6829
|
-
},
|
|
6832
|
+
}, u = t;
|
|
6830
6833
|
return new Promise((c, d) => {
|
|
6831
|
-
l(
|
|
6832
|
-
if (
|
|
6834
|
+
l(u, (f) => {
|
|
6835
|
+
if (f) return d(f);
|
|
6833
6836
|
c(h);
|
|
6834
6837
|
});
|
|
6835
6838
|
});
|
|
@@ -6840,8 +6843,8 @@ var It = class {
|
|
|
6840
6843
|
(!r || r(t)) && h.push(s ? t : t.fullpath());
|
|
6841
6844
|
let a = /* @__PURE__ */ new Set([t]);
|
|
6842
6845
|
for (let l of a) {
|
|
6843
|
-
let
|
|
6844
|
-
for (let c of
|
|
6846
|
+
let u = l.readdirSync();
|
|
6847
|
+
for (let c of u) {
|
|
6845
6848
|
(!r || r(c)) && h.push(s ? c : c.fullpath());
|
|
6846
6849
|
let d = c;
|
|
6847
6850
|
if (c.isSymbolicLink()) {
|
|
@@ -6869,11 +6872,11 @@ var It = class {
|
|
|
6869
6872
|
let h = /* @__PURE__ */ new Set([t]);
|
|
6870
6873
|
for (let a of h) {
|
|
6871
6874
|
let l = a.readdirSync();
|
|
6872
|
-
for (let
|
|
6873
|
-
(!r || r(
|
|
6874
|
-
let c =
|
|
6875
|
-
if (
|
|
6876
|
-
if (!(i && (c =
|
|
6875
|
+
for (let u of l) {
|
|
6876
|
+
(!r || r(u)) && (yield s ? u : u.fullpath());
|
|
6877
|
+
let c = u;
|
|
6878
|
+
if (u.isSymbolicLink()) {
|
|
6879
|
+
if (!(i && (c = u.realpathSync()))) continue;
|
|
6877
6880
|
c.isUnknown() && c.lstatSync();
|
|
6878
6881
|
}
|
|
6879
6882
|
c.shouldWalk(h, o) && h.add(c);
|
|
@@ -6884,15 +6887,15 @@ var It = class {
|
|
|
6884
6887
|
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
6885
6888
|
let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = new V({ objectMode: true });
|
|
6886
6889
|
(!r || r(t)) && h.write(s ? t : t.fullpath());
|
|
6887
|
-
let a = /* @__PURE__ */ new Set(), l = [t],
|
|
6890
|
+
let a = /* @__PURE__ */ new Set(), l = [t], u = 0, c = () => {
|
|
6888
6891
|
let d = false;
|
|
6889
6892
|
for (; !d; ) {
|
|
6890
|
-
let
|
|
6891
|
-
if (!
|
|
6892
|
-
|
|
6893
|
+
let f = l.shift();
|
|
6894
|
+
if (!f) {
|
|
6895
|
+
u === 0 && h.end();
|
|
6893
6896
|
return;
|
|
6894
6897
|
}
|
|
6895
|
-
|
|
6898
|
+
u++, a.add(f);
|
|
6896
6899
|
let m = (w, g, S = false) => {
|
|
6897
6900
|
if (w) return h.emit("error", w);
|
|
6898
6901
|
if (i && !S) {
|
|
@@ -6904,14 +6907,14 @@ var It = class {
|
|
|
6904
6907
|
}
|
|
6905
6908
|
}
|
|
6906
6909
|
for (let E of g) E && (!r || r(E)) && (h.write(s ? E : E.fullpath()) || (d = true));
|
|
6907
|
-
|
|
6910
|
+
u--;
|
|
6908
6911
|
for (let E of g) {
|
|
6909
6912
|
let y = E.realpathCached() || E;
|
|
6910
6913
|
y.shouldWalk(a, o) && l.push(y);
|
|
6911
6914
|
}
|
|
6912
6915
|
d && !h.flowing ? h.once("drain", c) : p || c();
|
|
6913
6916
|
}, p = true;
|
|
6914
|
-
|
|
6917
|
+
f.readdirCB(m, true), p = false;
|
|
6915
6918
|
}
|
|
6916
6919
|
};
|
|
6917
6920
|
return c(), h;
|
|
@@ -6920,18 +6923,18 @@ var It = class {
|
|
|
6920
6923
|
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
6921
6924
|
let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = new V({ objectMode: true }), a = /* @__PURE__ */ new Set();
|
|
6922
6925
|
(!r || r(t)) && h.write(s ? t : t.fullpath());
|
|
6923
|
-
let l = [t],
|
|
6926
|
+
let l = [t], u = 0, c = () => {
|
|
6924
6927
|
let d = false;
|
|
6925
6928
|
for (; !d; ) {
|
|
6926
|
-
let
|
|
6927
|
-
if (!
|
|
6928
|
-
|
|
6929
|
+
let f = l.shift();
|
|
6930
|
+
if (!f) {
|
|
6931
|
+
u === 0 && h.end();
|
|
6929
6932
|
return;
|
|
6930
6933
|
}
|
|
6931
|
-
|
|
6932
|
-
let m =
|
|
6934
|
+
u++, a.add(f);
|
|
6935
|
+
let m = f.readdirSync();
|
|
6933
6936
|
for (let p of m) (!r || r(p)) && (h.write(s ? p : p.fullpath()) || (d = true));
|
|
6934
|
-
|
|
6937
|
+
u--;
|
|
6935
6938
|
for (let p of m) {
|
|
6936
6939
|
let w = p;
|
|
6937
6940
|
if (p.isSymbolicLink()) {
|
|
@@ -6989,10 +6992,11 @@ var St = class extends rt {
|
|
|
6989
6992
|
super(t, { ...e, nocase: s });
|
|
6990
6993
|
}
|
|
6991
6994
|
};
|
|
6992
|
-
var
|
|
6995
|
+
var Cr = process.platform === "win32" ? Pt : jt;
|
|
6993
6996
|
var Xe = process.platform === "win32" ? it : process.platform === "darwin" ? St : rt;
|
|
6994
6997
|
var Di = (n7) => n7.length >= 1;
|
|
6995
6998
|
var Mi = (n7) => n7.length >= 1;
|
|
6999
|
+
var Ni = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
6996
7000
|
var nt = class n4 {
|
|
6997
7001
|
#t;
|
|
6998
7002
|
#s;
|
|
@@ -7012,18 +7016,21 @@ var nt = class n4 {
|
|
|
7012
7016
|
if (this.length = t.length, s < 0 || s >= this.length) throw new TypeError("index out of range");
|
|
7013
7017
|
if (this.#t = t, this.#s = e, this.#n = s, this.#r = i, this.#n === 0) {
|
|
7014
7018
|
if (this.isUNC()) {
|
|
7015
|
-
let [r, o, h, a, ...l] = this.#t, [
|
|
7019
|
+
let [r, o, h, a, ...l] = this.#t, [u, c, d, f, ...m] = this.#s;
|
|
7016
7020
|
l[0] === "" && (l.shift(), m.shift());
|
|
7017
|
-
let p = [r, o, h, a, ""].join("/"), w = [
|
|
7021
|
+
let p = [r, o, h, a, ""].join("/"), w = [u, c, d, f, ""].join("/");
|
|
7018
7022
|
this.#t = [p, ...l], this.#s = [w, ...m], this.length = this.#t.length;
|
|
7019
7023
|
} else if (this.isDrive() || this.isAbsolute()) {
|
|
7020
7024
|
let [r, ...o] = this.#t, [h, ...a] = this.#s;
|
|
7021
7025
|
o[0] === "" && (o.shift(), a.shift());
|
|
7022
|
-
let l = r + "/",
|
|
7023
|
-
this.#t = [l, ...o], this.#s = [
|
|
7026
|
+
let l = r + "/", u = h + "/";
|
|
7027
|
+
this.#t = [l, ...o], this.#s = [u, ...a], this.length = this.#t.length;
|
|
7024
7028
|
}
|
|
7025
7029
|
}
|
|
7026
7030
|
}
|
|
7031
|
+
[Ni]() {
|
|
7032
|
+
return "Pattern <" + this.#s.slice(this.#n).join("/") + ">";
|
|
7033
|
+
}
|
|
7027
7034
|
pattern() {
|
|
7028
7035
|
return this.#t[this.#n];
|
|
7029
7036
|
}
|
|
@@ -7068,7 +7075,7 @@ var nt = class n4 {
|
|
|
7068
7075
|
return this.#n === 0 || !this.isGlobstar() || !this.#u ? false : (this.#u = false, true);
|
|
7069
7076
|
}
|
|
7070
7077
|
};
|
|
7071
|
-
var
|
|
7078
|
+
var _i = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
|
|
7072
7079
|
var ot = class {
|
|
7073
7080
|
relative;
|
|
7074
7081
|
relativeChildren;
|
|
@@ -7076,7 +7083,7 @@ var ot = class {
|
|
|
7076
7083
|
absoluteChildren;
|
|
7077
7084
|
platform;
|
|
7078
7085
|
mmopts;
|
|
7079
|
-
constructor(t, { nobrace: e, nocase: s, noext: i, noglobstar: r, platform: o =
|
|
7086
|
+
constructor(t, { nobrace: e, nocase: s, noext: i, noglobstar: r, platform: o = _i }) {
|
|
7080
7087
|
this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = o, this.mmopts = { dot: true, nobrace: e, nocase: s, noext: i, noglobstar: r, optimizationLevel: 2, platform: o, nocomment: true, nonegate: true };
|
|
7081
7088
|
for (let h of t) this.add(h);
|
|
7082
7089
|
}
|
|
@@ -7175,9 +7182,9 @@ var Et = class n6 {
|
|
|
7175
7182
|
}
|
|
7176
7183
|
}
|
|
7177
7184
|
if (i.isENOENT()) continue;
|
|
7178
|
-
let a, l,
|
|
7179
|
-
for (; typeof (a = r.pattern()) == "string" && (l = r.rest()); ) i = i.resolve(a), r = l,
|
|
7180
|
-
if (a = r.pattern(), l = r.rest(),
|
|
7185
|
+
let a, l, u = false;
|
|
7186
|
+
for (; typeof (a = r.pattern()) == "string" && (l = r.rest()); ) i = i.resolve(a), r = l, u = true;
|
|
7187
|
+
if (a = r.pattern(), l = r.rest(), u) {
|
|
7181
7188
|
if (this.hasWalkedCache.hasWalked(i, r)) continue;
|
|
7182
7189
|
this.hasWalkedCache.storeWalked(i, r);
|
|
7183
7190
|
}
|
|
@@ -7190,8 +7197,8 @@ var Et = class n6 {
|
|
|
7190
7197
|
let c = l?.pattern(), d = l?.rest();
|
|
7191
7198
|
if (!l || (c === "" || c === ".") && !d) this.matches.add(i, h, c === "" || c === ".");
|
|
7192
7199
|
else if (c === "..") {
|
|
7193
|
-
let
|
|
7194
|
-
d ? this.hasWalkedCache.hasWalked(
|
|
7200
|
+
let f = i.parent || i;
|
|
7201
|
+
d ? this.hasWalkedCache.hasWalked(f, d) || this.subwalks.add(f, d) : this.matches.add(f, h, true);
|
|
7195
7202
|
}
|
|
7196
7203
|
} else a instanceof RegExp && this.subwalks.add(i, r);
|
|
7197
7204
|
}
|
|
@@ -7228,7 +7235,7 @@ var Et = class n6 {
|
|
|
7228
7235
|
t.isNamed(e) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, false));
|
|
7229
7236
|
}
|
|
7230
7237
|
};
|
|
7231
|
-
var
|
|
7238
|
+
var Li = (n7, t) => typeof n7 == "string" ? new ot([n7], t) : Array.isArray(n7) ? new ot(n7, t) : n7;
|
|
7232
7239
|
var zt = class {
|
|
7233
7240
|
path;
|
|
7234
7241
|
patterns;
|
|
@@ -7243,7 +7250,7 @@ var zt = class {
|
|
|
7243
7250
|
maxDepth;
|
|
7244
7251
|
includeChildMatches;
|
|
7245
7252
|
constructor(t, e, s) {
|
|
7246
|
-
if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== false, (s.ignore || !this.includeChildMatches) && (this.#s =
|
|
7253
|
+
if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== false, (s.ignore || !this.includeChildMatches) && (this.#s = Li(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) {
|
|
7247
7254
|
let i = "cannot ignore child matches, ignore lacks add() method.";
|
|
7248
7255
|
throw new Error(i);
|
|
7249
7256
|
}
|
|
@@ -7344,7 +7351,7 @@ var zt = class {
|
|
|
7344
7351
|
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
7345
7352
|
r++;
|
|
7346
7353
|
let a = h.readdirCached();
|
|
7347
|
-
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l,
|
|
7354
|
+
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), true);
|
|
7348
7355
|
}
|
|
7349
7356
|
o();
|
|
7350
7357
|
}
|
|
@@ -7430,7 +7437,7 @@ var vt = class extends zt {
|
|
|
7430
7437
|
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
|
|
7431
7438
|
}
|
|
7432
7439
|
};
|
|
7433
|
-
var
|
|
7440
|
+
var Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
|
|
7434
7441
|
var I = class {
|
|
7435
7442
|
absolute;
|
|
7436
7443
|
cwd;
|
|
@@ -7461,23 +7468,23 @@ var I = class {
|
|
|
7461
7468
|
patterns;
|
|
7462
7469
|
constructor(t, e) {
|
|
7463
7470
|
if (!e) throw new TypeError("glob options required");
|
|
7464
|
-
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd =
|
|
7471
|
+
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = Wi(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== false, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
|
|
7465
7472
|
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === false, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
7466
7473
|
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
7467
7474
|
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
7468
7475
|
}
|
|
7469
|
-
if (this.pattern = t, this.platform = e.platform ||
|
|
7476
|
+
if (this.pattern = t, this.platform = e.platform || Pi, this.opts = { ...e, platform: this.platform }, e.scurry) {
|
|
7470
7477
|
if (this.scurry = e.scurry, e.nocase !== void 0 && e.nocase !== e.scurry.nocase) throw new Error("nocase option contradicts provided scurry option");
|
|
7471
7478
|
} else {
|
|
7472
7479
|
let a = e.platform === "win32" ? it : e.platform === "darwin" ? St : e.platform ? rt : Xe;
|
|
7473
7480
|
this.scurry = new a(this.cwd, { nocase: e.nocase, fs: e.fs });
|
|
7474
7481
|
}
|
|
7475
7482
|
this.nocase = this.scurry.nocase;
|
|
7476
|
-
let s = this.platform === "darwin" || this.platform === "win32", i = { ...e, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: s, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape, debug: !!this.opts.debug }, r = this.pattern.map((a) => new D(a, i)), [o, h] = r.reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
|
|
7483
|
+
let s = this.platform === "darwin" || this.platform === "win32", i = { braceExpandMax: 1e4, ...e, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: s, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape, debug: !!this.opts.debug }, r = this.pattern.map((a) => new D(a, i)), [o, h] = r.reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
|
|
7477
7484
|
this.patterns = o.map((a, l) => {
|
|
7478
|
-
let
|
|
7479
|
-
if (!
|
|
7480
|
-
return new nt(a,
|
|
7485
|
+
let u = h[l];
|
|
7486
|
+
if (!u) throw new Error("invalid pattern object");
|
|
7487
|
+
return new nt(a, u, 0, this.platform);
|
|
7481
7488
|
});
|
|
7482
7489
|
}
|
|
7483
7490
|
async walk() {
|
|
@@ -7528,12 +7535,12 @@ function Ut(n7, t = {}) {
|
|
|
7528
7535
|
function es(n7, t = {}) {
|
|
7529
7536
|
return new I(n7, t).iterate();
|
|
7530
7537
|
}
|
|
7531
|
-
var
|
|
7532
|
-
var
|
|
7533
|
-
var
|
|
7534
|
-
var
|
|
7535
|
-
var
|
|
7536
|
-
var Ze = Object.assign(Je, { glob: Je, globSync: ts, sync:
|
|
7538
|
+
var ji = Bt;
|
|
7539
|
+
var Ii = Object.assign(Qe, { sync: Bt });
|
|
7540
|
+
var zi = Ut;
|
|
7541
|
+
var Bi = Object.assign(es, { sync: Ut });
|
|
7542
|
+
var Ui = Object.assign(ts, { stream: Bt, iterate: Ut });
|
|
7543
|
+
var Ze = Object.assign(Je, { glob: Je, globSync: ts, sync: Ui, globStream: Qe, stream: Ii, globStreamSync: Bt, streamSync: ji, globIterate: es, iterate: Bi, globIterateSync: Ut, iterateSync: zi, Glob: I, hasMagic: le, escape: tt, unescape: W });
|
|
7537
7544
|
Ze.glob = Ze;
|
|
7538
7545
|
|
|
7539
7546
|
// src/vite.config.ts
|
|
@@ -7813,7 +7820,7 @@ function createDedent(options) {
|
|
|
7813
7820
|
result = result.trim();
|
|
7814
7821
|
}
|
|
7815
7822
|
if (escapeSpecialCharacters) {
|
|
7816
|
-
result = result.replace(/\\n/g, "\n");
|
|
7823
|
+
result = result.replace(/\\n/g, "\n").replace(/\\t/g, " ").replace(/\\r/g, "\r").replace(/\\v/g, "\v").replace(/\\b/g, "\b").replace(/\\f/g, "\f").replace(/\\0/g, "\0").replace(/\\x([\da-fA-F]{2})/g, (_2, h) => String.fromCharCode(parseInt(h, 16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g, (_2, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\u([\da-fA-F]{4})/g, (_2, h) => String.fromCharCode(parseInt(h, 16)));
|
|
7817
7824
|
}
|
|
7818
7825
|
if (typeof Bun !== "undefined") {
|
|
7819
7826
|
result = result.replace(
|