@ariestools/toolchain 9.0.0 → 9.0.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/README.md +94 -0
- package/dist/actions/enable/editXyConfigCompile.d.ts +32 -0
- package/dist/actions/enable/editXyConfigCompile.d.ts.map +1 -0
- package/dist/actions/enable/index.d.ts +3 -0
- package/dist/actions/enable/index.d.ts.map +1 -0
- package/dist/actions/enable/tsNative.d.ts +36 -0
- package/dist/actions/enable/tsNative.d.ts.map +1 -0
- package/dist/actions/index.d.ts +2 -1
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +7 -2
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/resolveTscBin.d.ts +10 -0
- package/dist/actions/package/compile/resolveTscBin.d.ts.map +1 -1
- package/dist/actions/package/compile/runTsc.d.ts.map +1 -1
- package/dist/actions/package-lint-pnpm.d.ts +8 -1
- package/dist/actions/package-lint-pnpm.d.ts.map +1 -1
- package/dist/actions/package-lint.d.ts +16 -1
- package/dist/actions/package-lint.d.ts.map +1 -1
- package/dist/actions/packman/lint.d.ts.map +1 -1
- package/dist/actions/ruleCatalog.d.ts +4 -1
- package/dist/actions/ruleCatalog.d.ts.map +1 -1
- package/dist/actions/ruleRunner.d.ts +2 -1
- package/dist/actions/ruleRunner.d.ts.map +1 -1
- package/dist/actions/secure/dependabot.d.ts +22 -0
- package/dist/actions/secure/dependabot.d.ts.map +1 -0
- package/dist/actions/secure/dependabotRules.d.ts +9 -0
- package/dist/actions/secure/dependabotRules.d.ts.map +1 -0
- package/dist/actions/secure/deps.d.ts +18 -0
- package/dist/actions/secure/deps.d.ts.map +1 -0
- package/dist/actions/secure/index.d.ts +5 -0
- package/dist/actions/secure/index.d.ts.map +1 -0
- package/dist/actions/secure/secure.d.ts +16 -0
- package/dist/actions/secure/secure.d.ts.map +1 -0
- package/dist/actions/work/github.d.ts +3 -8
- package/dist/actions/work/github.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +484 -420
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +70 -31
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +74 -33
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +429 -370
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +76 -32
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +68 -32
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +1676 -787
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/github/index.d.ts +2 -0
- package/dist/lib/github/index.d.ts.map +1 -0
- package/dist/lib/github/runner.d.ts +25 -0
- package/dist/lib/github/runner.d.ts.map +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/ruleCommandRegistry.d.ts +17 -2
- package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
- package/dist/lib/secure/dependabot/fetchDependabotAlerts.d.ts +12 -0
- package/dist/lib/secure/dependabot/fetchDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/index.d.ts +6 -0
- package/dist/lib/secure/dependabot/index.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/interfaces.d.ts +49 -0
- package/dist/lib/secure/dependabot/interfaces.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/renderDependabotAlerts.d.ts +4 -0
- package/dist/lib/secure/dependabot/renderDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/summarizeDependabotAlerts.d.ts +5 -0
- package/dist/lib/secure/dependabot/summarizeDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/vulnerabilityAlerts.d.ts +21 -0
- package/dist/lib/secure/dependabot/vulnerabilityAlerts.d.ts.map +1 -0
- package/dist/lib/secure/index.d.ts +1 -0
- package/dist/lib/secure/index.d.ts.map +1 -1
- package/dist/lib/secure/renderSecurityAudit.d.ts +4 -0
- package/dist/lib/secure/renderSecurityAudit.d.ts.map +1 -1
- package/dist/xy/common/enable/index.d.ts +3 -0
- package/dist/xy/common/enable/index.d.ts.map +1 -0
- package/dist/xy/common/index.d.ts.map +1 -1
- package/dist/xy/common/secure/dependabotCommand.d.ts +3 -0
- package/dist/xy/common/secure/dependabotCommand.d.ts.map +1 -0
- package/dist/xy/common/secure/depsCommand.d.ts +3 -0
- package/dist/xy/common/secure/depsCommand.d.ts.map +1 -0
- package/dist/xy/common/secure/index.d.ts +5 -0
- package/dist/xy/common/secure/index.d.ts.map +1 -0
- package/dist/xy/install/cleanCommand.d.ts.map +1 -1
- package/dist/xy/xy.d.ts.map +1 -1
- package/package.json +8 -7
|
@@ -14,9 +14,9 @@ import Pe, { PassThrough } from "node:stream";
|
|
|
14
14
|
import { StringDecoder } from "node:string_decoder";
|
|
15
15
|
import Re from "path";
|
|
16
16
|
import { spawn } from "node:child_process";
|
|
17
|
-
import
|
|
17
|
+
import readline from "node:readline";
|
|
18
18
|
import Ue from "os";
|
|
19
|
-
import {
|
|
19
|
+
import { createJiti } from "jiti";
|
|
20
20
|
import util from "node:util";
|
|
21
21
|
import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
|
|
22
22
|
import { build } from "esbuild";
|
|
@@ -617,24 +617,24 @@ function ht(n, t, e) {
|
|
|
617
617
|
return s;
|
|
618
618
|
}
|
|
619
619
|
function Bt(n, t = {}) {
|
|
620
|
-
return new I$
|
|
620
|
+
return new I$1(n, t).streamSync();
|
|
621
621
|
}
|
|
622
622
|
function Qe$1(n, t = {}) {
|
|
623
|
-
return new I$
|
|
623
|
+
return new I$1(n, t).stream();
|
|
624
624
|
}
|
|
625
625
|
function ts$1(n, t = {}) {
|
|
626
|
-
return new I$
|
|
626
|
+
return new I$1(n, t).walkSync();
|
|
627
627
|
}
|
|
628
628
|
async function Je$1(n, t = {}) {
|
|
629
|
-
return new I$
|
|
629
|
+
return new I$1(n, t).walk();
|
|
630
630
|
}
|
|
631
631
|
function Ut(n, t = {}) {
|
|
632
|
-
return new I$
|
|
632
|
+
return new I$1(n, t).iterateSync();
|
|
633
633
|
}
|
|
634
634
|
function es(n, t = {}) {
|
|
635
|
-
return new I$
|
|
635
|
+
return new I$1(n, t).iterate();
|
|
636
636
|
}
|
|
637
|
-
var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$
|
|
637
|
+
var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe$1, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P, et, v$1, dt, st, C$1, F, T, Yt, Ft, k, x$2, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, vi, wt, Ue$1, $e, Ri, Oi, L$1, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$1, gt, se$1, je$1, yt, j, Nt, Lt, Ie$1, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$2, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$1, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
|
|
638
638
|
var init_index_min = __esmMin((() => {
|
|
639
639
|
Gt = (n, t, e) => {
|
|
640
640
|
let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
|
|
@@ -1038,7 +1038,7 @@ var init_index_min = __esmMin((() => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
1040
|
tt = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !1 } = {}) => e ? t ? n.replace(/[?*()[\]{}]/g, "[$&]") : n.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? n.replace(/[?*()[\]]/g, "[$&]") : n.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1041
|
-
O$
|
|
1041
|
+
O$2 = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D(t, e).match(n));
|
|
1042
1042
|
Rs = /^\*+([^+@!?\*\[\(]*)$/;
|
|
1043
1043
|
Os = (n) => (t) => !t.startsWith(".") && t.endsWith(n);
|
|
1044
1044
|
Fs = (n) => (t) => t.endsWith(n);
|
|
@@ -1082,59 +1082,59 @@ var init_index_min = __esmMin((() => {
|
|
|
1082
1082
|
win32: { sep: "\\" },
|
|
1083
1083
|
posix: { sep: "/" }
|
|
1084
1084
|
};
|
|
1085
|
-
O$
|
|
1085
|
+
O$2.sep = Ae$1 === "win32" ? xe$1.win32.sep : xe$1.posix.sep;
|
|
1086
1086
|
A$1 = Symbol("globstar **");
|
|
1087
|
-
O$
|
|
1087
|
+
O$2.GLOBSTAR = A$1;
|
|
1088
1088
|
Vs = "[^/]*?";
|
|
1089
1089
|
Ys = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1090
1090
|
Xs = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1091
|
-
Js = (n, t = {}) => (e) => O$
|
|
1092
|
-
O$
|
|
1093
|
-
N$
|
|
1091
|
+
Js = (n, t = {}) => (e) => O$2(e, n, t);
|
|
1092
|
+
O$2.filter = Js;
|
|
1093
|
+
N$1 = (n, t = {}) => Object.assign({}, n, t);
|
|
1094
1094
|
Zs = (n) => {
|
|
1095
|
-
if (!n || typeof n != "object" || !Object.keys(n).length) return O$
|
|
1096
|
-
let t = O$
|
|
1097
|
-
return Object.assign((s, i, r = {}) => t(s, i, N$
|
|
1095
|
+
if (!n || typeof n != "object" || !Object.keys(n).length) return O$2;
|
|
1096
|
+
let t = O$2;
|
|
1097
|
+
return Object.assign((s, i, r = {}) => t(s, i, N$1(n, r)), {
|
|
1098
1098
|
Minimatch: class extends t.Minimatch {
|
|
1099
1099
|
constructor(i, r = {}) {
|
|
1100
|
-
super(i, N$
|
|
1100
|
+
super(i, N$1(n, r));
|
|
1101
1101
|
}
|
|
1102
1102
|
static defaults(i) {
|
|
1103
|
-
return t.defaults(N$
|
|
1103
|
+
return t.defaults(N$1(n, i)).Minimatch;
|
|
1104
1104
|
}
|
|
1105
1105
|
},
|
|
1106
1106
|
AST: class extends t.AST {
|
|
1107
1107
|
constructor(i, r, o = {}) {
|
|
1108
|
-
super(i, r, N$
|
|
1108
|
+
super(i, r, N$1(n, o));
|
|
1109
1109
|
}
|
|
1110
1110
|
static fromGlob(i, r = {}) {
|
|
1111
|
-
return t.AST.fromGlob(i, N$
|
|
1111
|
+
return t.AST.fromGlob(i, N$1(n, r));
|
|
1112
1112
|
}
|
|
1113
1113
|
},
|
|
1114
|
-
unescape: (s, i = {}) => t.unescape(s, N$
|
|
1115
|
-
escape: (s, i = {}) => t.escape(s, N$
|
|
1116
|
-
filter: (s, i = {}) => t.filter(s, N$
|
|
1117
|
-
defaults: (s) => t.defaults(N$
|
|
1118
|
-
makeRe: (s, i = {}) => t.makeRe(s, N$
|
|
1119
|
-
braceExpand: (s, i = {}) => t.braceExpand(s, N$
|
|
1120
|
-
match: (s, i, r = {}) => t.match(s, i, N$
|
|
1114
|
+
unescape: (s, i = {}) => t.unescape(s, N$1(n, i)),
|
|
1115
|
+
escape: (s, i = {}) => t.escape(s, N$1(n, i)),
|
|
1116
|
+
filter: (s, i = {}) => t.filter(s, N$1(n, i)),
|
|
1117
|
+
defaults: (s) => t.defaults(N$1(n, s)),
|
|
1118
|
+
makeRe: (s, i = {}) => t.makeRe(s, N$1(n, i)),
|
|
1119
|
+
braceExpand: (s, i = {}) => t.braceExpand(s, N$1(n, i)),
|
|
1120
|
+
match: (s, i, r = {}) => t.match(s, i, N$1(n, r)),
|
|
1121
1121
|
sep: t.sep,
|
|
1122
1122
|
GLOBSTAR: A$1
|
|
1123
1123
|
});
|
|
1124
1124
|
};
|
|
1125
|
-
O$
|
|
1125
|
+
O$2.defaults = Zs;
|
|
1126
1126
|
ke$1 = (n, t = {}) => (at(n), t.nobrace || !/\{(?:(?!\{).)*\}/.test(n) ? [n] : ge$1(n, { max: t.braceExpandMax }));
|
|
1127
|
-
O$
|
|
1128
|
-
Qs = (n, t = {}) => new D
|
|
1129
|
-
O$
|
|
1127
|
+
O$2.braceExpand = ke$1;
|
|
1128
|
+
Qs = (n, t = {}) => new D(n, t).makeRe();
|
|
1129
|
+
O$2.makeRe = Qs;
|
|
1130
1130
|
ti = (n, t, e = {}) => {
|
|
1131
|
-
let s = new D
|
|
1131
|
+
let s = new D(t, e);
|
|
1132
1132
|
return n = n.filter((i) => s.match(i)), s.options.nonull && !n.length && n.push(t), n;
|
|
1133
1133
|
};
|
|
1134
|
-
O$
|
|
1134
|
+
O$2.match = ti;
|
|
1135
1135
|
ve$1 = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1136
1136
|
ei = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1137
|
-
D
|
|
1137
|
+
D = class {
|
|
1138
1138
|
options;
|
|
1139
1139
|
set;
|
|
1140
1140
|
pattern;
|
|
@@ -1411,13 +1411,13 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1411
1411
|
return s.flipNegate ? !1 : this.negate;
|
|
1412
1412
|
}
|
|
1413
1413
|
static defaults(t) {
|
|
1414
|
-
return O$
|
|
1414
|
+
return O$2.defaults(t).Minimatch;
|
|
1415
1415
|
}
|
|
1416
1416
|
};
|
|
1417
|
-
O$
|
|
1418
|
-
O$
|
|
1419
|
-
O$
|
|
1420
|
-
O$
|
|
1417
|
+
O$2.AST = Q$1;
|
|
1418
|
+
O$2.Minimatch = D;
|
|
1419
|
+
O$2.escape = tt;
|
|
1420
|
+
O$2.unescape = W;
|
|
1421
1421
|
si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
1422
1422
|
Oe$1 = /* @__PURE__ */ new Set();
|
|
1423
1423
|
Vt = typeof process == "object" && process ? process : {};
|
|
@@ -2038,17 +2038,17 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2038
2038
|
_e$1 = Symbol("read");
|
|
2039
2039
|
Ot = Symbol("flush");
|
|
2040
2040
|
Le$1 = Symbol("flushChunk");
|
|
2041
|
-
P
|
|
2041
|
+
P = Symbol("encoding");
|
|
2042
2042
|
et = Symbol("decoder");
|
|
2043
|
-
v$
|
|
2043
|
+
v$1 = Symbol("flowing");
|
|
2044
2044
|
dt = Symbol("paused");
|
|
2045
2045
|
st = Symbol("resume");
|
|
2046
|
-
C$
|
|
2047
|
-
F
|
|
2048
|
-
T
|
|
2046
|
+
C$1 = Symbol("buffer");
|
|
2047
|
+
F = Symbol("pipes");
|
|
2048
|
+
T = Symbol("bufferLength");
|
|
2049
2049
|
Yt = Symbol("bufferPush");
|
|
2050
2050
|
Ft = Symbol("bufferShift");
|
|
2051
|
-
k
|
|
2051
|
+
k = Symbol("objectMode");
|
|
2052
2052
|
x$2 = Symbol("destroyed");
|
|
2053
2053
|
Xt = Symbol("error");
|
|
2054
2054
|
Jt = Symbol("emitData");
|
|
@@ -2092,12 +2092,12 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2092
2092
|
di = (n) => !!n.objectMode;
|
|
2093
2093
|
pi = (n) => !n.objectMode && !!n.encoding && n.encoding !== "buffer";
|
|
2094
2094
|
V = class extends EventEmitter {
|
|
2095
|
-
[v$
|
|
2095
|
+
[v$1] = !1;
|
|
2096
2096
|
[dt] = !1;
|
|
2097
|
-
[F
|
|
2098
|
-
[C$
|
|
2099
|
-
[k
|
|
2100
|
-
[P
|
|
2097
|
+
[F] = [];
|
|
2098
|
+
[C$1] = [];
|
|
2099
|
+
[k];
|
|
2100
|
+
[P];
|
|
2101
2101
|
[B];
|
|
2102
2102
|
[et];
|
|
2103
2103
|
[G] = !1;
|
|
@@ -2105,7 +2105,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2105
2105
|
[kt] = !1;
|
|
2106
2106
|
[Rt] = !1;
|
|
2107
2107
|
[ut] = null;
|
|
2108
|
-
[T
|
|
2108
|
+
[T] = 0;
|
|
2109
2109
|
[x$2] = !1;
|
|
2110
2110
|
[pt];
|
|
2111
2111
|
[Dt] = !1;
|
|
@@ -2116,15 +2116,15 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2116
2116
|
constructor(...t) {
|
|
2117
2117
|
let e = t[0] || {};
|
|
2118
2118
|
if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
2119
|
-
di(e) ? (this[k
|
|
2119
|
+
di(e) ? (this[k] = !0, this[P] = null) : pi(e) ? (this[P] = e.encoding, this[k] = !1) : (this[k] = !1, this[P] = null), this[B] = !!e.async, this[et] = this[P] ? new StringDecoder(this[P]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[C$1] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[F] });
|
|
2120
2120
|
let { signal: s } = e;
|
|
2121
2121
|
s && (this[pt] = s, s.aborted ? this[Qt]() : s.addEventListener("abort", () => this[Qt]()));
|
|
2122
2122
|
}
|
|
2123
2123
|
get bufferLength() {
|
|
2124
|
-
return this[T
|
|
2124
|
+
return this[T];
|
|
2125
2125
|
}
|
|
2126
2126
|
get encoding() {
|
|
2127
|
-
return this[P
|
|
2127
|
+
return this[P];
|
|
2128
2128
|
}
|
|
2129
2129
|
set encoding(t) {
|
|
2130
2130
|
throw new Error("Encoding must be set at instantiation time");
|
|
@@ -2133,7 +2133,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2133
2133
|
throw new Error("Encoding must be set at instantiation time");
|
|
2134
2134
|
}
|
|
2135
2135
|
get objectMode() {
|
|
2136
|
-
return this[k
|
|
2136
|
+
return this[k];
|
|
2137
2137
|
}
|
|
2138
2138
|
set objectMode(t) {
|
|
2139
2139
|
throw new Error("objectMode must be set at instantiation time");
|
|
@@ -2157,80 +2157,80 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2157
2157
|
if (this[x$2]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), !0;
|
|
2158
2158
|
typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
|
|
2159
2159
|
let i = this[B] ? mt : li;
|
|
2160
|
-
if (!this[k
|
|
2160
|
+
if (!this[k] && !Buffer.isBuffer(t)) {
|
|
2161
2161
|
if (ui(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
|
|
2162
2162
|
else if (fi(t)) t = Buffer.from(t);
|
|
2163
2163
|
else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
2164
2164
|
}
|
|
2165
|
-
return this[k
|
|
2165
|
+
return this[k] ? (this[v$1] && this[T] !== 0 && this[Ot](!0), this[v$1] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]) : t.length ? (typeof t == "string" && !(e === this[P] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P] && (t = this[et].write(t)), this[v$1] && this[T] !== 0 && this[Ot](!0), this[v$1] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]) : (this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]);
|
|
2166
2166
|
}
|
|
2167
2167
|
read(t) {
|
|
2168
2168
|
if (this[x$2]) return null;
|
|
2169
|
-
if (this[M] = !1, this[T
|
|
2170
|
-
this[k
|
|
2171
|
-
let e = this[_e$1](t || null, this[C$
|
|
2169
|
+
if (this[M] = !1, this[T] === 0 || t === 0 || t && t > this[T]) return this[H$1](), null;
|
|
2170
|
+
this[k] && (t = null), this[C$1].length > 1 && !this[k] && (this[C$1] = [this[P] ? this[C$1].join("") : Buffer.concat(this[C$1], this[T])]);
|
|
2171
|
+
let e = this[_e$1](t || null, this[C$1][0]);
|
|
2172
2172
|
return this[H$1](), e;
|
|
2173
2173
|
}
|
|
2174
2174
|
[_e$1](t, e) {
|
|
2175
|
-
if (this[k
|
|
2175
|
+
if (this[k]) this[Ft]();
|
|
2176
2176
|
else {
|
|
2177
2177
|
let s = e;
|
|
2178
|
-
t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C$
|
|
2178
|
+
t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C$1][0] = s.slice(t), e = s.slice(0, t), this[T] -= t) : (this[C$1][0] = s.subarray(t), e = s.subarray(0, t), this[T] -= t);
|
|
2179
2179
|
}
|
|
2180
|
-
return this.emit("data", e), !this[C$
|
|
2180
|
+
return this.emit("data", e), !this[C$1].length && !this[G] && this.emit("drain"), e;
|
|
2181
2181
|
}
|
|
2182
2182
|
end(t, e, s) {
|
|
2183
|
-
return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = !0, this.writable = !1, (this[v$
|
|
2183
|
+
return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = !0, this.writable = !1, (this[v$1] || !this[dt]) && this[H$1](), this;
|
|
2184
2184
|
}
|
|
2185
2185
|
[st]() {
|
|
2186
|
-
this[x$2] || (!this[Y$1] && !this[F
|
|
2186
|
+
this[x$2] || (!this[Y$1] && !this[F].length && (this[M] = !0), this[dt] = !1, this[v$1] = !0, this.emit("resume"), this[C$1].length ? this[Ot]() : this[G] ? this[H$1]() : this.emit("drain"));
|
|
2187
2187
|
}
|
|
2188
2188
|
resume() {
|
|
2189
2189
|
return this[st]();
|
|
2190
2190
|
}
|
|
2191
2191
|
pause() {
|
|
2192
|
-
this[v$
|
|
2192
|
+
this[v$1] = !1, this[dt] = !0, this[M] = !1;
|
|
2193
2193
|
}
|
|
2194
2194
|
get destroyed() {
|
|
2195
2195
|
return this[x$2];
|
|
2196
2196
|
}
|
|
2197
2197
|
get flowing() {
|
|
2198
|
-
return this[v$
|
|
2198
|
+
return this[v$1];
|
|
2199
2199
|
}
|
|
2200
2200
|
get paused() {
|
|
2201
2201
|
return this[dt];
|
|
2202
2202
|
}
|
|
2203
2203
|
[Yt](t) {
|
|
2204
|
-
this[k
|
|
2204
|
+
this[k] ? this[T] += 1 : this[T] += t.length, this[C$1].push(t);
|
|
2205
2205
|
}
|
|
2206
2206
|
[Ft]() {
|
|
2207
|
-
return this[k
|
|
2207
|
+
return this[k] ? this[T] -= 1 : this[T] -= this[C$1][0].length, this[C$1].shift();
|
|
2208
2208
|
}
|
|
2209
2209
|
[Ot](t = !1) {
|
|
2210
2210
|
do ;
|
|
2211
|
-
while (this[Le$1](this[Ft]()) && this[C$
|
|
2212
|
-
!t && !this[C$
|
|
2211
|
+
while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
2212
|
+
!t && !this[C$1].length && !this[G] && this.emit("drain");
|
|
2213
2213
|
}
|
|
2214
2214
|
[Le$1](t) {
|
|
2215
|
-
return this.emit("data", t), this[v$
|
|
2215
|
+
return this.emit("data", t), this[v$1];
|
|
2216
2216
|
}
|
|
2217
2217
|
pipe(t, e) {
|
|
2218
2218
|
if (this[x$2]) return t;
|
|
2219
2219
|
this[M] = !1;
|
|
2220
2220
|
let s = this[K$1];
|
|
2221
|
-
return e = e || {}, t === Ne$1.stdout || t === Ne$1.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F
|
|
2221
|
+
return e = e || {}, t === Ne$1.stdout || t === Ne$1.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F].push(e.proxyErrors ? new te$1(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
|
|
2222
2222
|
}
|
|
2223
2223
|
unpipe(t) {
|
|
2224
|
-
let e = this[F
|
|
2225
|
-
e && (this[F
|
|
2224
|
+
let e = this[F].find((s) => s.dest === t);
|
|
2225
|
+
e && (this[F].length === 1 ? (this[v$1] && this[Y$1] === 0 && (this[v$1] = !1), this[F] = []) : this[F].splice(this[F].indexOf(e), 1), e.unpipe());
|
|
2226
2226
|
}
|
|
2227
2227
|
addListener(t, e) {
|
|
2228
2228
|
return this.on(t, e);
|
|
2229
2229
|
}
|
|
2230
2230
|
on(t, e) {
|
|
2231
2231
|
let s = super.on(t, e);
|
|
2232
|
-
if (t === "data") this[M] = !1, this[Y$1]++, !this[F
|
|
2233
|
-
else if (t === "readable" && this[T
|
|
2232
|
+
if (t === "data") this[M] = !1, this[Y$1]++, !this[F].length && !this[v$1] && this[st]();
|
|
2233
|
+
else if (t === "readable" && this[T] !== 0) super.emit("readable");
|
|
2234
2234
|
else if (ci(t) && this[K$1]) super.emit(t), this.removeAllListeners(t);
|
|
2235
2235
|
else if (t === "error" && this[ut]) {
|
|
2236
2236
|
let i = e;
|
|
@@ -2243,22 +2243,22 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2243
2243
|
}
|
|
2244
2244
|
off(t, e) {
|
|
2245
2245
|
let s = super.off(t, e);
|
|
2246
|
-
return t === "data" && (this[Y$1] = this.listeners("data").length, this[Y$1] === 0 && !this[M] && !this[F
|
|
2246
|
+
return t === "data" && (this[Y$1] = this.listeners("data").length, this[Y$1] === 0 && !this[M] && !this[F].length && (this[v$1] = !1)), s;
|
|
2247
2247
|
}
|
|
2248
2248
|
removeAllListeners(t) {
|
|
2249
2249
|
let e = super.removeAllListeners(t);
|
|
2250
|
-
return (t === "data" || t === void 0) && (this[Y$1] = 0, !this[M] && !this[F
|
|
2250
|
+
return (t === "data" || t === void 0) && (this[Y$1] = 0, !this[M] && !this[F].length && (this[v$1] = !1)), e;
|
|
2251
2251
|
}
|
|
2252
2252
|
get emittedEnd() {
|
|
2253
2253
|
return this[K$1];
|
|
2254
2254
|
}
|
|
2255
2255
|
[H$1]() {
|
|
2256
|
-
!this[kt] && !this[K$1] && !this[x$2] && this[C$
|
|
2256
|
+
!this[kt] && !this[K$1] && !this[x$2] && this[C$1].length === 0 && this[G] && (this[kt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = !1);
|
|
2257
2257
|
}
|
|
2258
2258
|
emit(t, ...e) {
|
|
2259
2259
|
let s = e[0];
|
|
2260
2260
|
if (t !== "error" && t !== "close" && t !== x$2 && this[x$2]) return !1;
|
|
2261
|
-
if (t === "data") return !this[k
|
|
2261
|
+
if (t === "data") return !this[k] && !s ? !1 : this[B] ? (mt(() => this[Jt](s)), !0) : this[Jt](s);
|
|
2262
2262
|
if (t === "end") return this[We$1]();
|
|
2263
2263
|
if (t === "close") {
|
|
2264
2264
|
if (this[Rt] = !0, !this[K$1] && !this[x$2]) return !1;
|
|
@@ -2279,7 +2279,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2279
2279
|
return this[H$1](), i;
|
|
2280
2280
|
}
|
|
2281
2281
|
[Jt](t) {
|
|
2282
|
-
for (let s of this[F
|
|
2282
|
+
for (let s of this[F]) s.dest.write(t) === !1 && this.pause();
|
|
2283
2283
|
let e = this[M] ? !1 : super.emit("data", t);
|
|
2284
2284
|
return this[H$1](), e;
|
|
2285
2285
|
}
|
|
@@ -2290,26 +2290,26 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2290
2290
|
if (this[et]) {
|
|
2291
2291
|
let e = this[et].end();
|
|
2292
2292
|
if (e) {
|
|
2293
|
-
for (let s of this[F
|
|
2293
|
+
for (let s of this[F]) s.dest.write(e);
|
|
2294
2294
|
this[M] || super.emit("data", e);
|
|
2295
2295
|
}
|
|
2296
2296
|
}
|
|
2297
|
-
for (let e of this[F
|
|
2297
|
+
for (let e of this[F]) e.end();
|
|
2298
2298
|
let t = super.emit("end");
|
|
2299
2299
|
return this.removeAllListeners("end"), t;
|
|
2300
2300
|
}
|
|
2301
2301
|
async collect() {
|
|
2302
2302
|
let t = Object.assign([], { dataLength: 0 });
|
|
2303
|
-
this[k
|
|
2303
|
+
this[k] || (t.dataLength = 0);
|
|
2304
2304
|
let e = this.promise();
|
|
2305
2305
|
return this.on("data", (s) => {
|
|
2306
|
-
t.push(s), this[k
|
|
2306
|
+
t.push(s), this[k] || (t.dataLength += s.length);
|
|
2307
2307
|
}), await e, t;
|
|
2308
2308
|
}
|
|
2309
2309
|
async concat() {
|
|
2310
|
-
if (this[k
|
|
2310
|
+
if (this[k]) throw new Error("cannot concat in objectMode");
|
|
2311
2311
|
let t = await this.collect();
|
|
2312
|
-
return this[P
|
|
2312
|
+
return this[P] ? t.join("") : Buffer.concat(t, t.dataLength);
|
|
2313
2313
|
}
|
|
2314
2314
|
async promise() {
|
|
2315
2315
|
return new Promise((t, e) => {
|
|
@@ -2381,7 +2381,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2381
2381
|
}
|
|
2382
2382
|
destroy(t) {
|
|
2383
2383
|
if (this[x$2]) return t ? this.emit("error", t) : this.emit(x$2), this;
|
|
2384
|
-
this[x$2] = !0, this[M] = !0, this[C$
|
|
2384
|
+
this[x$2] = !0, this[M] = !0, this[C$1].length = 0, this[T] = 0;
|
|
2385
2385
|
let e = this;
|
|
2386
2386
|
return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x$2), this;
|
|
2387
2387
|
}
|
|
@@ -2422,15 +2422,15 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2422
2422
|
Ke$1 = 8;
|
|
2423
2423
|
X$1 = 10;
|
|
2424
2424
|
Ve$1 = 12;
|
|
2425
|
-
_$
|
|
2426
|
-
gt = ~_$
|
|
2425
|
+
_$1 = 15;
|
|
2426
|
+
gt = ~_$1;
|
|
2427
2427
|
se$1 = 16;
|
|
2428
2428
|
je$1 = 32;
|
|
2429
2429
|
yt = 64;
|
|
2430
|
-
j
|
|
2430
|
+
j = 128;
|
|
2431
2431
|
Nt = 256;
|
|
2432
2432
|
Lt = 512;
|
|
2433
|
-
Ie$1 = yt | j
|
|
2433
|
+
Ie$1 = yt | j | Lt;
|
|
2434
2434
|
Fi = 1023;
|
|
2435
2435
|
ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L$1;
|
|
2436
2436
|
ze$1 = new ft({ max: 4096 });
|
|
@@ -2461,7 +2461,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2461
2461
|
}
|
|
2462
2462
|
};
|
|
2463
2463
|
Ye$1 = Symbol("PathScurry setAsCwd");
|
|
2464
|
-
R$
|
|
2464
|
+
R$2 = class {
|
|
2465
2465
|
name;
|
|
2466
2466
|
root;
|
|
2467
2467
|
roots;
|
|
@@ -2592,7 +2592,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2592
2592
|
parent: this,
|
|
2593
2593
|
fullpath: o
|
|
2594
2594
|
});
|
|
2595
|
-
return this.canReaddir() || (h.#e |= j
|
|
2595
|
+
return this.canReaddir() || (h.#e |= j), s.push(h), h;
|
|
2596
2596
|
}
|
|
2597
2597
|
relative() {
|
|
2598
2598
|
if (this.isCWD) return "";
|
|
@@ -2629,7 +2629,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2629
2629
|
return this.#y = s;
|
|
2630
2630
|
}
|
|
2631
2631
|
isUnknown() {
|
|
2632
|
-
return (this.#e & _$
|
|
2632
|
+
return (this.#e & _$1) === L$1;
|
|
2633
2633
|
}
|
|
2634
2634
|
isType(t) {
|
|
2635
2635
|
return this[`is${t}`]();
|
|
@@ -2638,22 +2638,22 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2638
2638
|
return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
|
|
2639
2639
|
}
|
|
2640
2640
|
isFile() {
|
|
2641
|
-
return (this.#e & _$
|
|
2641
|
+
return (this.#e & _$1) === Ke$1;
|
|
2642
2642
|
}
|
|
2643
2643
|
isDirectory() {
|
|
2644
|
-
return (this.#e & _$
|
|
2644
|
+
return (this.#e & _$1) === U;
|
|
2645
2645
|
}
|
|
2646
2646
|
isCharacterDevice() {
|
|
2647
|
-
return (this.#e & _$
|
|
2647
|
+
return (this.#e & _$1) === He$1;
|
|
2648
2648
|
}
|
|
2649
2649
|
isBlockDevice() {
|
|
2650
|
-
return (this.#e & _$
|
|
2650
|
+
return (this.#e & _$1) === qe$1;
|
|
2651
2651
|
}
|
|
2652
2652
|
isFIFO() {
|
|
2653
|
-
return (this.#e & _$
|
|
2653
|
+
return (this.#e & _$1) === Ge$1;
|
|
2654
2654
|
}
|
|
2655
2655
|
isSocket() {
|
|
2656
|
-
return (this.#e & _$
|
|
2656
|
+
return (this.#e & _$1) === Ve$1;
|
|
2657
2657
|
}
|
|
2658
2658
|
isSymbolicLink() {
|
|
2659
2659
|
return (this.#e & X$1) === X$1;
|
|
@@ -2674,14 +2674,14 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2674
2674
|
canReadlink() {
|
|
2675
2675
|
if (this.#M) return !0;
|
|
2676
2676
|
if (!this.parent) return !1;
|
|
2677
|
-
let t = this.#e & _$
|
|
2678
|
-
return !(t !== L$1 && t !== X$1 || this.#e & Nt || this.#e & j
|
|
2677
|
+
let t = this.#e & _$1;
|
|
2678
|
+
return !(t !== L$1 && t !== X$1 || this.#e & Nt || this.#e & j);
|
|
2679
2679
|
}
|
|
2680
2680
|
calledReaddir() {
|
|
2681
2681
|
return !!(this.#e & se$1);
|
|
2682
2682
|
}
|
|
2683
2683
|
isENOENT() {
|
|
2684
|
-
return !!(this.#e & j
|
|
2684
|
+
return !!(this.#e & j);
|
|
2685
2685
|
}
|
|
2686
2686
|
isNamed(t) {
|
|
2687
2687
|
return this.nocase ? this.#C === _t(t) : this.#C === bt(t);
|
|
@@ -2716,7 +2716,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2716
2716
|
}
|
|
2717
2717
|
}
|
|
2718
2718
|
#v() {
|
|
2719
|
-
this.#e & j
|
|
2719
|
+
this.#e & j || (this.#e = (this.#e | j) & gt, this.#G());
|
|
2720
2720
|
}
|
|
2721
2721
|
#G() {
|
|
2722
2722
|
let t = this.children();
|
|
@@ -2729,7 +2729,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2729
2729
|
#L() {
|
|
2730
2730
|
if (this.#e & yt) return;
|
|
2731
2731
|
let t = this.#e;
|
|
2732
|
-
(t & _$
|
|
2732
|
+
(t & _$1) === U && (t &= gt), this.#e = t | yt, this.#G();
|
|
2733
2733
|
}
|
|
2734
2734
|
#I(t = "") {
|
|
2735
2735
|
t === "ENOTDIR" || t === "EPERM" ? this.#L() : t === "ENOENT" ? this.#v() : this.children().provisional = 0;
|
|
@@ -2739,13 +2739,13 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2739
2739
|
}
|
|
2740
2740
|
#D(t = "") {
|
|
2741
2741
|
let e = this.#e;
|
|
2742
|
-
e |= Nt, t === "ENOENT" && (e |= j
|
|
2742
|
+
e |= Nt, t === "ENOENT" && (e |= j), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
|
|
2743
2743
|
}
|
|
2744
2744
|
#z(t, e) {
|
|
2745
2745
|
return this.#U(t, e) || this.#B(t, e);
|
|
2746
2746
|
}
|
|
2747
2747
|
#B(t, e) {
|
|
2748
|
-
let s = ie$1(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$
|
|
2748
|
+
let s = ie$1(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$1;
|
|
2749
2749
|
return r !== U && r !== X$1 && r !== L$1 && (i.#e |= yt), e.unshift(i), e.provisional++, i;
|
|
2750
2750
|
}
|
|
2751
2751
|
#U(t, e) {
|
|
@@ -2759,14 +2759,14 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2759
2759
|
return e.#e = e.#e & gt | ie$1(t), r !== t.name && (e.name = t.name), s !== i.provisional && (s === i.length - 1 ? i.pop() : i.splice(s, 1), i.unshift(e)), i.provisional++, e;
|
|
2760
2760
|
}
|
|
2761
2761
|
async lstat() {
|
|
2762
|
-
if ((this.#e & j
|
|
2762
|
+
if ((this.#e & j) === 0) try {
|
|
2763
2763
|
return this.#$(await this.#t.promises.lstat(this.fullpath())), this;
|
|
2764
2764
|
} catch (t) {
|
|
2765
2765
|
this.#F(t.code);
|
|
2766
2766
|
}
|
|
2767
2767
|
}
|
|
2768
2768
|
lstatSync() {
|
|
2769
|
-
if ((this.#e & j
|
|
2769
|
+
if ((this.#e & j) === 0) try {
|
|
2770
2770
|
return this.#$(this.#t.lstatSync(this.fullpath())), this;
|
|
2771
2771
|
} catch (t) {
|
|
2772
2772
|
this.#F(t.code);
|
|
@@ -2843,7 +2843,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2843
2843
|
}
|
|
2844
2844
|
canReaddir() {
|
|
2845
2845
|
if (this.#e & Ie$1) return !1;
|
|
2846
|
-
let t = _$
|
|
2846
|
+
let t = _$1 & this.#e;
|
|
2847
2847
|
return t === L$1 || t === U || t === X$1;
|
|
2848
2848
|
}
|
|
2849
2849
|
shouldWalk(t, e) {
|
|
@@ -2851,7 +2851,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2851
2851
|
}
|
|
2852
2852
|
async realpath() {
|
|
2853
2853
|
if (this.#k) return this.#k;
|
|
2854
|
-
if (!((Lt | Nt | j
|
|
2854
|
+
if (!((Lt | Nt | j) & this.#e)) try {
|
|
2855
2855
|
let t = await this.#t.promises.realpath(this.fullpath());
|
|
2856
2856
|
return this.#k = this.resolve(t);
|
|
2857
2857
|
} catch {
|
|
@@ -2860,7 +2860,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2860
2860
|
}
|
|
2861
2861
|
realpathSync() {
|
|
2862
2862
|
if (this.#k) return this.#k;
|
|
2863
|
-
if (!((Lt | Nt | j
|
|
2863
|
+
if (!((Lt | Nt | j) & this.#e)) try {
|
|
2864
2864
|
let t = this.#t.realpathSync(this.fullpath());
|
|
2865
2865
|
return this.#k = this.resolve(t);
|
|
2866
2866
|
} catch {
|
|
@@ -2875,7 +2875,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2875
2875
|
for (i = t; i && i.parent && !e.has(i);) i.#x = void 0, i.#A = void 0, i = i.parent;
|
|
2876
2876
|
}
|
|
2877
2877
|
};
|
|
2878
|
-
Pt = class n extends R$
|
|
2878
|
+
Pt = class n extends R$2 {
|
|
2879
2879
|
sep = "\\";
|
|
2880
2880
|
splitSep = Oi;
|
|
2881
2881
|
constructor(t, e = L$1, s, i, r, o, h) {
|
|
@@ -2896,7 +2896,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2896
2896
|
return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
|
|
2897
2897
|
}
|
|
2898
2898
|
};
|
|
2899
|
-
jt = class n extends R$
|
|
2899
|
+
jt = class n extends R$2 {
|
|
2900
2900
|
splitSep = "/";
|
|
2901
2901
|
sep = "/";
|
|
2902
2902
|
constructor(t, e = L$1, s, i, r, o, h) {
|
|
@@ -2981,7 +2981,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2981
2981
|
return typeof t == "string" && (t = this.cwd.resolve(t)), (t.parent || t).fullpath();
|
|
2982
2982
|
}
|
|
2983
2983
|
async readdir(t = this.cwd, e = { withFileTypes: !0 }) {
|
|
2984
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
2984
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
|
|
2985
2985
|
let { withFileTypes: s } = e;
|
|
2986
2986
|
if (t.canReaddir()) {
|
|
2987
2987
|
let i = await t.readdir();
|
|
@@ -2989,7 +2989,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
2989
2989
|
} else return [];
|
|
2990
2990
|
}
|
|
2991
2991
|
readdirSync(t = this.cwd, e = { withFileTypes: !0 }) {
|
|
2992
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
2992
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
|
|
2993
2993
|
let { withFileTypes: s = !0 } = e;
|
|
2994
2994
|
return t.canReaddir() ? s ? t.readdirSync() : t.readdirSync().map((i) => i.name) : [];
|
|
2995
2995
|
}
|
|
@@ -3000,27 +3000,27 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3000
3000
|
return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstatSync();
|
|
3001
3001
|
}
|
|
3002
3002
|
async readlink(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
3003
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3003
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t.withFileTypes, t = this.cwd);
|
|
3004
3004
|
let s = await t.readlink();
|
|
3005
3005
|
return e ? s : s?.fullpath();
|
|
3006
3006
|
}
|
|
3007
3007
|
readlinkSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
3008
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3008
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t.withFileTypes, t = this.cwd);
|
|
3009
3009
|
let s = t.readlinkSync();
|
|
3010
3010
|
return e ? s : s?.fullpath();
|
|
3011
3011
|
}
|
|
3012
3012
|
async realpath(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
3013
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3013
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t.withFileTypes, t = this.cwd);
|
|
3014
3014
|
let s = await t.realpath();
|
|
3015
3015
|
return e ? s : s?.fullpath();
|
|
3016
3016
|
}
|
|
3017
3017
|
realpathSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
3018
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3018
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t.withFileTypes, t = this.cwd);
|
|
3019
3019
|
let s = t.realpathSync();
|
|
3020
3020
|
return e ? s : s?.fullpath();
|
|
3021
3021
|
}
|
|
3022
3022
|
async walk(t = this.cwd, e = {}) {
|
|
3023
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3023
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
|
|
3024
3024
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
|
|
3025
3025
|
(!r || r(t)) && h.push(s ? t : t.fullpath());
|
|
3026
3026
|
let a = /* @__PURE__ */ new Set(), l = (c, d) => {
|
|
@@ -3042,7 +3042,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3042
3042
|
});
|
|
3043
3043
|
}
|
|
3044
3044
|
walkSync(t = this.cwd, e = {}) {
|
|
3045
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3045
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
|
|
3046
3046
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
|
|
3047
3047
|
(!r || r(t)) && h.push(s ? t : t.fullpath());
|
|
3048
3048
|
let a = /* @__PURE__ */ new Set([t]);
|
|
@@ -3064,13 +3064,13 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3064
3064
|
return this.iterate();
|
|
3065
3065
|
}
|
|
3066
3066
|
iterate(t = this.cwd, e = {}) {
|
|
3067
|
-
return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3067
|
+
return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
|
|
3068
3068
|
}
|
|
3069
3069
|
[Symbol.iterator]() {
|
|
3070
3070
|
return this.iterateSync();
|
|
3071
3071
|
}
|
|
3072
3072
|
*iterateSync(t = this.cwd, e = {}) {
|
|
3073
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3073
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
|
|
3074
3074
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e;
|
|
3075
3075
|
(!r || r(t)) && (yield s ? t : t.fullpath());
|
|
3076
3076
|
let h = /* @__PURE__ */ new Set([t]);
|
|
@@ -3088,7 +3088,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3088
3088
|
}
|
|
3089
3089
|
}
|
|
3090
3090
|
stream(t = this.cwd, e = {}) {
|
|
3091
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3091
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
|
|
3092
3092
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 });
|
|
3093
3093
|
(!r || r(t)) && h.write(s ? t : t.fullpath());
|
|
3094
3094
|
let a = /* @__PURE__ */ new Set(), l = [t], u = 0, c = () => {
|
|
@@ -3124,7 +3124,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3124
3124
|
return c(), h;
|
|
3125
3125
|
}
|
|
3126
3126
|
streamSync(t = this.cwd, e = {}) {
|
|
3127
|
-
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$
|
|
3127
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
|
|
3128
3128
|
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 }), a = /* @__PURE__ */ new Set();
|
|
3129
3129
|
(!r || r(t)) && h.write(s ? t : t.fullpath());
|
|
3130
3130
|
let l = [t], u = 0, c = () => {
|
|
@@ -3323,12 +3323,12 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3323
3323
|
for (let h of t) this.add(h);
|
|
3324
3324
|
}
|
|
3325
3325
|
add(t) {
|
|
3326
|
-
let e = new D
|
|
3326
|
+
let e = new D(t, this.mmopts);
|
|
3327
3327
|
for (let s = 0; s < e.set.length; s++) {
|
|
3328
3328
|
let i = e.set[s], r = e.globParts[s];
|
|
3329
3329
|
if (!i || !r) throw new Error("invalid pattern object");
|
|
3330
3330
|
for (; i[0] === "." && r[0] === ".";) i.shift(), r.shift();
|
|
3331
|
-
let o = new nt(i, r, 0, this.platform), h = new D
|
|
3331
|
+
let o = new nt(i, r, 0, this.platform), h = new D(o.globString(), this.mmopts), a = r[r.length - 1] === "**", l = o.isAbsolute();
|
|
3332
3332
|
l ? this.absolute.push(h) : this.relative.push(h), a && (l ? this.absoluteChildren.push(h) : this.relativeChildren.push(h));
|
|
3333
3333
|
}
|
|
3334
3334
|
}
|
|
@@ -3677,7 +3677,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3677
3677
|
}
|
|
3678
3678
|
};
|
|
3679
3679
|
Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
|
|
3680
|
-
I$
|
|
3680
|
+
I$1 = class {
|
|
3681
3681
|
absolute;
|
|
3682
3682
|
cwd;
|
|
3683
3683
|
root;
|
|
@@ -3740,7 +3740,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3740
3740
|
platform: this.platform,
|
|
3741
3741
|
windowsPathsNoEscape: this.windowsPathsNoEscape,
|
|
3742
3742
|
debug: !!this.opts.debug
|
|
3743
|
-
}, [o, h] = this.pattern.map((a) => new D
|
|
3743
|
+
}, [o, h] = this.pattern.map((a) => new D(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
|
|
3744
3744
|
this.patterns = o.map((a, l) => {
|
|
3745
3745
|
let u = h[l];
|
|
3746
3746
|
if (!u) throw new Error("invalid pattern object");
|
|
@@ -3798,7 +3798,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3798
3798
|
};
|
|
3799
3799
|
le$1 = (n, t = {}) => {
|
|
3800
3800
|
Array.isArray(n) || (n = [n]);
|
|
3801
|
-
for (let e of n) if (new D
|
|
3801
|
+
for (let e of n) if (new D(e, t).hasMagic()) return !0;
|
|
3802
3802
|
return !1;
|
|
3803
3803
|
};
|
|
3804
3804
|
ji = Bt;
|
|
@@ -3821,7 +3821,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
|
|
|
3821
3821
|
iterate: Bi,
|
|
3822
3822
|
globIterateSync: Ut,
|
|
3823
3823
|
iterateSync: zi,
|
|
3824
|
-
Glob: I$
|
|
3824
|
+
Glob: I$1,
|
|
3825
3825
|
hasMagic: le$1,
|
|
3826
3826
|
escape: tt,
|
|
3827
3827
|
unescape: W
|
|
@@ -5203,7 +5203,7 @@ function INIT_CWD() {
|
|
|
5203
5203
|
return process.env.INIT_CWD ?? process.cwd();
|
|
5204
5204
|
}
|
|
5205
5205
|
//#endregion
|
|
5206
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5206
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/common.js
|
|
5207
5207
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5208
5208
|
function isNothing(subject) {
|
|
5209
5209
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -5242,7 +5242,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5242
5242
|
module.exports.extend = extend;
|
|
5243
5243
|
}));
|
|
5244
5244
|
//#endregion
|
|
5245
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5245
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/exception.js
|
|
5246
5246
|
var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5247
5247
|
function formatError(exception, compact) {
|
|
5248
5248
|
let where = "";
|
|
@@ -5270,7 +5270,7 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5270
5270
|
module.exports = YAMLException;
|
|
5271
5271
|
}));
|
|
5272
5272
|
//#endregion
|
|
5273
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5273
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/snippet.js
|
|
5274
5274
|
var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5275
5275
|
const common = require_common();
|
|
5276
5276
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
@@ -5332,7 +5332,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5332
5332
|
module.exports = makeSnippet;
|
|
5333
5333
|
}));
|
|
5334
5334
|
//#endregion
|
|
5335
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5335
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type.js
|
|
5336
5336
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5337
5337
|
const YAMLException = require_exception();
|
|
5338
5338
|
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -5387,7 +5387,7 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5387
5387
|
module.exports = Type;
|
|
5388
5388
|
}));
|
|
5389
5389
|
//#endregion
|
|
5390
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5390
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema.js
|
|
5391
5391
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5392
5392
|
const YAMLException = require_exception();
|
|
5393
5393
|
const Type = require_type();
|
|
@@ -5455,7 +5455,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5455
5455
|
module.exports = Schema;
|
|
5456
5456
|
}));
|
|
5457
5457
|
//#endregion
|
|
5458
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5458
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/str.js
|
|
5459
5459
|
var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5460
5460
|
module.exports = new (require_type())("tag:yaml.org,2002:str", {
|
|
5461
5461
|
kind: "scalar",
|
|
@@ -5465,7 +5465,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5465
5465
|
});
|
|
5466
5466
|
}));
|
|
5467
5467
|
//#endregion
|
|
5468
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5468
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/seq.js
|
|
5469
5469
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5470
5470
|
module.exports = new (require_type())("tag:yaml.org,2002:seq", {
|
|
5471
5471
|
kind: "sequence",
|
|
@@ -5475,7 +5475,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5475
5475
|
});
|
|
5476
5476
|
}));
|
|
5477
5477
|
//#endregion
|
|
5478
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5478
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/map.js
|
|
5479
5479
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5480
5480
|
module.exports = new (require_type())("tag:yaml.org,2002:map", {
|
|
5481
5481
|
kind: "mapping",
|
|
@@ -5485,7 +5485,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5485
5485
|
});
|
|
5486
5486
|
}));
|
|
5487
5487
|
//#endregion
|
|
5488
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5488
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/failsafe.js
|
|
5489
5489
|
var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5490
5490
|
module.exports = new (require_schema())({ explicit: [
|
|
5491
5491
|
require_str(),
|
|
@@ -5494,7 +5494,7 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5494
5494
|
] });
|
|
5495
5495
|
}));
|
|
5496
5496
|
//#endregion
|
|
5497
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5497
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/null.js
|
|
5498
5498
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5499
5499
|
const Type = require_type();
|
|
5500
5500
|
function resolveYamlNull(data) {
|
|
@@ -5534,7 +5534,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5534
5534
|
});
|
|
5535
5535
|
}));
|
|
5536
5536
|
//#endregion
|
|
5537
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5537
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/bool.js
|
|
5538
5538
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5539
5539
|
const Type = require_type();
|
|
5540
5540
|
function resolveYamlBoolean(data) {
|
|
@@ -5568,7 +5568,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5568
5568
|
});
|
|
5569
5569
|
}));
|
|
5570
5570
|
//#endregion
|
|
5571
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5571
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/int.js
|
|
5572
5572
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5573
5573
|
const common = require_common();
|
|
5574
5574
|
const Type = require_type();
|
|
@@ -5677,7 +5677,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5677
5677
|
});
|
|
5678
5678
|
}));
|
|
5679
5679
|
//#endregion
|
|
5680
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5680
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/float.js
|
|
5681
5681
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5682
5682
|
const common = require_common();
|
|
5683
5683
|
const Type = require_type();
|
|
@@ -5731,7 +5731,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5731
5731
|
});
|
|
5732
5732
|
}));
|
|
5733
5733
|
//#endregion
|
|
5734
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5734
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/json.js
|
|
5735
5735
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5736
5736
|
module.exports = require_failsafe().extend({ implicit: [
|
|
5737
5737
|
require_null(),
|
|
@@ -5741,12 +5741,12 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5741
5741
|
] });
|
|
5742
5742
|
}));
|
|
5743
5743
|
//#endregion
|
|
5744
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5744
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/core.js
|
|
5745
5745
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5746
5746
|
module.exports = require_json();
|
|
5747
5747
|
}));
|
|
5748
5748
|
//#endregion
|
|
5749
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5749
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/timestamp.js
|
|
5750
5750
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5751
5751
|
const Type = require_type();
|
|
5752
5752
|
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
@@ -5797,7 +5797,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5797
5797
|
});
|
|
5798
5798
|
}));
|
|
5799
5799
|
//#endregion
|
|
5800
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5800
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/merge.js
|
|
5801
5801
|
var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5802
5802
|
const Type = require_type();
|
|
5803
5803
|
function resolveYamlMerge(data) {
|
|
@@ -5809,7 +5809,7 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5809
5809
|
});
|
|
5810
5810
|
}));
|
|
5811
5811
|
//#endregion
|
|
5812
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5812
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/binary.js
|
|
5813
5813
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5814
5814
|
const Type = require_type();
|
|
5815
5815
|
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
@@ -5896,14 +5896,14 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5896
5896
|
});
|
|
5897
5897
|
}));
|
|
5898
5898
|
//#endregion
|
|
5899
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5899
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/omap.js
|
|
5900
5900
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5901
5901
|
const Type = require_type();
|
|
5902
5902
|
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5903
5903
|
const _toString = Object.prototype.toString;
|
|
5904
5904
|
function resolveYamlOmap(data) {
|
|
5905
5905
|
if (data === null) return true;
|
|
5906
|
-
const objectKeys =
|
|
5906
|
+
const objectKeys = {};
|
|
5907
5907
|
const object = data;
|
|
5908
5908
|
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
5909
5909
|
const pair = object[index];
|
|
@@ -5915,8 +5915,8 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5915
5915
|
else return false;
|
|
5916
5916
|
}
|
|
5917
5917
|
if (!pairHasKey) return false;
|
|
5918
|
-
if (
|
|
5919
|
-
|
|
5918
|
+
if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
|
|
5919
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
5920
5920
|
}
|
|
5921
5921
|
return true;
|
|
5922
5922
|
}
|
|
@@ -5930,7 +5930,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5930
5930
|
});
|
|
5931
5931
|
}));
|
|
5932
5932
|
//#endregion
|
|
5933
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5933
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/pairs.js
|
|
5934
5934
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5935
5935
|
const Type = require_type();
|
|
5936
5936
|
const _toString = Object.prototype.toString;
|
|
@@ -5965,7 +5965,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5965
5965
|
});
|
|
5966
5966
|
}));
|
|
5967
5967
|
//#endregion
|
|
5968
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5968
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/set.js
|
|
5969
5969
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5970
5970
|
const Type = require_type();
|
|
5971
5971
|
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -5987,7 +5987,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5987
5987
|
});
|
|
5988
5988
|
}));
|
|
5989
5989
|
//#endregion
|
|
5990
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
5990
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/default.js
|
|
5991
5991
|
var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5992
5992
|
module.exports = require_core().extend({
|
|
5993
5993
|
implicit: [require_timestamp(), require_merge$1()],
|
|
@@ -6000,7 +6000,7 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6000
6000
|
});
|
|
6001
6001
|
}));
|
|
6002
6002
|
//#endregion
|
|
6003
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
6003
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/loader.js
|
|
6004
6004
|
var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6005
6005
|
const common = require_common();
|
|
6006
6006
|
const YAMLException = require_exception();
|
|
@@ -7028,7 +7028,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7028
7028
|
module.exports.load = load;
|
|
7029
7029
|
}));
|
|
7030
7030
|
//#endregion
|
|
7031
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
7031
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/dumper.js
|
|
7032
7032
|
var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7033
7033
|
const common = require_common();
|
|
7034
7034
|
const YAMLException = require_exception();
|
|
@@ -7527,7 +7527,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7527
7527
|
module.exports.dump = dump;
|
|
7528
7528
|
}));
|
|
7529
7529
|
//#endregion
|
|
7530
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.3.
|
|
7530
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/index.js
|
|
7531
7531
|
var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7532
7532
|
const loader = require_loader();
|
|
7533
7533
|
const dumper = require_dumper();
|
|
@@ -8468,6 +8468,39 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8468
8468
|
exports.cosmiconfigSync = cosmiconfigSync;
|
|
8469
8469
|
}));
|
|
8470
8470
|
//#endregion
|
|
8471
|
+
//#region ../../node_modules/.pnpm/cosmiconfig-typescript-loader@6.3.0_@types+node@26.2.0_cosmiconfig@10.0.0_typescript@6.0.3/node_modules/cosmiconfig-typescript-loader/dist/esm/typescript-compile-error.mjs
|
|
8472
|
+
var TypeScriptCompileError = class _TypeScriptCompileError extends Error {
|
|
8473
|
+
constructor(message) {
|
|
8474
|
+
super(message);
|
|
8475
|
+
this.name = this.constructor.name;
|
|
8476
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
8477
|
+
}
|
|
8478
|
+
static fromError(error) {
|
|
8479
|
+
const message = `TypeScriptLoader failed to compile TypeScript:
|
|
8480
|
+
${error.message}`;
|
|
8481
|
+
const newError = new _TypeScriptCompileError(message);
|
|
8482
|
+
newError.stack = error.stack;
|
|
8483
|
+
return newError;
|
|
8484
|
+
}
|
|
8485
|
+
};
|
|
8486
|
+
//#endregion
|
|
8487
|
+
//#region ../../node_modules/.pnpm/cosmiconfig-typescript-loader@6.3.0_@types+node@26.2.0_cosmiconfig@10.0.0_typescript@6.0.3/node_modules/cosmiconfig-typescript-loader/dist/esm/loader.mjs
|
|
8488
|
+
function TypeScriptLoader(options) {
|
|
8489
|
+
const loader = createJiti("", {
|
|
8490
|
+
interopDefault: true,
|
|
8491
|
+
...options
|
|
8492
|
+
});
|
|
8493
|
+
return async (path, _content) => {
|
|
8494
|
+
try {
|
|
8495
|
+
const result = await loader.import(path);
|
|
8496
|
+
return result.default || result;
|
|
8497
|
+
} catch (error) {
|
|
8498
|
+
if (error instanceof Error) throw TypeScriptCompileError.fromError(error);
|
|
8499
|
+
throw error;
|
|
8500
|
+
}
|
|
8501
|
+
};
|
|
8502
|
+
}
|
|
8503
|
+
//#endregion
|
|
8471
8504
|
//#region src/lib/ruleCommandRegistry.ts
|
|
8472
8505
|
const RULE_COMMANDS = {
|
|
8473
8506
|
apiExposure: {
|
|
@@ -8478,7 +8511,7 @@ const RULE_COMMANDS = {
|
|
|
8478
8511
|
},
|
|
8479
8512
|
check: {
|
|
8480
8513
|
command: "check",
|
|
8481
|
-
includeInRoot:
|
|
8514
|
+
includeInRoot: false,
|
|
8482
8515
|
title: "Check Rules"
|
|
8483
8516
|
},
|
|
8484
8517
|
clean: {
|
|
@@ -8498,6 +8531,12 @@ const RULE_COMMANDS = {
|
|
|
8498
8531
|
includeInRoot: true,
|
|
8499
8532
|
title: "Dead Rules"
|
|
8500
8533
|
},
|
|
8534
|
+
dependabot: {
|
|
8535
|
+
command: "secure dependabot",
|
|
8536
|
+
configKey: "dependabot",
|
|
8537
|
+
includeInRoot: true,
|
|
8538
|
+
title: "Dependabot Rules"
|
|
8539
|
+
},
|
|
8501
8540
|
deplint: {
|
|
8502
8541
|
command: "deplint",
|
|
8503
8542
|
configKey: "deplint",
|
|
@@ -8519,7 +8558,7 @@ const RULE_COMMANDS = {
|
|
|
8519
8558
|
lint: {
|
|
8520
8559
|
aliases: ["relint"],
|
|
8521
8560
|
command: "lint",
|
|
8522
|
-
includeInRoot:
|
|
8561
|
+
includeInRoot: false,
|
|
8523
8562
|
title: "Lint Rules"
|
|
8524
8563
|
},
|
|
8525
8564
|
lintLint: {
|
|
@@ -11130,29 +11169,29 @@ const entryOutputBasename = (entry, entryMode) => {
|
|
|
11130
11169
|
//#region ../../node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
|
|
11131
11170
|
const A = (r) => r !== null && typeof r == "object";
|
|
11132
11171
|
const a = (r, t) => Object.assign(/* @__PURE__ */ new Error(`[${r}]: ${t}`), { code: r });
|
|
11133
|
-
const _
|
|
11134
|
-
const E$
|
|
11135
|
-
const I
|
|
11136
|
-
const R$
|
|
11137
|
-
const O$
|
|
11138
|
-
const w
|
|
11139
|
-
var h
|
|
11172
|
+
const _ = "ERR_INVALID_PACKAGE_CONFIG";
|
|
11173
|
+
const E$1 = "ERR_INVALID_PACKAGE_TARGET";
|
|
11174
|
+
const I = "ERR_PACKAGE_PATH_NOT_EXPORTED";
|
|
11175
|
+
const R$1 = /^\d+$/;
|
|
11176
|
+
const O$1 = /^(\.{1,2}|node_modules)$/i;
|
|
11177
|
+
const w = /\/|\\/;
|
|
11178
|
+
var h = ((r) => (r.Export = "exports", r.Import = "imports", r))(h || {});
|
|
11140
11179
|
const f = (r, t, e, o, c) => {
|
|
11141
11180
|
if (t == null) return [];
|
|
11142
11181
|
if (typeof t == "string") {
|
|
11143
|
-
const [n, ...i] = t.split(w
|
|
11144
|
-
if (n === ".." || i.some((l) => O$
|
|
11182
|
+
const [n, ...i] = t.split(w);
|
|
11183
|
+
if (n === ".." || i.some((l) => O$1.test(l))) throw a(E$1, `Invalid "${r}" target "${t}" defined in the package config`);
|
|
11145
11184
|
return [c ? t.replace(/\*/g, c) : t];
|
|
11146
11185
|
}
|
|
11147
11186
|
if (Array.isArray(t)) return t.flatMap((n) => f(r, n, e, o, c));
|
|
11148
11187
|
if (A(t)) {
|
|
11149
11188
|
for (const n of Object.keys(t)) {
|
|
11150
|
-
if (R$
|
|
11189
|
+
if (R$1.test(n)) throw a(_, "Cannot contain numeric property keys");
|
|
11151
11190
|
if (n === "default" || o.includes(n)) return f(r, t[n], e, o, c);
|
|
11152
11191
|
}
|
|
11153
11192
|
return [];
|
|
11154
11193
|
}
|
|
11155
|
-
throw a(E$
|
|
11194
|
+
throw a(E$1, `Invalid "${r}" target "${t}"`);
|
|
11156
11195
|
};
|
|
11157
11196
|
const s = "*";
|
|
11158
11197
|
const m = (r, t) => {
|
|
@@ -11174,15 +11213,15 @@ function d(r, t) {
|
|
|
11174
11213
|
const p = (r) => Object.keys(r).reduce((t, e) => {
|
|
11175
11214
|
const o = e === "" || e[0] !== ".";
|
|
11176
11215
|
if (t === void 0 || t === o) return o;
|
|
11177
|
-
throw a(_
|
|
11216
|
+
throw a(_, "\"exports\" cannot contain some keys starting with \".\" and some not");
|
|
11178
11217
|
}, void 0);
|
|
11179
|
-
const u
|
|
11180
|
-
const v
|
|
11218
|
+
const u = /^\w+:/;
|
|
11219
|
+
const v = (r, t, e) => {
|
|
11181
11220
|
if (!r) throw new Error("\"exports\" is required");
|
|
11182
11221
|
t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
|
|
11183
|
-
const [o, c] = d(r, t), n = f(h
|
|
11184
|
-
if (n.length === 0) throw a(I
|
|
11185
|
-
for (const i of n) if (!i.startsWith("./") && !u
|
|
11222
|
+
const [o, c] = d(r, t), n = f(h.Export, r[o], t, e, c);
|
|
11223
|
+
if (n.length === 0) throw a(I, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
|
|
11224
|
+
for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E$1, `Invalid "exports" target "${i}" defined in the package config`);
|
|
11186
11225
|
return n;
|
|
11187
11226
|
};
|
|
11188
11227
|
//#endregion
|
|
@@ -11213,7 +11252,7 @@ const Pe$1 = i((...[e, t]) => {
|
|
|
11213
11252
|
if (typeof s != "string") throw new TypeError(`Unexpected resolved path type for ${s} in ${t}`);
|
|
11214
11253
|
return s;
|
|
11215
11254
|
}, "realpath");
|
|
11216
|
-
const O
|
|
11255
|
+
const O = i((e, t, s) => {
|
|
11217
11256
|
for (;;) {
|
|
11218
11257
|
const n = PATH.posix.join(e, t);
|
|
11219
11258
|
if (x$1(s, n)) return n;
|
|
@@ -11222,10 +11261,10 @@ const O$1 = i((e, t, s) => {
|
|
|
11222
11261
|
e = o;
|
|
11223
11262
|
}
|
|
11224
11263
|
}, "findUp");
|
|
11225
|
-
const C
|
|
11264
|
+
const C = /^\.{1,2}(\/.*)?$/;
|
|
11226
11265
|
const X = i((e) => {
|
|
11227
11266
|
const t = L(e);
|
|
11228
|
-
return C
|
|
11267
|
+
return C.test(t) ? t : `./${t}`;
|
|
11229
11268
|
}, "normalizeRelativePath");
|
|
11230
11269
|
function We(e, t = !1) {
|
|
11231
11270
|
const s = e.length;
|
|
@@ -11250,12 +11289,12 @@ function We(e, t = !1) {
|
|
|
11250
11289
|
function D() {
|
|
11251
11290
|
let c = n;
|
|
11252
11291
|
if (e.charCodeAt(n) === 48) n++;
|
|
11253
|
-
else for (n++; n < e.length && R
|
|
11254
|
-
if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && R
|
|
11292
|
+
else for (n++; n < e.length && R(e.charCodeAt(n));) n++;
|
|
11293
|
+
if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && R(e.charCodeAt(n))) for (n++; n < e.length && R(e.charCodeAt(n));) n++;
|
|
11255
11294
|
else return b = 3, e.substring(c, n);
|
|
11256
11295
|
let j = n;
|
|
11257
|
-
if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && R
|
|
11258
|
-
for (n++; n < e.length && R
|
|
11296
|
+
if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && R(e.charCodeAt(n))) {
|
|
11297
|
+
for (n++; n < e.length && R(e.charCodeAt(n));) n++;
|
|
11259
11298
|
j = n;
|
|
11260
11299
|
} else b = 3;
|
|
11261
11300
|
return e.substring(c, j);
|
|
@@ -11362,7 +11401,7 @@ function We(e, t = !1) {
|
|
|
11362
11401
|
return A || (n++, b = 1), o = e.substring(j, n), r = 13;
|
|
11363
11402
|
}
|
|
11364
11403
|
return o += String.fromCharCode(c), n++, r = 16;
|
|
11365
|
-
case 45: if (o += String.fromCharCode(c), n++, n === s || !R
|
|
11404
|
+
case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return r = 16;
|
|
11366
11405
|
case 48:
|
|
11367
11406
|
case 49:
|
|
11368
11407
|
case 50:
|
|
@@ -11431,19 +11470,19 @@ function J(e) {
|
|
|
11431
11470
|
return e === 10 || e === 13;
|
|
11432
11471
|
}
|
|
11433
11472
|
i(J, "isLineBreak");
|
|
11434
|
-
function R
|
|
11473
|
+
function R(e) {
|
|
11435
11474
|
return e >= 48 && e <= 57;
|
|
11436
11475
|
}
|
|
11437
|
-
i(R
|
|
11476
|
+
i(R, "isDigit");
|
|
11438
11477
|
var ge;
|
|
11439
11478
|
(function(e) {
|
|
11440
11479
|
e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
|
|
11441
11480
|
})(ge || (ge = {})), new Array(20).fill(0).map((e, t) => " ".repeat(t));
|
|
11442
|
-
const S
|
|
11443
|
-
new Array(S
|
|
11444
|
-
` + " ".repeat(t)), new Array(S
|
|
11445
|
-
` + " ".repeat(t)), new Array(S
|
|
11446
|
-
` + " ".repeat(t)), new Array(S
|
|
11481
|
+
const S = 200;
|
|
11482
|
+
new Array(S).fill(0).map((e, t) => `
|
|
11483
|
+
` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
|
|
11484
|
+
` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `
|
|
11485
|
+
` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
|
|
11447
11486
|
` + " ".repeat(t));
|
|
11448
11487
|
var Y;
|
|
11449
11488
|
(function(e) {
|
|
@@ -11641,7 +11680,7 @@ var we;
|
|
|
11641
11680
|
})(we || (we = {}));
|
|
11642
11681
|
const de = i((e, t) => Ve(Se(t, e, "utf8")), "readJsonc");
|
|
11643
11682
|
const ne = Symbol("implicitBaseUrl");
|
|
11644
|
-
const E
|
|
11683
|
+
const E = "${configDir}";
|
|
11645
11684
|
const ze = i(() => {
|
|
11646
11685
|
const { findPnpApi: e } = Be;
|
|
11647
11686
|
return e && e(process.cwd());
|
|
@@ -11653,7 +11692,7 @@ const te = i((e, t, s, n) => {
|
|
|
11653
11692
|
if (!l) return;
|
|
11654
11693
|
let r = t || "tsconfig.json";
|
|
11655
11694
|
if (!s && l.exports) try {
|
|
11656
|
-
const [f] = v
|
|
11695
|
+
const [f] = v(l.exports, t, ["require", "types"]);
|
|
11657
11696
|
r = f;
|
|
11658
11697
|
} catch {
|
|
11659
11698
|
return !1;
|
|
@@ -11696,7 +11735,7 @@ const Ge = i((e, t, s) => {
|
|
|
11696
11735
|
}
|
|
11697
11736
|
} catch {}
|
|
11698
11737
|
}
|
|
11699
|
-
const d = O
|
|
11738
|
+
const d = O(PATH.resolve(t), PATH.join("node_modules", f), s);
|
|
11700
11739
|
if (!d || !((n = H(s, d)) != null && n.isDirectory())) return;
|
|
11701
11740
|
const b = Pe$1(s, d), _ = PATH.join(b, se);
|
|
11702
11741
|
if (x$1(s, _)) {
|
|
@@ -11727,7 +11766,7 @@ const pe = [
|
|
|
11727
11766
|
"include",
|
|
11728
11767
|
"exclude"
|
|
11729
11768
|
];
|
|
11730
|
-
const N
|
|
11769
|
+
const N = i((e, t, s) => {
|
|
11731
11770
|
const n = PATH.join(t, s);
|
|
11732
11771
|
return L(PATH.relative(e, n)) || "./";
|
|
11733
11772
|
}, "resolveAndRelativize");
|
|
@@ -11746,21 +11785,21 @@ const He = i((e, t, s, n) => {
|
|
|
11746
11785
|
const { compilerOptions: f } = r;
|
|
11747
11786
|
if (f) {
|
|
11748
11787
|
const { baseUrl: u } = f;
|
|
11749
|
-
u && !u.startsWith(E
|
|
11788
|
+
u && !u.startsWith(E) && (f.baseUrl = N(t, l, u));
|
|
11750
11789
|
const { outDir: g } = f;
|
|
11751
|
-
g && !g.startsWith(E
|
|
11790
|
+
g && !g.startsWith(E) && (f.outDir = N(t, l, g));
|
|
11752
11791
|
const { declarationDir: d } = f;
|
|
11753
|
-
d && !d.startsWith(E
|
|
11792
|
+
d && !d.startsWith(E) && (f.declarationDir = N(t, l, d));
|
|
11754
11793
|
const { rootDir: b } = f;
|
|
11755
|
-
b && !b.startsWith(E
|
|
11794
|
+
b && !b.startsWith(E) && (f.rootDir = N(t, l, b));
|
|
11756
11795
|
const { rootDirs: _ } = f;
|
|
11757
|
-
_ && (f.rootDirs = _.map((D) => D.startsWith(E
|
|
11796
|
+
_ && (f.rootDirs = _.map((D) => D.startsWith(E) ? D : N(t, l, D)));
|
|
11758
11797
|
const { typeRoots: h } = f;
|
|
11759
|
-
h && (f.typeRoots = h.map((D) => D.startsWith(E
|
|
11798
|
+
h && (f.typeRoots = h.map((D) => D.startsWith(E) ? D : N(t, l, D)));
|
|
11760
11799
|
}
|
|
11761
11800
|
for (const u of pe) {
|
|
11762
11801
|
const g = r[u];
|
|
11763
|
-
g && (r[u] = g.map((d) => d.startsWith(E
|
|
11802
|
+
g && (r[u] = g.map((d) => d.startsWith(E) ? d : Qe(t, l, d)));
|
|
11764
11803
|
}
|
|
11765
11804
|
return r;
|
|
11766
11805
|
}, "resolveExtends");
|
|
@@ -11800,24 +11839,24 @@ const ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
|
11800
11839
|
const { compilerOptions: l } = n;
|
|
11801
11840
|
for (const f of ["baseUrl", "rootDir"]) {
|
|
11802
11841
|
const u = l[f];
|
|
11803
|
-
if (u && !u.startsWith(E
|
|
11842
|
+
if (u && !u.startsWith(E)) {
|
|
11804
11843
|
const g = PATH.resolve(o, u);
|
|
11805
11844
|
l[f] = oe(o, g);
|
|
11806
11845
|
}
|
|
11807
11846
|
}
|
|
11808
11847
|
for (const f of be) {
|
|
11809
11848
|
let u = l[f];
|
|
11810
|
-
u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E
|
|
11849
|
+
u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = X(u)), l[f] = u);
|
|
11811
11850
|
}
|
|
11812
11851
|
} else n.compilerOptions = {};
|
|
11813
|
-
if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E
|
|
11852
|
+
if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E) ? l : X(l))), n.watchOptions) {
|
|
11814
11853
|
const { watchOptions: l } = n;
|
|
11815
11854
|
l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((r) => L(PATH.resolve(o, r)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((r) => L(PATH.resolve(o, r)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
|
|
11816
11855
|
}
|
|
11817
11856
|
return n;
|
|
11818
11857
|
}, "_parseTsconfig");
|
|
11819
11858
|
const Z = i((e, t) => {
|
|
11820
|
-
if (e.startsWith(E
|
|
11859
|
+
if (e.startsWith(E)) return L(PATH.join(t, e.slice(12)));
|
|
11821
11860
|
}, "interpolateConfigDir");
|
|
11822
11861
|
const Xe = [
|
|
11823
11862
|
"outDir",
|
|
@@ -11976,7 +12015,7 @@ const Te = q((e) => {
|
|
|
11976
12015
|
const n = PATH.resolve(e);
|
|
11977
12016
|
let o = L(e);
|
|
11978
12017
|
for (;;) {
|
|
11979
|
-
const l = O
|
|
12018
|
+
const l = O(o, t, s);
|
|
11980
12019
|
if (!l) return;
|
|
11981
12020
|
const r = PATH.resolve(l), f = ie(r, s), u = {
|
|
11982
12021
|
path: L(r),
|
|
@@ -11989,7 +12028,7 @@ const Te = q((e) => {
|
|
|
11989
12028
|
}
|
|
11990
12029
|
}, "findConfigApplicable"), Le = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
|
|
11991
12030
|
var o;
|
|
11992
|
-
return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O
|
|
12031
|
+
return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O(L(e), t, s);
|
|
11993
12032
|
}, "findTsconfig"), tn = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
|
|
11994
12033
|
var o;
|
|
11995
12034
|
if (!n) {
|
|
@@ -12016,7 +12055,7 @@ const Te = q((e) => {
|
|
|
12016
12055
|
}, "parsePattern"), on = i(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), rn = i((e, t, s) => Object.entries(e).map(([n, o]) => (Ee(n, `Pattern '${n}' can have at most one '*' character.`), {
|
|
12017
12056
|
pattern: ln(n),
|
|
12018
12057
|
substitutions: o.map((l) => {
|
|
12019
|
-
if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C
|
|
12058
|
+
if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C.test(l) && !PATH.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
|
|
12020
12059
|
return PATH.resolve(s, l);
|
|
12021
12060
|
})
|
|
12022
12061
|
})), "parsePaths");
|
|
@@ -12027,7 +12066,7 @@ i((e) => {
|
|
|
12027
12066
|
if (!s && !n) return null;
|
|
12028
12067
|
const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), r = n ? rn(n, s, l) : [];
|
|
12029
12068
|
return (f) => {
|
|
12030
|
-
if (C
|
|
12069
|
+
if (C.test(f)) return [];
|
|
12031
12070
|
const u = [];
|
|
12032
12071
|
for (const _ of r) {
|
|
12033
12072
|
if (_.pattern === f) return _.substitutions.map(L);
|
|
@@ -12297,6 +12336,10 @@ const warnDeprecatedEmptyObjectTargets = (targets) => {
|
|
|
12297
12336
|
* `compile.nativePackage`.
|
|
12298
12337
|
*/
|
|
12299
12338
|
const DEFAULT_NATIVE_PACKAGE = "typescript-native";
|
|
12339
|
+
/**
|
|
12340
|
+
* Full `package.json` alias spec for {@link DEFAULT_NATIVE_PACKAGE}.
|
|
12341
|
+
*/
|
|
12342
|
+
const DEFAULT_NATIVE_ALIAS_SPEC = `npm:typescript@~7.0.2`;
|
|
12300
12343
|
const readTscBinEntry = (packageJsonPath) => {
|
|
12301
12344
|
const { bin } = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
12302
12345
|
if (typeof bin === "string") return bin;
|
|
@@ -12338,7 +12381,8 @@ const resolveCached = (packageName, fromDir) => {
|
|
|
12338
12381
|
const missingNativeMessage = (packageName) => [
|
|
12339
12382
|
`Compile: compile.compiler is "native" but "${packageName}" is not installed.`,
|
|
12340
12383
|
" Add it as an alias so it does not collide with the compiler API package:",
|
|
12341
|
-
` "${packageName}": "
|
|
12384
|
+
` "${packageName}": "${DEFAULT_NATIVE_ALIAS_SPEC}"`,
|
|
12385
|
+
" Or run: xy enable ts-native",
|
|
12342
12386
|
" Keep \"typescript\" pinned to 6.x — ESLint and the xy analyzers load the compiler API from it."
|
|
12343
12387
|
].join("\n");
|
|
12344
12388
|
/**
|
|
@@ -15202,45 +15246,45 @@ function cloneResolvedPublintRules(rules) {
|
|
|
15202
15246
|
};
|
|
15203
15247
|
}
|
|
15204
15248
|
//#endregion
|
|
15205
|
-
//#region ../../node_modules/.pnpm/tinyexec@1.
|
|
15206
|
-
function
|
|
15207
|
-
for (const
|
|
15208
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
15209
|
-
const
|
|
15210
|
-
if (!
|
|
15249
|
+
//#region ../../node_modules/.pnpm/tinyexec@1.3.0/node_modules/tinyexec/dist/main.mjs
|
|
15250
|
+
function getPathFromEnv(env) {
|
|
15251
|
+
for (const key in env) {
|
|
15252
|
+
if (!Object.prototype.hasOwnProperty.call(env, key) || !isPathLikePattern.test(key)) continue;
|
|
15253
|
+
const value = env[key];
|
|
15254
|
+
if (!value) return defaultEnvPathInfo;
|
|
15211
15255
|
return {
|
|
15212
|
-
key
|
|
15213
|
-
value
|
|
15256
|
+
key,
|
|
15257
|
+
value
|
|
15214
15258
|
};
|
|
15215
15259
|
}
|
|
15216
|
-
return
|
|
15260
|
+
return defaultEnvPathInfo;
|
|
15217
15261
|
}
|
|
15218
|
-
function
|
|
15219
|
-
const
|
|
15220
|
-
const
|
|
15221
|
-
let
|
|
15222
|
-
let
|
|
15262
|
+
function addNodeBinToPath(cwd, path) {
|
|
15263
|
+
const parts = path.value.split(delimiter);
|
|
15264
|
+
const nodeBinPaths = [];
|
|
15265
|
+
let currentPath = cwd;
|
|
15266
|
+
let lastPath;
|
|
15223
15267
|
do {
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
} while (
|
|
15228
|
-
|
|
15229
|
-
const
|
|
15268
|
+
nodeBinPaths.push(resolve(currentPath, "node_modules", ".bin"));
|
|
15269
|
+
lastPath = currentPath;
|
|
15270
|
+
currentPath = dirname(currentPath);
|
|
15271
|
+
} while (currentPath !== lastPath);
|
|
15272
|
+
nodeBinPaths.push(dirname(process.execPath));
|
|
15273
|
+
const newPath = nodeBinPaths.concat(parts).join(delimiter);
|
|
15230
15274
|
return {
|
|
15231
|
-
key:
|
|
15232
|
-
value:
|
|
15275
|
+
key: path.key,
|
|
15276
|
+
value: newPath
|
|
15233
15277
|
};
|
|
15234
15278
|
}
|
|
15235
|
-
function
|
|
15236
|
-
const
|
|
15279
|
+
function computeEnv(cwd, env, nodePath = true) {
|
|
15280
|
+
const envWithDefault = {
|
|
15237
15281
|
...process.env,
|
|
15238
|
-
...
|
|
15282
|
+
...env
|
|
15239
15283
|
};
|
|
15240
|
-
if (!
|
|
15241
|
-
const
|
|
15242
|
-
|
|
15243
|
-
return
|
|
15284
|
+
if (!nodePath) return envWithDefault;
|
|
15285
|
+
const envPathInfo = addNodeBinToPath(cwd, getPathFromEnv(envWithDefault));
|
|
15286
|
+
envWithDefault[envPathInfo.key] = envPathInfo.value;
|
|
15287
|
+
return envWithDefault;
|
|
15244
15288
|
}
|
|
15245
15289
|
/**
|
|
15246
15290
|
* Normalizes the command and arguments to work cross-platform.
|
|
@@ -15248,157 +15292,168 @@ function y(e, t, n = true) {
|
|
|
15248
15292
|
* `node_modules/.bin` commands, and escaping meta characters.
|
|
15249
15293
|
* On other platforms, it just returns the command and arguments as-is.
|
|
15250
15294
|
*/
|
|
15251
|
-
function
|
|
15252
|
-
if (
|
|
15253
|
-
command
|
|
15254
|
-
args
|
|
15255
|
-
options
|
|
15295
|
+
function normalizeSpawnCommand(command, args = [], options = {}) {
|
|
15296
|
+
if (options.shell === true || !isWindows) return {
|
|
15297
|
+
command,
|
|
15298
|
+
args,
|
|
15299
|
+
options
|
|
15256
15300
|
};
|
|
15257
|
-
let
|
|
15258
|
-
let
|
|
15259
|
-
if (
|
|
15260
|
-
const
|
|
15261
|
-
const
|
|
15262
|
-
let
|
|
15301
|
+
let file = resolveCommand(command, options);
|
|
15302
|
+
let shebang = null;
|
|
15303
|
+
if (file !== null) {
|
|
15304
|
+
const size = 150;
|
|
15305
|
+
const buffer = Buffer.alloc(size);
|
|
15306
|
+
let fd = null;
|
|
15263
15307
|
try {
|
|
15264
|
-
|
|
15265
|
-
readSync(
|
|
15308
|
+
fd = openSync(file, "r");
|
|
15309
|
+
readSync(fd, buffer, 0, size, 0);
|
|
15266
15310
|
} catch {} finally {
|
|
15267
|
-
if (
|
|
15268
|
-
}
|
|
15269
|
-
const
|
|
15270
|
-
if (
|
|
15271
|
-
const
|
|
15272
|
-
const
|
|
15273
|
-
const
|
|
15274
|
-
const
|
|
15275
|
-
const
|
|
15276
|
-
|
|
15277
|
-
}
|
|
15278
|
-
}
|
|
15279
|
-
if (
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
}
|
|
15284
|
-
if (
|
|
15285
|
-
const
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
if (
|
|
15294
|
-
return
|
|
15311
|
+
if (fd !== null) closeSync(fd);
|
|
15312
|
+
}
|
|
15313
|
+
const match = buffer.toString().match(shebangRegExp);
|
|
15314
|
+
if (match !== null) {
|
|
15315
|
+
const line = match[1].trim();
|
|
15316
|
+
const separatorIndex = line.indexOf(" ");
|
|
15317
|
+
const path = separatorIndex !== -1 ? line.slice(0, separatorIndex) : line;
|
|
15318
|
+
const argument = separatorIndex !== -1 ? line.slice(separatorIndex + 1) : "";
|
|
15319
|
+
const binary = basename(path);
|
|
15320
|
+
shebang = binary === "env" ? argument || null : binary;
|
|
15321
|
+
}
|
|
15322
|
+
}
|
|
15323
|
+
if (shebang !== null && file !== null) {
|
|
15324
|
+
args = [file, ...args];
|
|
15325
|
+
command = shebang;
|
|
15326
|
+
file = resolveCommand(command, options);
|
|
15327
|
+
}
|
|
15328
|
+
if (file === null || !isWindowsExecutableRegExp.test(file)) {
|
|
15329
|
+
const needsDoubleEscapeMetaChars = file !== null && isNodeModulesCmdRegExp.test(file);
|
|
15330
|
+
command = normalize(command);
|
|
15331
|
+
command = command.replace(metaCharsRegExp, "^$1");
|
|
15332
|
+
args = args.map((arg) => {
|
|
15333
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
|
|
15334
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
15335
|
+
arg = `"${arg}"`;
|
|
15336
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
15337
|
+
if (needsDoubleEscapeMetaChars) arg = arg.replace(metaCharsRegExp, "^$1");
|
|
15338
|
+
return arg;
|
|
15295
15339
|
});
|
|
15296
|
-
|
|
15340
|
+
args = [
|
|
15297
15341
|
"/d",
|
|
15298
15342
|
"/s",
|
|
15299
15343
|
"/c",
|
|
15300
|
-
`"${[
|
|
15344
|
+
`"${[command, ...args].join(" ")}"`
|
|
15301
15345
|
];
|
|
15302
|
-
|
|
15303
|
-
|
|
15304
|
-
...
|
|
15346
|
+
command = options.env?.comspec ?? "cmd.exe";
|
|
15347
|
+
options = {
|
|
15348
|
+
...options,
|
|
15305
15349
|
windowsVerbatimArguments: true
|
|
15306
15350
|
};
|
|
15307
15351
|
}
|
|
15308
15352
|
return {
|
|
15309
|
-
command
|
|
15310
|
-
args
|
|
15311
|
-
options
|
|
15353
|
+
command,
|
|
15354
|
+
args,
|
|
15355
|
+
options
|
|
15312
15356
|
};
|
|
15313
15357
|
}
|
|
15314
15358
|
/**
|
|
15315
15359
|
* Resolves the command to an absolute path if possible.
|
|
15316
15360
|
* Handles things like traversing PATH and adding extensions from PATHEXT
|
|
15317
15361
|
*/
|
|
15318
|
-
function
|
|
15319
|
-
const
|
|
15320
|
-
const
|
|
15321
|
-
const
|
|
15322
|
-
const
|
|
15323
|
-
|
|
15324
|
-
if (
|
|
15325
|
-
for (const
|
|
15326
|
-
const
|
|
15327
|
-
for (const
|
|
15328
|
-
const
|
|
15362
|
+
function resolveCommand(command, options) {
|
|
15363
|
+
const cwd$3 = (options.cwd ?? cwd()).toString();
|
|
15364
|
+
const env = options.env ?? process.env;
|
|
15365
|
+
const PATH = getPathFromEnv(env).value;
|
|
15366
|
+
const pathEnv = command.includes("/") || command.includes("\\") ? [""] : [cwd$3, ...PATH.split(delimiter)];
|
|
15367
|
+
let pathExt = env.PATHEXT ? env.PATHEXT.split(delimiter) : defaultPathExt;
|
|
15368
|
+
if (command.includes(".") && pathExt[0] !== "") pathExt = ["", ...pathExt];
|
|
15369
|
+
for (const extensions of [pathExt, noPathExt]) for (const path of pathEnv) {
|
|
15370
|
+
const dest = resolve(cwd$3, path.startsWith("\"") && path.endsWith("\"") && path.length > 1 ? path.slice(1, -1) : path, command);
|
|
15371
|
+
for (const ext of extensions) {
|
|
15372
|
+
const destWithExt = dest + ext;
|
|
15329
15373
|
try {
|
|
15330
|
-
if (statSync(
|
|
15374
|
+
if (statSync(destWithExt).isFile()) return destWithExt;
|
|
15331
15375
|
} catch {}
|
|
15332
15376
|
}
|
|
15333
15377
|
}
|
|
15334
15378
|
return null;
|
|
15335
15379
|
}
|
|
15336
|
-
function
|
|
15337
|
-
const
|
|
15338
|
-
for (const
|
|
15339
|
-
if (
|
|
15340
|
-
|
|
15341
|
-
return
|
|
15380
|
+
function combineSignals(signals) {
|
|
15381
|
+
const controller = new AbortController();
|
|
15382
|
+
for (const signal of signals) {
|
|
15383
|
+
if (signal.aborted) {
|
|
15384
|
+
controller.abort();
|
|
15385
|
+
return signal;
|
|
15342
15386
|
}
|
|
15343
|
-
const
|
|
15344
|
-
|
|
15387
|
+
const onAbort = () => {
|
|
15388
|
+
controller.abort(signal.reason);
|
|
15345
15389
|
};
|
|
15346
|
-
|
|
15390
|
+
signal.addEventListener("abort", onAbort, { signal: controller.signal });
|
|
15347
15391
|
}
|
|
15348
|
-
return
|
|
15392
|
+
return controller.signal;
|
|
15349
15393
|
}
|
|
15350
|
-
async function
|
|
15351
|
-
let
|
|
15394
|
+
async function readStream(stream) {
|
|
15395
|
+
let output = "";
|
|
15352
15396
|
try {
|
|
15353
|
-
for await (const
|
|
15397
|
+
for await (const chunk of stream) output += chunk.toString();
|
|
15354
15398
|
} catch {}
|
|
15355
|
-
return
|
|
15399
|
+
return output;
|
|
15356
15400
|
}
|
|
15357
|
-
var
|
|
15401
|
+
var isPathLikePattern, defaultEnvPathInfo, combineStreams, metaCharsRegExp, shebangRegExp, isWindowsExecutableRegExp, isNodeModulesCmdRegExp, isWindows, defaultPathExt, noPathExt, NonZeroExitError, defaultOptions, defaultNodeOptions, ExecProcess, x, exec;
|
|
15358
15402
|
var init_main = __esmMin((() => {
|
|
15359
|
-
|
|
15360
|
-
|
|
15403
|
+
isPathLikePattern = /^path$/i;
|
|
15404
|
+
defaultEnvPathInfo = {
|
|
15361
15405
|
key: "PATH",
|
|
15362
15406
|
value: ""
|
|
15363
15407
|
};
|
|
15364
|
-
|
|
15365
|
-
let
|
|
15366
|
-
const
|
|
15367
|
-
const
|
|
15368
|
-
if (--
|
|
15408
|
+
combineStreams = (streams) => {
|
|
15409
|
+
let streamCount = streams.length;
|
|
15410
|
+
const combined = new PassThrough();
|
|
15411
|
+
const maybeEmitEnd = () => {
|
|
15412
|
+
if (--streamCount === 0) combined.end();
|
|
15369
15413
|
};
|
|
15370
|
-
for (const
|
|
15371
|
-
return
|
|
15414
|
+
for (const stream of streams) pipeline(stream, combined, { end: false }).then(maybeEmitEnd).catch(maybeEmitEnd);
|
|
15415
|
+
return combined;
|
|
15372
15416
|
};
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15417
|
+
metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
15418
|
+
shebangRegExp = /^#!\s*(.+)/;
|
|
15419
|
+
isWindowsExecutableRegExp = /\.(?:com|exe)$/i;
|
|
15420
|
+
isNodeModulesCmdRegExp = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i;
|
|
15421
|
+
isWindows = process.platform === "win32";
|
|
15422
|
+
defaultPathExt = [
|
|
15379
15423
|
".EXE",
|
|
15380
15424
|
".CMD",
|
|
15381
15425
|
".BAT",
|
|
15382
15426
|
".COM"
|
|
15383
15427
|
];
|
|
15384
|
-
|
|
15428
|
+
noPathExt = [""];
|
|
15429
|
+
NonZeroExitError = class extends Error {
|
|
15385
15430
|
result;
|
|
15386
15431
|
output;
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15432
|
+
exitCode;
|
|
15433
|
+
get signalCode() {
|
|
15434
|
+
return this.result.signalCode;
|
|
15435
|
+
}
|
|
15436
|
+
constructor(result, output, command, args) {
|
|
15437
|
+
let target = "The process";
|
|
15438
|
+
if (command) target = `The command \`${args?.length ? `${command} ${args.map((a) => /[ "'`()]/.test(a) ? JSON.stringify(a) : a).join(" ")}` : command}\``;
|
|
15439
|
+
const exitCode = result.exitCode ?? 1;
|
|
15440
|
+
super(result.signalCode !== null ? `${target} was killed by the signal ${result.signalCode}` : `${target} exited with a non-zero status (${exitCode})`);
|
|
15441
|
+
this.result = result;
|
|
15442
|
+
this.output = output;
|
|
15443
|
+
this.exitCode = exitCode;
|
|
15444
|
+
Object.defineProperty(this, "result", {
|
|
15445
|
+
enumerable: false,
|
|
15446
|
+
writable: false,
|
|
15447
|
+
configurable: false
|
|
15448
|
+
});
|
|
15394
15449
|
}
|
|
15395
15450
|
};
|
|
15396
|
-
|
|
15451
|
+
defaultOptions = {
|
|
15397
15452
|
timeout: void 0,
|
|
15398
15453
|
persist: false
|
|
15399
15454
|
};
|
|
15400
|
-
|
|
15401
|
-
|
|
15455
|
+
defaultNodeOptions = { windowsHide: true };
|
|
15456
|
+
ExecProcess = class {
|
|
15402
15457
|
_process;
|
|
15403
15458
|
_aborted = false;
|
|
15404
15459
|
_options;
|
|
@@ -15416,19 +15471,22 @@ var init_main = __esmMin((() => {
|
|
|
15416
15471
|
get exitCode() {
|
|
15417
15472
|
if (this._process && this._process.exitCode !== null) return this._process.exitCode;
|
|
15418
15473
|
}
|
|
15419
|
-
|
|
15474
|
+
get signalCode() {
|
|
15475
|
+
return this._process?.signalCode ?? null;
|
|
15476
|
+
}
|
|
15477
|
+
constructor(command, args, options) {
|
|
15420
15478
|
this._options = {
|
|
15421
|
-
...
|
|
15422
|
-
...
|
|
15479
|
+
...defaultOptions,
|
|
15480
|
+
...options
|
|
15423
15481
|
};
|
|
15424
|
-
this._command =
|
|
15425
|
-
this._args =
|
|
15426
|
-
this._processClosed = new Promise((
|
|
15427
|
-
this._resolveClose =
|
|
15482
|
+
this._command = command;
|
|
15483
|
+
this._args = args ?? [];
|
|
15484
|
+
this._processClosed = new Promise((resolve) => {
|
|
15485
|
+
this._resolveClose = resolve;
|
|
15428
15486
|
});
|
|
15429
15487
|
}
|
|
15430
|
-
kill(
|
|
15431
|
-
return this._process?.kill(
|
|
15488
|
+
kill(signal) {
|
|
15489
|
+
return this._process?.kill(signal) === true;
|
|
15432
15490
|
}
|
|
15433
15491
|
get aborted() {
|
|
15434
15492
|
return this._aborted;
|
|
@@ -15436,99 +15494,99 @@ var init_main = __esmMin((() => {
|
|
|
15436
15494
|
get killed() {
|
|
15437
15495
|
return this._process?.killed === true;
|
|
15438
15496
|
}
|
|
15439
|
-
pipe(
|
|
15440
|
-
return
|
|
15441
|
-
...
|
|
15497
|
+
pipe(command, args, options) {
|
|
15498
|
+
return exec(command, args, {
|
|
15499
|
+
...options,
|
|
15442
15500
|
stdin: this
|
|
15443
15501
|
});
|
|
15444
15502
|
}
|
|
15445
15503
|
async *[Symbol.asyncIterator]() {
|
|
15446
|
-
const
|
|
15447
|
-
if (!
|
|
15448
|
-
const
|
|
15449
|
-
if (this._streamErr)
|
|
15450
|
-
if (this._streamOut)
|
|
15451
|
-
const
|
|
15452
|
-
const
|
|
15453
|
-
for await (const
|
|
15504
|
+
const proc = this._process;
|
|
15505
|
+
if (!proc) return;
|
|
15506
|
+
const streams = [];
|
|
15507
|
+
if (this._streamErr) streams.push(this._streamErr);
|
|
15508
|
+
if (this._streamOut) streams.push(this._streamOut);
|
|
15509
|
+
const streamCombined = combineStreams(streams);
|
|
15510
|
+
const rl = readline.createInterface({ input: streamCombined });
|
|
15511
|
+
for await (const chunk of rl) yield chunk.toString();
|
|
15454
15512
|
await this._processClosed;
|
|
15455
|
-
|
|
15513
|
+
proc.removeAllListeners();
|
|
15456
15514
|
if (this._thrownError) throw this._thrownError;
|
|
15457
|
-
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new
|
|
15515
|
+
if (this._options?.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, void 0, this._command, this._args);
|
|
15458
15516
|
}
|
|
15459
15517
|
async _waitForOutput() {
|
|
15460
|
-
const
|
|
15461
|
-
if (!
|
|
15462
|
-
const [
|
|
15518
|
+
const proc = this._process;
|
|
15519
|
+
if (!proc) throw new Error("No process was started");
|
|
15520
|
+
const [stdout, stderr] = await Promise.all([this._streamOut ? readStream(this._streamOut) : "", this._streamErr ? readStream(this._streamErr) : ""]);
|
|
15463
15521
|
await this._processClosed;
|
|
15464
|
-
const { stdin
|
|
15465
|
-
if (
|
|
15466
|
-
|
|
15522
|
+
const { stdin } = this._options;
|
|
15523
|
+
if (stdin && typeof stdin !== "string") await stdin;
|
|
15524
|
+
proc.removeAllListeners();
|
|
15467
15525
|
if (this._thrownError) throw this._thrownError;
|
|
15468
|
-
const
|
|
15469
|
-
stderr
|
|
15470
|
-
stdout
|
|
15526
|
+
const result = {
|
|
15527
|
+
stderr,
|
|
15528
|
+
stdout,
|
|
15471
15529
|
exitCode: this.exitCode
|
|
15472
15530
|
};
|
|
15473
|
-
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new
|
|
15474
|
-
return
|
|
15531
|
+
if (this._options.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, result, this._command, this._args);
|
|
15532
|
+
return result;
|
|
15475
15533
|
}
|
|
15476
|
-
then(
|
|
15477
|
-
return this._waitForOutput().then(
|
|
15534
|
+
then(onfulfilled, onrejected) {
|
|
15535
|
+
return this._waitForOutput().then(onfulfilled, onrejected);
|
|
15478
15536
|
}
|
|
15479
15537
|
_streamOut;
|
|
15480
15538
|
_streamErr;
|
|
15481
15539
|
spawn() {
|
|
15482
|
-
const
|
|
15483
|
-
const
|
|
15484
|
-
const
|
|
15485
|
-
...
|
|
15486
|
-
...
|
|
15540
|
+
const cwd$1 = cwd();
|
|
15541
|
+
const options = this._options;
|
|
15542
|
+
const nodeOptions = {
|
|
15543
|
+
...defaultNodeOptions,
|
|
15544
|
+
...options.nodeOptions
|
|
15487
15545
|
};
|
|
15488
|
-
const
|
|
15546
|
+
const signals = [];
|
|
15489
15547
|
this._resetState();
|
|
15490
|
-
if (
|
|
15491
|
-
if (
|
|
15492
|
-
if (
|
|
15493
|
-
if (
|
|
15494
|
-
|
|
15495
|
-
const
|
|
15496
|
-
const
|
|
15497
|
-
if (
|
|
15498
|
-
if (
|
|
15499
|
-
this._process =
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
if (
|
|
15503
|
-
const { stdin
|
|
15504
|
-
if (typeof
|
|
15505
|
-
else
|
|
15548
|
+
if (options.timeout !== void 0) signals.push(AbortSignal.timeout(options.timeout));
|
|
15549
|
+
if (options.signal !== void 0) signals.push(options.signal);
|
|
15550
|
+
if (options.persist === true) nodeOptions.detached = true;
|
|
15551
|
+
if (signals.length > 0) nodeOptions.signal = combineSignals(signals);
|
|
15552
|
+
nodeOptions.env = computeEnv(cwd$1, nodeOptions.env, options.nodePath);
|
|
15553
|
+
const crossResult = normalizeSpawnCommand(this._command, this._args, nodeOptions);
|
|
15554
|
+
const handle = spawn(crossResult.command, crossResult.args, crossResult.options);
|
|
15555
|
+
if (handle.stderr) this._streamErr = handle.stderr;
|
|
15556
|
+
if (handle.stdout) this._streamOut = handle.stdout;
|
|
15557
|
+
this._process = handle;
|
|
15558
|
+
handle.once("error", this._onError);
|
|
15559
|
+
handle.once("close", this._onClose);
|
|
15560
|
+
if (handle.stdin) {
|
|
15561
|
+
const { stdin } = options;
|
|
15562
|
+
if (typeof stdin === "string") handle.stdin.end(stdin);
|
|
15563
|
+
else stdin?.process?.stdout?.pipe(handle.stdin);
|
|
15506
15564
|
}
|
|
15507
15565
|
}
|
|
15508
15566
|
_resetState() {
|
|
15509
15567
|
this._aborted = false;
|
|
15510
|
-
this._processClosed = new Promise((
|
|
15511
|
-
this._resolveClose =
|
|
15568
|
+
this._processClosed = new Promise((resolve) => {
|
|
15569
|
+
this._resolveClose = resolve;
|
|
15512
15570
|
});
|
|
15513
15571
|
this._thrownError = void 0;
|
|
15514
15572
|
}
|
|
15515
|
-
_onError = (
|
|
15516
|
-
if (
|
|
15573
|
+
_onError = (err) => {
|
|
15574
|
+
if (err.name === "AbortError" && (!(err.cause instanceof Error) || err.cause.name !== "TimeoutError")) {
|
|
15517
15575
|
this._aborted = true;
|
|
15518
15576
|
return;
|
|
15519
15577
|
}
|
|
15520
|
-
this._thrownError =
|
|
15578
|
+
this._thrownError = err;
|
|
15521
15579
|
};
|
|
15522
15580
|
_onClose = () => {
|
|
15523
15581
|
if (this._resolveClose) this._resolveClose();
|
|
15524
15582
|
};
|
|
15525
15583
|
};
|
|
15526
|
-
|
|
15527
|
-
const
|
|
15528
|
-
|
|
15529
|
-
return
|
|
15584
|
+
x = (command, args, userOptions) => {
|
|
15585
|
+
const proc = new ExecProcess(command, args, userOptions);
|
|
15586
|
+
proc.spawn();
|
|
15587
|
+
return proc;
|
|
15530
15588
|
};
|
|
15531
|
-
|
|
15589
|
+
exec = x;
|
|
15532
15590
|
}));
|
|
15533
15591
|
//#endregion
|
|
15534
15592
|
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/utils.js
|
|
@@ -15577,7 +15635,7 @@ async function pack(dir, opts) {
|
|
|
15577
15635
|
case "yarn": break;
|
|
15578
15636
|
default: command.push("--ignore-scripts");
|
|
15579
15637
|
}
|
|
15580
|
-
const output = await
|
|
15638
|
+
const output = await exec(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
15581
15639
|
const tarballFile = await fs$1.readdir(packDestination).then((files) => {
|
|
15582
15640
|
return files.find((file) => file.endsWith(".tgz") && output.stdout.includes(file));
|
|
15583
15641
|
});
|
|
@@ -15614,7 +15672,7 @@ async function packAsJson(dir, opts) {
|
|
|
15614
15672
|
case "yarn": break;
|
|
15615
15673
|
default: command.push("--ignore-scripts");
|
|
15616
15674
|
}
|
|
15617
|
-
let { stdout } = await
|
|
15675
|
+
let { stdout } = await exec(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
15618
15676
|
try {
|
|
15619
15677
|
stdout = stdout.trim();
|
|
15620
15678
|
if (packageManager === "pnpm") stdout = fixPnpmStdout(stdout);
|
|
@@ -17279,7 +17337,7 @@ function createTarballVfs(files) {
|
|
|
17279
17337
|
}
|
|
17280
17338
|
var init_vfs_tarball = __esmMin((() => {}));
|
|
17281
17339
|
//#endregion
|
|
17282
|
-
//#region ../../node_modules/.pnpm/package-manager-detector@1.
|
|
17340
|
+
//#region ../../node_modules/.pnpm/package-manager-detector@1.8.0/node_modules/package-manager-detector/dist/constants.mjs
|
|
17283
17341
|
var AGENTS, LOCKS, INSTALL_METADATA;
|
|
17284
17342
|
var init_constants = __esmMin((() => {
|
|
17285
17343
|
AGENTS = [
|
|
@@ -17288,6 +17346,7 @@ var init_constants = __esmMin((() => {
|
|
|
17288
17346
|
"yarn@berry",
|
|
17289
17347
|
"pnpm",
|
|
17290
17348
|
"pnpm@6",
|
|
17349
|
+
"pnpm-rush",
|
|
17291
17350
|
"bun",
|
|
17292
17351
|
"deno",
|
|
17293
17352
|
"nub",
|
|
@@ -17299,6 +17358,7 @@ var init_constants = __esmMin((() => {
|
|
|
17299
17358
|
"bun.lock": "bun",
|
|
17300
17359
|
"bun.lockb": "bun",
|
|
17301
17360
|
"deno.lock": "deno",
|
|
17361
|
+
"nub.lock": "nub",
|
|
17302
17362
|
"pnpm-lock.yaml": "pnpm",
|
|
17303
17363
|
"pnpm-workspace.yaml": "pnpm",
|
|
17304
17364
|
"yarn.lock": "yarn",
|
|
@@ -17319,7 +17379,7 @@ var init_constants = __esmMin((() => {
|
|
|
17319
17379
|
};
|
|
17320
17380
|
}));
|
|
17321
17381
|
//#endregion
|
|
17322
|
-
//#region ../../node_modules/.pnpm/package-manager-detector@1.
|
|
17382
|
+
//#region ../../node_modules/.pnpm/package-manager-detector@1.8.0/node_modules/package-manager-detector/dist/detect.mjs
|
|
17323
17383
|
var detect_exports = /* @__PURE__ */ __exportAll({
|
|
17324
17384
|
detect: () => detect,
|
|
17325
17385
|
getUserAgent: () => getUserAgent
|
|
@@ -17364,6 +17424,10 @@ async function detect(options = {}) {
|
|
|
17364
17424
|
for (const directory of lookup(cwd)) {
|
|
17365
17425
|
for (const strategy of strategies) switch (strategy) {
|
|
17366
17426
|
case "lockfile":
|
|
17427
|
+
if (await pathExists(PATH.join(directory, "rush.json"), "file")) return {
|
|
17428
|
+
name: "pnpm",
|
|
17429
|
+
agent: "pnpm-rush"
|
|
17430
|
+
};
|
|
17367
17431
|
for (const lock of Object.keys(LOCKS)) if (await pathExists(PATH.join(directory, lock), "file")) {
|
|
17368
17432
|
const name = LOCKS[lock];
|
|
17369
17433
|
const result = await parsePackageJson(PATH.join(directory, "package.json"), options);
|