@ariestools/toolchain 9.0.0 → 9.0.1
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/index.d.ts +1 -1
- package/dist/actions/index.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 +444 -418
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +36 -30
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +28 -28
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +395 -369
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +36 -30
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +28 -28
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +1258 -725
- 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/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 +4 -4
|
@@ -14,7 +14,7 @@ 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
19
|
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
20
20
|
import util from "node:util";
|
|
@@ -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();
|
|
@@ -8478,7 +8478,7 @@ const RULE_COMMANDS = {
|
|
|
8478
8478
|
},
|
|
8479
8479
|
check: {
|
|
8480
8480
|
command: "check",
|
|
8481
|
-
includeInRoot:
|
|
8481
|
+
includeInRoot: false,
|
|
8482
8482
|
title: "Check Rules"
|
|
8483
8483
|
},
|
|
8484
8484
|
clean: {
|
|
@@ -8498,6 +8498,12 @@ const RULE_COMMANDS = {
|
|
|
8498
8498
|
includeInRoot: true,
|
|
8499
8499
|
title: "Dead Rules"
|
|
8500
8500
|
},
|
|
8501
|
+
dependabot: {
|
|
8502
|
+
command: "secure dependabot",
|
|
8503
|
+
configKey: "dependabot",
|
|
8504
|
+
includeInRoot: true,
|
|
8505
|
+
title: "Dependabot Rules"
|
|
8506
|
+
},
|
|
8501
8507
|
deplint: {
|
|
8502
8508
|
command: "deplint",
|
|
8503
8509
|
configKey: "deplint",
|
|
@@ -8519,7 +8525,7 @@ const RULE_COMMANDS = {
|
|
|
8519
8525
|
lint: {
|
|
8520
8526
|
aliases: ["relint"],
|
|
8521
8527
|
command: "lint",
|
|
8522
|
-
includeInRoot:
|
|
8528
|
+
includeInRoot: false,
|
|
8523
8529
|
title: "Lint Rules"
|
|
8524
8530
|
},
|
|
8525
8531
|
lintLint: {
|
|
@@ -11130,29 +11136,29 @@ const entryOutputBasename = (entry, entryMode) => {
|
|
|
11130
11136
|
//#region ../../node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
|
|
11131
11137
|
const A = (r) => r !== null && typeof r == "object";
|
|
11132
11138
|
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
|
|
11139
|
+
const _ = "ERR_INVALID_PACKAGE_CONFIG";
|
|
11140
|
+
const E$1 = "ERR_INVALID_PACKAGE_TARGET";
|
|
11141
|
+
const I = "ERR_PACKAGE_PATH_NOT_EXPORTED";
|
|
11142
|
+
const R$1 = /^\d+$/;
|
|
11143
|
+
const O$1 = /^(\.{1,2}|node_modules)$/i;
|
|
11144
|
+
const w = /\/|\\/;
|
|
11145
|
+
var h = ((r) => (r.Export = "exports", r.Import = "imports", r))(h || {});
|
|
11140
11146
|
const f = (r, t, e, o, c) => {
|
|
11141
11147
|
if (t == null) return [];
|
|
11142
11148
|
if (typeof t == "string") {
|
|
11143
|
-
const [n, ...i] = t.split(w
|
|
11144
|
-
if (n === ".." || i.some((l) => O$
|
|
11149
|
+
const [n, ...i] = t.split(w);
|
|
11150
|
+
if (n === ".." || i.some((l) => O$1.test(l))) throw a(E$1, `Invalid "${r}" target "${t}" defined in the package config`);
|
|
11145
11151
|
return [c ? t.replace(/\*/g, c) : t];
|
|
11146
11152
|
}
|
|
11147
11153
|
if (Array.isArray(t)) return t.flatMap((n) => f(r, n, e, o, c));
|
|
11148
11154
|
if (A(t)) {
|
|
11149
11155
|
for (const n of Object.keys(t)) {
|
|
11150
|
-
if (R$
|
|
11156
|
+
if (R$1.test(n)) throw a(_, "Cannot contain numeric property keys");
|
|
11151
11157
|
if (n === "default" || o.includes(n)) return f(r, t[n], e, o, c);
|
|
11152
11158
|
}
|
|
11153
11159
|
return [];
|
|
11154
11160
|
}
|
|
11155
|
-
throw a(E$
|
|
11161
|
+
throw a(E$1, `Invalid "${r}" target "${t}"`);
|
|
11156
11162
|
};
|
|
11157
11163
|
const s = "*";
|
|
11158
11164
|
const m = (r, t) => {
|
|
@@ -11174,15 +11180,15 @@ function d(r, t) {
|
|
|
11174
11180
|
const p = (r) => Object.keys(r).reduce((t, e) => {
|
|
11175
11181
|
const o = e === "" || e[0] !== ".";
|
|
11176
11182
|
if (t === void 0 || t === o) return o;
|
|
11177
|
-
throw a(_
|
|
11183
|
+
throw a(_, "\"exports\" cannot contain some keys starting with \".\" and some not");
|
|
11178
11184
|
}, void 0);
|
|
11179
|
-
const u
|
|
11180
|
-
const v
|
|
11185
|
+
const u = /^\w+:/;
|
|
11186
|
+
const v = (r, t, e) => {
|
|
11181
11187
|
if (!r) throw new Error("\"exports\" is required");
|
|
11182
11188
|
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
|
|
11189
|
+
const [o, c] = d(r, t), n = f(h.Export, r[o], t, e, c);
|
|
11190
|
+
if (n.length === 0) throw a(I, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
|
|
11191
|
+
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
11192
|
return n;
|
|
11187
11193
|
};
|
|
11188
11194
|
//#endregion
|
|
@@ -11213,7 +11219,7 @@ const Pe$1 = i((...[e, t]) => {
|
|
|
11213
11219
|
if (typeof s != "string") throw new TypeError(`Unexpected resolved path type for ${s} in ${t}`);
|
|
11214
11220
|
return s;
|
|
11215
11221
|
}, "realpath");
|
|
11216
|
-
const O
|
|
11222
|
+
const O = i((e, t, s) => {
|
|
11217
11223
|
for (;;) {
|
|
11218
11224
|
const n = PATH.posix.join(e, t);
|
|
11219
11225
|
if (x$1(s, n)) return n;
|
|
@@ -11222,10 +11228,10 @@ const O$1 = i((e, t, s) => {
|
|
|
11222
11228
|
e = o;
|
|
11223
11229
|
}
|
|
11224
11230
|
}, "findUp");
|
|
11225
|
-
const C
|
|
11231
|
+
const C = /^\.{1,2}(\/.*)?$/;
|
|
11226
11232
|
const X = i((e) => {
|
|
11227
11233
|
const t = L(e);
|
|
11228
|
-
return C
|
|
11234
|
+
return C.test(t) ? t : `./${t}`;
|
|
11229
11235
|
}, "normalizeRelativePath");
|
|
11230
11236
|
function We(e, t = !1) {
|
|
11231
11237
|
const s = e.length;
|
|
@@ -11250,12 +11256,12 @@ function We(e, t = !1) {
|
|
|
11250
11256
|
function D() {
|
|
11251
11257
|
let c = n;
|
|
11252
11258
|
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
|
|
11259
|
+
else for (n++; n < e.length && R(e.charCodeAt(n));) n++;
|
|
11260
|
+
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
11261
|
else return b = 3, e.substring(c, n);
|
|
11256
11262
|
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
|
|
11263
|
+
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))) {
|
|
11264
|
+
for (n++; n < e.length && R(e.charCodeAt(n));) n++;
|
|
11259
11265
|
j = n;
|
|
11260
11266
|
} else b = 3;
|
|
11261
11267
|
return e.substring(c, j);
|
|
@@ -11362,7 +11368,7 @@ function We(e, t = !1) {
|
|
|
11362
11368
|
return A || (n++, b = 1), o = e.substring(j, n), r = 13;
|
|
11363
11369
|
}
|
|
11364
11370
|
return o += String.fromCharCode(c), n++, r = 16;
|
|
11365
|
-
case 45: if (o += String.fromCharCode(c), n++, n === s || !R
|
|
11371
|
+
case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return r = 16;
|
|
11366
11372
|
case 48:
|
|
11367
11373
|
case 49:
|
|
11368
11374
|
case 50:
|
|
@@ -11431,19 +11437,19 @@ function J(e) {
|
|
|
11431
11437
|
return e === 10 || e === 13;
|
|
11432
11438
|
}
|
|
11433
11439
|
i(J, "isLineBreak");
|
|
11434
|
-
function R
|
|
11440
|
+
function R(e) {
|
|
11435
11441
|
return e >= 48 && e <= 57;
|
|
11436
11442
|
}
|
|
11437
|
-
i(R
|
|
11443
|
+
i(R, "isDigit");
|
|
11438
11444
|
var ge;
|
|
11439
11445
|
(function(e) {
|
|
11440
11446
|
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
11447
|
})(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
|
|
11448
|
+
const S = 200;
|
|
11449
|
+
new Array(S).fill(0).map((e, t) => `
|
|
11450
|
+
` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
|
|
11451
|
+
` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `
|
|
11452
|
+
` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
|
|
11447
11453
|
` + " ".repeat(t));
|
|
11448
11454
|
var Y;
|
|
11449
11455
|
(function(e) {
|
|
@@ -11641,7 +11647,7 @@ var we;
|
|
|
11641
11647
|
})(we || (we = {}));
|
|
11642
11648
|
const de = i((e, t) => Ve(Se(t, e, "utf8")), "readJsonc");
|
|
11643
11649
|
const ne = Symbol("implicitBaseUrl");
|
|
11644
|
-
const E
|
|
11650
|
+
const E = "${configDir}";
|
|
11645
11651
|
const ze = i(() => {
|
|
11646
11652
|
const { findPnpApi: e } = Be;
|
|
11647
11653
|
return e && e(process.cwd());
|
|
@@ -11653,7 +11659,7 @@ const te = i((e, t, s, n) => {
|
|
|
11653
11659
|
if (!l) return;
|
|
11654
11660
|
let r = t || "tsconfig.json";
|
|
11655
11661
|
if (!s && l.exports) try {
|
|
11656
|
-
const [f] = v
|
|
11662
|
+
const [f] = v(l.exports, t, ["require", "types"]);
|
|
11657
11663
|
r = f;
|
|
11658
11664
|
} catch {
|
|
11659
11665
|
return !1;
|
|
@@ -11696,7 +11702,7 @@ const Ge = i((e, t, s) => {
|
|
|
11696
11702
|
}
|
|
11697
11703
|
} catch {}
|
|
11698
11704
|
}
|
|
11699
|
-
const d = O
|
|
11705
|
+
const d = O(PATH.resolve(t), PATH.join("node_modules", f), s);
|
|
11700
11706
|
if (!d || !((n = H(s, d)) != null && n.isDirectory())) return;
|
|
11701
11707
|
const b = Pe$1(s, d), _ = PATH.join(b, se);
|
|
11702
11708
|
if (x$1(s, _)) {
|
|
@@ -11727,7 +11733,7 @@ const pe = [
|
|
|
11727
11733
|
"include",
|
|
11728
11734
|
"exclude"
|
|
11729
11735
|
];
|
|
11730
|
-
const N
|
|
11736
|
+
const N = i((e, t, s) => {
|
|
11731
11737
|
const n = PATH.join(t, s);
|
|
11732
11738
|
return L(PATH.relative(e, n)) || "./";
|
|
11733
11739
|
}, "resolveAndRelativize");
|
|
@@ -11746,21 +11752,21 @@ const He = i((e, t, s, n) => {
|
|
|
11746
11752
|
const { compilerOptions: f } = r;
|
|
11747
11753
|
if (f) {
|
|
11748
11754
|
const { baseUrl: u } = f;
|
|
11749
|
-
u && !u.startsWith(E
|
|
11755
|
+
u && !u.startsWith(E) && (f.baseUrl = N(t, l, u));
|
|
11750
11756
|
const { outDir: g } = f;
|
|
11751
|
-
g && !g.startsWith(E
|
|
11757
|
+
g && !g.startsWith(E) && (f.outDir = N(t, l, g));
|
|
11752
11758
|
const { declarationDir: d } = f;
|
|
11753
|
-
d && !d.startsWith(E
|
|
11759
|
+
d && !d.startsWith(E) && (f.declarationDir = N(t, l, d));
|
|
11754
11760
|
const { rootDir: b } = f;
|
|
11755
|
-
b && !b.startsWith(E
|
|
11761
|
+
b && !b.startsWith(E) && (f.rootDir = N(t, l, b));
|
|
11756
11762
|
const { rootDirs: _ } = f;
|
|
11757
|
-
_ && (f.rootDirs = _.map((D) => D.startsWith(E
|
|
11763
|
+
_ && (f.rootDirs = _.map((D) => D.startsWith(E) ? D : N(t, l, D)));
|
|
11758
11764
|
const { typeRoots: h } = f;
|
|
11759
|
-
h && (f.typeRoots = h.map((D) => D.startsWith(E
|
|
11765
|
+
h && (f.typeRoots = h.map((D) => D.startsWith(E) ? D : N(t, l, D)));
|
|
11760
11766
|
}
|
|
11761
11767
|
for (const u of pe) {
|
|
11762
11768
|
const g = r[u];
|
|
11763
|
-
g && (r[u] = g.map((d) => d.startsWith(E
|
|
11769
|
+
g && (r[u] = g.map((d) => d.startsWith(E) ? d : Qe(t, l, d)));
|
|
11764
11770
|
}
|
|
11765
11771
|
return r;
|
|
11766
11772
|
}, "resolveExtends");
|
|
@@ -11800,24 +11806,24 @@ const ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
|
11800
11806
|
const { compilerOptions: l } = n;
|
|
11801
11807
|
for (const f of ["baseUrl", "rootDir"]) {
|
|
11802
11808
|
const u = l[f];
|
|
11803
|
-
if (u && !u.startsWith(E
|
|
11809
|
+
if (u && !u.startsWith(E)) {
|
|
11804
11810
|
const g = PATH.resolve(o, u);
|
|
11805
11811
|
l[f] = oe(o, g);
|
|
11806
11812
|
}
|
|
11807
11813
|
}
|
|
11808
11814
|
for (const f of be) {
|
|
11809
11815
|
let u = l[f];
|
|
11810
|
-
u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E
|
|
11816
|
+
u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = X(u)), l[f] = u);
|
|
11811
11817
|
}
|
|
11812
11818
|
} else n.compilerOptions = {};
|
|
11813
|
-
if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E
|
|
11819
|
+
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
11820
|
const { watchOptions: l } = n;
|
|
11815
11821
|
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
11822
|
}
|
|
11817
11823
|
return n;
|
|
11818
11824
|
}, "_parseTsconfig");
|
|
11819
11825
|
const Z = i((e, t) => {
|
|
11820
|
-
if (e.startsWith(E
|
|
11826
|
+
if (e.startsWith(E)) return L(PATH.join(t, e.slice(12)));
|
|
11821
11827
|
}, "interpolateConfigDir");
|
|
11822
11828
|
const Xe = [
|
|
11823
11829
|
"outDir",
|
|
@@ -11976,7 +11982,7 @@ const Te = q((e) => {
|
|
|
11976
11982
|
const n = PATH.resolve(e);
|
|
11977
11983
|
let o = L(e);
|
|
11978
11984
|
for (;;) {
|
|
11979
|
-
const l = O
|
|
11985
|
+
const l = O(o, t, s);
|
|
11980
11986
|
if (!l) return;
|
|
11981
11987
|
const r = PATH.resolve(l), f = ie(r, s), u = {
|
|
11982
11988
|
path: L(r),
|
|
@@ -11989,7 +11995,7 @@ const Te = q((e) => {
|
|
|
11989
11995
|
}
|
|
11990
11996
|
}, "findConfigApplicable"), Le = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
|
|
11991
11997
|
var o;
|
|
11992
|
-
return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O
|
|
11998
|
+
return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O(L(e), t, s);
|
|
11993
11999
|
}, "findTsconfig"), tn = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
|
|
11994
12000
|
var o;
|
|
11995
12001
|
if (!n) {
|
|
@@ -12016,7 +12022,7 @@ const Te = q((e) => {
|
|
|
12016
12022
|
}, "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
12023
|
pattern: ln(n),
|
|
12018
12024
|
substitutions: o.map((l) => {
|
|
12019
|
-
if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C
|
|
12025
|
+
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
12026
|
return PATH.resolve(s, l);
|
|
12021
12027
|
})
|
|
12022
12028
|
})), "parsePaths");
|
|
@@ -12027,7 +12033,7 @@ i((e) => {
|
|
|
12027
12033
|
if (!s && !n) return null;
|
|
12028
12034
|
const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), r = n ? rn(n, s, l) : [];
|
|
12029
12035
|
return (f) => {
|
|
12030
|
-
if (C
|
|
12036
|
+
if (C.test(f)) return [];
|
|
12031
12037
|
const u = [];
|
|
12032
12038
|
for (const _ of r) {
|
|
12033
12039
|
if (_.pattern === f) return _.substitutions.map(L);
|
|
@@ -15202,45 +15208,45 @@ function cloneResolvedPublintRules(rules) {
|
|
|
15202
15208
|
};
|
|
15203
15209
|
}
|
|
15204
15210
|
//#endregion
|
|
15205
|
-
//#region ../../node_modules/.pnpm/tinyexec@1.
|
|
15206
|
-
function
|
|
15207
|
-
for (const
|
|
15208
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
15209
|
-
const
|
|
15210
|
-
if (!
|
|
15211
|
+
//#region ../../node_modules/.pnpm/tinyexec@1.3.0/node_modules/tinyexec/dist/main.mjs
|
|
15212
|
+
function getPathFromEnv(env) {
|
|
15213
|
+
for (const key in env) {
|
|
15214
|
+
if (!Object.prototype.hasOwnProperty.call(env, key) || !isPathLikePattern.test(key)) continue;
|
|
15215
|
+
const value = env[key];
|
|
15216
|
+
if (!value) return defaultEnvPathInfo;
|
|
15211
15217
|
return {
|
|
15212
|
-
key
|
|
15213
|
-
value
|
|
15218
|
+
key,
|
|
15219
|
+
value
|
|
15214
15220
|
};
|
|
15215
15221
|
}
|
|
15216
|
-
return
|
|
15222
|
+
return defaultEnvPathInfo;
|
|
15217
15223
|
}
|
|
15218
|
-
function
|
|
15219
|
-
const
|
|
15220
|
-
const
|
|
15221
|
-
let
|
|
15222
|
-
let
|
|
15224
|
+
function addNodeBinToPath(cwd, path) {
|
|
15225
|
+
const parts = path.value.split(delimiter);
|
|
15226
|
+
const nodeBinPaths = [];
|
|
15227
|
+
let currentPath = cwd;
|
|
15228
|
+
let lastPath;
|
|
15223
15229
|
do {
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
} while (
|
|
15228
|
-
|
|
15229
|
-
const
|
|
15230
|
+
nodeBinPaths.push(resolve(currentPath, "node_modules", ".bin"));
|
|
15231
|
+
lastPath = currentPath;
|
|
15232
|
+
currentPath = dirname(currentPath);
|
|
15233
|
+
} while (currentPath !== lastPath);
|
|
15234
|
+
nodeBinPaths.push(dirname(process.execPath));
|
|
15235
|
+
const newPath = nodeBinPaths.concat(parts).join(delimiter);
|
|
15230
15236
|
return {
|
|
15231
|
-
key:
|
|
15232
|
-
value:
|
|
15237
|
+
key: path.key,
|
|
15238
|
+
value: newPath
|
|
15233
15239
|
};
|
|
15234
15240
|
}
|
|
15235
|
-
function
|
|
15236
|
-
const
|
|
15241
|
+
function computeEnv(cwd, env, nodePath = true) {
|
|
15242
|
+
const envWithDefault = {
|
|
15237
15243
|
...process.env,
|
|
15238
|
-
...
|
|
15244
|
+
...env
|
|
15239
15245
|
};
|
|
15240
|
-
if (!
|
|
15241
|
-
const
|
|
15242
|
-
|
|
15243
|
-
return
|
|
15246
|
+
if (!nodePath) return envWithDefault;
|
|
15247
|
+
const envPathInfo = addNodeBinToPath(cwd, getPathFromEnv(envWithDefault));
|
|
15248
|
+
envWithDefault[envPathInfo.key] = envPathInfo.value;
|
|
15249
|
+
return envWithDefault;
|
|
15244
15250
|
}
|
|
15245
15251
|
/**
|
|
15246
15252
|
* Normalizes the command and arguments to work cross-platform.
|
|
@@ -15248,157 +15254,168 @@ function y(e, t, n = true) {
|
|
|
15248
15254
|
* `node_modules/.bin` commands, and escaping meta characters.
|
|
15249
15255
|
* On other platforms, it just returns the command and arguments as-is.
|
|
15250
15256
|
*/
|
|
15251
|
-
function
|
|
15252
|
-
if (
|
|
15253
|
-
command
|
|
15254
|
-
args
|
|
15255
|
-
options
|
|
15257
|
+
function normalizeSpawnCommand(command, args = [], options = {}) {
|
|
15258
|
+
if (options.shell === true || !isWindows) return {
|
|
15259
|
+
command,
|
|
15260
|
+
args,
|
|
15261
|
+
options
|
|
15256
15262
|
};
|
|
15257
|
-
let
|
|
15258
|
-
let
|
|
15259
|
-
if (
|
|
15260
|
-
const
|
|
15261
|
-
const
|
|
15262
|
-
let
|
|
15263
|
+
let file = resolveCommand(command, options);
|
|
15264
|
+
let shebang = null;
|
|
15265
|
+
if (file !== null) {
|
|
15266
|
+
const size = 150;
|
|
15267
|
+
const buffer = Buffer.alloc(size);
|
|
15268
|
+
let fd = null;
|
|
15263
15269
|
try {
|
|
15264
|
-
|
|
15265
|
-
readSync(
|
|
15270
|
+
fd = openSync(file, "r");
|
|
15271
|
+
readSync(fd, buffer, 0, size, 0);
|
|
15266
15272
|
} 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
|
|
15273
|
+
if (fd !== null) closeSync(fd);
|
|
15274
|
+
}
|
|
15275
|
+
const match = buffer.toString().match(shebangRegExp);
|
|
15276
|
+
if (match !== null) {
|
|
15277
|
+
const line = match[1].trim();
|
|
15278
|
+
const separatorIndex = line.indexOf(" ");
|
|
15279
|
+
const path = separatorIndex !== -1 ? line.slice(0, separatorIndex) : line;
|
|
15280
|
+
const argument = separatorIndex !== -1 ? line.slice(separatorIndex + 1) : "";
|
|
15281
|
+
const binary = basename(path);
|
|
15282
|
+
shebang = binary === "env" ? argument || null : binary;
|
|
15283
|
+
}
|
|
15284
|
+
}
|
|
15285
|
+
if (shebang !== null && file !== null) {
|
|
15286
|
+
args = [file, ...args];
|
|
15287
|
+
command = shebang;
|
|
15288
|
+
file = resolveCommand(command, options);
|
|
15289
|
+
}
|
|
15290
|
+
if (file === null || !isWindowsExecutableRegExp.test(file)) {
|
|
15291
|
+
const needsDoubleEscapeMetaChars = file !== null && isNodeModulesCmdRegExp.test(file);
|
|
15292
|
+
command = normalize(command);
|
|
15293
|
+
command = command.replace(metaCharsRegExp, "^$1");
|
|
15294
|
+
args = args.map((arg) => {
|
|
15295
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
|
|
15296
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
15297
|
+
arg = `"${arg}"`;
|
|
15298
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
15299
|
+
if (needsDoubleEscapeMetaChars) arg = arg.replace(metaCharsRegExp, "^$1");
|
|
15300
|
+
return arg;
|
|
15295
15301
|
});
|
|
15296
|
-
|
|
15302
|
+
args = [
|
|
15297
15303
|
"/d",
|
|
15298
15304
|
"/s",
|
|
15299
15305
|
"/c",
|
|
15300
|
-
`"${[
|
|
15306
|
+
`"${[command, ...args].join(" ")}"`
|
|
15301
15307
|
];
|
|
15302
|
-
|
|
15303
|
-
|
|
15304
|
-
...
|
|
15308
|
+
command = options.env?.comspec ?? "cmd.exe";
|
|
15309
|
+
options = {
|
|
15310
|
+
...options,
|
|
15305
15311
|
windowsVerbatimArguments: true
|
|
15306
15312
|
};
|
|
15307
15313
|
}
|
|
15308
15314
|
return {
|
|
15309
|
-
command
|
|
15310
|
-
args
|
|
15311
|
-
options
|
|
15315
|
+
command,
|
|
15316
|
+
args,
|
|
15317
|
+
options
|
|
15312
15318
|
};
|
|
15313
15319
|
}
|
|
15314
15320
|
/**
|
|
15315
15321
|
* Resolves the command to an absolute path if possible.
|
|
15316
15322
|
* Handles things like traversing PATH and adding extensions from PATHEXT
|
|
15317
15323
|
*/
|
|
15318
|
-
function
|
|
15319
|
-
const
|
|
15320
|
-
const
|
|
15321
|
-
const
|
|
15322
|
-
const
|
|
15323
|
-
|
|
15324
|
-
if (
|
|
15325
|
-
for (const
|
|
15326
|
-
const
|
|
15327
|
-
for (const
|
|
15328
|
-
const
|
|
15324
|
+
function resolveCommand(command, options) {
|
|
15325
|
+
const cwd$3 = (options.cwd ?? cwd()).toString();
|
|
15326
|
+
const env = options.env ?? process.env;
|
|
15327
|
+
const PATH = getPathFromEnv(env).value;
|
|
15328
|
+
const pathEnv = command.includes("/") || command.includes("\\") ? [""] : [cwd$3, ...PATH.split(delimiter)];
|
|
15329
|
+
let pathExt = env.PATHEXT ? env.PATHEXT.split(delimiter) : defaultPathExt;
|
|
15330
|
+
if (command.includes(".") && pathExt[0] !== "") pathExt = ["", ...pathExt];
|
|
15331
|
+
for (const extensions of [pathExt, noPathExt]) for (const path of pathEnv) {
|
|
15332
|
+
const dest = resolve(cwd$3, path.startsWith("\"") && path.endsWith("\"") && path.length > 1 ? path.slice(1, -1) : path, command);
|
|
15333
|
+
for (const ext of extensions) {
|
|
15334
|
+
const destWithExt = dest + ext;
|
|
15329
15335
|
try {
|
|
15330
|
-
if (statSync(
|
|
15336
|
+
if (statSync(destWithExt).isFile()) return destWithExt;
|
|
15331
15337
|
} catch {}
|
|
15332
15338
|
}
|
|
15333
15339
|
}
|
|
15334
15340
|
return null;
|
|
15335
15341
|
}
|
|
15336
|
-
function
|
|
15337
|
-
const
|
|
15338
|
-
for (const
|
|
15339
|
-
if (
|
|
15340
|
-
|
|
15341
|
-
return
|
|
15342
|
+
function combineSignals(signals) {
|
|
15343
|
+
const controller = new AbortController();
|
|
15344
|
+
for (const signal of signals) {
|
|
15345
|
+
if (signal.aborted) {
|
|
15346
|
+
controller.abort();
|
|
15347
|
+
return signal;
|
|
15342
15348
|
}
|
|
15343
|
-
const
|
|
15344
|
-
|
|
15349
|
+
const onAbort = () => {
|
|
15350
|
+
controller.abort(signal.reason);
|
|
15345
15351
|
};
|
|
15346
|
-
|
|
15352
|
+
signal.addEventListener("abort", onAbort, { signal: controller.signal });
|
|
15347
15353
|
}
|
|
15348
|
-
return
|
|
15354
|
+
return controller.signal;
|
|
15349
15355
|
}
|
|
15350
|
-
async function
|
|
15351
|
-
let
|
|
15356
|
+
async function readStream(stream) {
|
|
15357
|
+
let output = "";
|
|
15352
15358
|
try {
|
|
15353
|
-
for await (const
|
|
15359
|
+
for await (const chunk of stream) output += chunk.toString();
|
|
15354
15360
|
} catch {}
|
|
15355
|
-
return
|
|
15361
|
+
return output;
|
|
15356
15362
|
}
|
|
15357
|
-
var
|
|
15363
|
+
var isPathLikePattern, defaultEnvPathInfo, combineStreams, metaCharsRegExp, shebangRegExp, isWindowsExecutableRegExp, isNodeModulesCmdRegExp, isWindows, defaultPathExt, noPathExt, NonZeroExitError, defaultOptions, defaultNodeOptions, ExecProcess, x, exec;
|
|
15358
15364
|
var init_main = __esmMin((() => {
|
|
15359
|
-
|
|
15360
|
-
|
|
15365
|
+
isPathLikePattern = /^path$/i;
|
|
15366
|
+
defaultEnvPathInfo = {
|
|
15361
15367
|
key: "PATH",
|
|
15362
15368
|
value: ""
|
|
15363
15369
|
};
|
|
15364
|
-
|
|
15365
|
-
let
|
|
15366
|
-
const
|
|
15367
|
-
const
|
|
15368
|
-
if (--
|
|
15370
|
+
combineStreams = (streams) => {
|
|
15371
|
+
let streamCount = streams.length;
|
|
15372
|
+
const combined = new PassThrough();
|
|
15373
|
+
const maybeEmitEnd = () => {
|
|
15374
|
+
if (--streamCount === 0) combined.end();
|
|
15369
15375
|
};
|
|
15370
|
-
for (const
|
|
15371
|
-
return
|
|
15376
|
+
for (const stream of streams) pipeline(stream, combined, { end: false }).then(maybeEmitEnd).catch(maybeEmitEnd);
|
|
15377
|
+
return combined;
|
|
15372
15378
|
};
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
+
metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
15380
|
+
shebangRegExp = /^#!\s*(.+)/;
|
|
15381
|
+
isWindowsExecutableRegExp = /\.(?:com|exe)$/i;
|
|
15382
|
+
isNodeModulesCmdRegExp = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i;
|
|
15383
|
+
isWindows = process.platform === "win32";
|
|
15384
|
+
defaultPathExt = [
|
|
15379
15385
|
".EXE",
|
|
15380
15386
|
".CMD",
|
|
15381
15387
|
".BAT",
|
|
15382
15388
|
".COM"
|
|
15383
15389
|
];
|
|
15384
|
-
|
|
15390
|
+
noPathExt = [""];
|
|
15391
|
+
NonZeroExitError = class extends Error {
|
|
15385
15392
|
result;
|
|
15386
15393
|
output;
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
+
exitCode;
|
|
15395
|
+
get signalCode() {
|
|
15396
|
+
return this.result.signalCode;
|
|
15397
|
+
}
|
|
15398
|
+
constructor(result, output, command, args) {
|
|
15399
|
+
let target = "The process";
|
|
15400
|
+
if (command) target = `The command \`${args?.length ? `${command} ${args.map((a) => /[ "'`()]/.test(a) ? JSON.stringify(a) : a).join(" ")}` : command}\``;
|
|
15401
|
+
const exitCode = result.exitCode ?? 1;
|
|
15402
|
+
super(result.signalCode !== null ? `${target} was killed by the signal ${result.signalCode}` : `${target} exited with a non-zero status (${exitCode})`);
|
|
15403
|
+
this.result = result;
|
|
15404
|
+
this.output = output;
|
|
15405
|
+
this.exitCode = exitCode;
|
|
15406
|
+
Object.defineProperty(this, "result", {
|
|
15407
|
+
enumerable: false,
|
|
15408
|
+
writable: false,
|
|
15409
|
+
configurable: false
|
|
15410
|
+
});
|
|
15394
15411
|
}
|
|
15395
15412
|
};
|
|
15396
|
-
|
|
15413
|
+
defaultOptions = {
|
|
15397
15414
|
timeout: void 0,
|
|
15398
15415
|
persist: false
|
|
15399
15416
|
};
|
|
15400
|
-
|
|
15401
|
-
|
|
15417
|
+
defaultNodeOptions = { windowsHide: true };
|
|
15418
|
+
ExecProcess = class {
|
|
15402
15419
|
_process;
|
|
15403
15420
|
_aborted = false;
|
|
15404
15421
|
_options;
|
|
@@ -15416,19 +15433,22 @@ var init_main = __esmMin((() => {
|
|
|
15416
15433
|
get exitCode() {
|
|
15417
15434
|
if (this._process && this._process.exitCode !== null) return this._process.exitCode;
|
|
15418
15435
|
}
|
|
15419
|
-
|
|
15436
|
+
get signalCode() {
|
|
15437
|
+
return this._process?.signalCode ?? null;
|
|
15438
|
+
}
|
|
15439
|
+
constructor(command, args, options) {
|
|
15420
15440
|
this._options = {
|
|
15421
|
-
...
|
|
15422
|
-
...
|
|
15441
|
+
...defaultOptions,
|
|
15442
|
+
...options
|
|
15423
15443
|
};
|
|
15424
|
-
this._command =
|
|
15425
|
-
this._args =
|
|
15426
|
-
this._processClosed = new Promise((
|
|
15427
|
-
this._resolveClose =
|
|
15444
|
+
this._command = command;
|
|
15445
|
+
this._args = args ?? [];
|
|
15446
|
+
this._processClosed = new Promise((resolve) => {
|
|
15447
|
+
this._resolveClose = resolve;
|
|
15428
15448
|
});
|
|
15429
15449
|
}
|
|
15430
|
-
kill(
|
|
15431
|
-
return this._process?.kill(
|
|
15450
|
+
kill(signal) {
|
|
15451
|
+
return this._process?.kill(signal) === true;
|
|
15432
15452
|
}
|
|
15433
15453
|
get aborted() {
|
|
15434
15454
|
return this._aborted;
|
|
@@ -15436,99 +15456,99 @@ var init_main = __esmMin((() => {
|
|
|
15436
15456
|
get killed() {
|
|
15437
15457
|
return this._process?.killed === true;
|
|
15438
15458
|
}
|
|
15439
|
-
pipe(
|
|
15440
|
-
return
|
|
15441
|
-
...
|
|
15459
|
+
pipe(command, args, options) {
|
|
15460
|
+
return exec(command, args, {
|
|
15461
|
+
...options,
|
|
15442
15462
|
stdin: this
|
|
15443
15463
|
});
|
|
15444
15464
|
}
|
|
15445
15465
|
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
|
|
15466
|
+
const proc = this._process;
|
|
15467
|
+
if (!proc) return;
|
|
15468
|
+
const streams = [];
|
|
15469
|
+
if (this._streamErr) streams.push(this._streamErr);
|
|
15470
|
+
if (this._streamOut) streams.push(this._streamOut);
|
|
15471
|
+
const streamCombined = combineStreams(streams);
|
|
15472
|
+
const rl = readline.createInterface({ input: streamCombined });
|
|
15473
|
+
for await (const chunk of rl) yield chunk.toString();
|
|
15454
15474
|
await this._processClosed;
|
|
15455
|
-
|
|
15475
|
+
proc.removeAllListeners();
|
|
15456
15476
|
if (this._thrownError) throw this._thrownError;
|
|
15457
|
-
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new
|
|
15477
|
+
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
15478
|
}
|
|
15459
15479
|
async _waitForOutput() {
|
|
15460
|
-
const
|
|
15461
|
-
if (!
|
|
15462
|
-
const [
|
|
15480
|
+
const proc = this._process;
|
|
15481
|
+
if (!proc) throw new Error("No process was started");
|
|
15482
|
+
const [stdout, stderr] = await Promise.all([this._streamOut ? readStream(this._streamOut) : "", this._streamErr ? readStream(this._streamErr) : ""]);
|
|
15463
15483
|
await this._processClosed;
|
|
15464
|
-
const { stdin
|
|
15465
|
-
if (
|
|
15466
|
-
|
|
15484
|
+
const { stdin } = this._options;
|
|
15485
|
+
if (stdin && typeof stdin !== "string") await stdin;
|
|
15486
|
+
proc.removeAllListeners();
|
|
15467
15487
|
if (this._thrownError) throw this._thrownError;
|
|
15468
|
-
const
|
|
15469
|
-
stderr
|
|
15470
|
-
stdout
|
|
15488
|
+
const result = {
|
|
15489
|
+
stderr,
|
|
15490
|
+
stdout,
|
|
15471
15491
|
exitCode: this.exitCode
|
|
15472
15492
|
};
|
|
15473
|
-
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new
|
|
15474
|
-
return
|
|
15493
|
+
if (this._options.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, result, this._command, this._args);
|
|
15494
|
+
return result;
|
|
15475
15495
|
}
|
|
15476
|
-
then(
|
|
15477
|
-
return this._waitForOutput().then(
|
|
15496
|
+
then(onfulfilled, onrejected) {
|
|
15497
|
+
return this._waitForOutput().then(onfulfilled, onrejected);
|
|
15478
15498
|
}
|
|
15479
15499
|
_streamOut;
|
|
15480
15500
|
_streamErr;
|
|
15481
15501
|
spawn() {
|
|
15482
|
-
const
|
|
15483
|
-
const
|
|
15484
|
-
const
|
|
15485
|
-
...
|
|
15486
|
-
...
|
|
15502
|
+
const cwd$1 = cwd();
|
|
15503
|
+
const options = this._options;
|
|
15504
|
+
const nodeOptions = {
|
|
15505
|
+
...defaultNodeOptions,
|
|
15506
|
+
...options.nodeOptions
|
|
15487
15507
|
};
|
|
15488
|
-
const
|
|
15508
|
+
const signals = [];
|
|
15489
15509
|
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
|
|
15510
|
+
if (options.timeout !== void 0) signals.push(AbortSignal.timeout(options.timeout));
|
|
15511
|
+
if (options.signal !== void 0) signals.push(options.signal);
|
|
15512
|
+
if (options.persist === true) nodeOptions.detached = true;
|
|
15513
|
+
if (signals.length > 0) nodeOptions.signal = combineSignals(signals);
|
|
15514
|
+
nodeOptions.env = computeEnv(cwd$1, nodeOptions.env, options.nodePath);
|
|
15515
|
+
const crossResult = normalizeSpawnCommand(this._command, this._args, nodeOptions);
|
|
15516
|
+
const handle = spawn(crossResult.command, crossResult.args, crossResult.options);
|
|
15517
|
+
if (handle.stderr) this._streamErr = handle.stderr;
|
|
15518
|
+
if (handle.stdout) this._streamOut = handle.stdout;
|
|
15519
|
+
this._process = handle;
|
|
15520
|
+
handle.once("error", this._onError);
|
|
15521
|
+
handle.once("close", this._onClose);
|
|
15522
|
+
if (handle.stdin) {
|
|
15523
|
+
const { stdin } = options;
|
|
15524
|
+
if (typeof stdin === "string") handle.stdin.end(stdin);
|
|
15525
|
+
else stdin?.process?.stdout?.pipe(handle.stdin);
|
|
15506
15526
|
}
|
|
15507
15527
|
}
|
|
15508
15528
|
_resetState() {
|
|
15509
15529
|
this._aborted = false;
|
|
15510
|
-
this._processClosed = new Promise((
|
|
15511
|
-
this._resolveClose =
|
|
15530
|
+
this._processClosed = new Promise((resolve) => {
|
|
15531
|
+
this._resolveClose = resolve;
|
|
15512
15532
|
});
|
|
15513
15533
|
this._thrownError = void 0;
|
|
15514
15534
|
}
|
|
15515
|
-
_onError = (
|
|
15516
|
-
if (
|
|
15535
|
+
_onError = (err) => {
|
|
15536
|
+
if (err.name === "AbortError" && (!(err.cause instanceof Error) || err.cause.name !== "TimeoutError")) {
|
|
15517
15537
|
this._aborted = true;
|
|
15518
15538
|
return;
|
|
15519
15539
|
}
|
|
15520
|
-
this._thrownError =
|
|
15540
|
+
this._thrownError = err;
|
|
15521
15541
|
};
|
|
15522
15542
|
_onClose = () => {
|
|
15523
15543
|
if (this._resolveClose) this._resolveClose();
|
|
15524
15544
|
};
|
|
15525
15545
|
};
|
|
15526
|
-
|
|
15527
|
-
const
|
|
15528
|
-
|
|
15529
|
-
return
|
|
15546
|
+
x = (command, args, userOptions) => {
|
|
15547
|
+
const proc = new ExecProcess(command, args, userOptions);
|
|
15548
|
+
proc.spawn();
|
|
15549
|
+
return proc;
|
|
15530
15550
|
};
|
|
15531
|
-
|
|
15551
|
+
exec = x;
|
|
15532
15552
|
}));
|
|
15533
15553
|
//#endregion
|
|
15534
15554
|
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/utils.js
|
|
@@ -15577,7 +15597,7 @@ async function pack(dir, opts) {
|
|
|
15577
15597
|
case "yarn": break;
|
|
15578
15598
|
default: command.push("--ignore-scripts");
|
|
15579
15599
|
}
|
|
15580
|
-
const output = await
|
|
15600
|
+
const output = await exec(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
15581
15601
|
const tarballFile = await fs$1.readdir(packDestination).then((files) => {
|
|
15582
15602
|
return files.find((file) => file.endsWith(".tgz") && output.stdout.includes(file));
|
|
15583
15603
|
});
|
|
@@ -15614,7 +15634,7 @@ async function packAsJson(dir, opts) {
|
|
|
15614
15634
|
case "yarn": break;
|
|
15615
15635
|
default: command.push("--ignore-scripts");
|
|
15616
15636
|
}
|
|
15617
|
-
let { stdout } = await
|
|
15637
|
+
let { stdout } = await exec(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
15618
15638
|
try {
|
|
15619
15639
|
stdout = stdout.trim();
|
|
15620
15640
|
if (packageManager === "pnpm") stdout = fixPnpmStdout(stdout);
|
|
@@ -17279,7 +17299,7 @@ function createTarballVfs(files) {
|
|
|
17279
17299
|
}
|
|
17280
17300
|
var init_vfs_tarball = __esmMin((() => {}));
|
|
17281
17301
|
//#endregion
|
|
17282
|
-
//#region ../../node_modules/.pnpm/package-manager-detector@1.
|
|
17302
|
+
//#region ../../node_modules/.pnpm/package-manager-detector@1.8.0/node_modules/package-manager-detector/dist/constants.mjs
|
|
17283
17303
|
var AGENTS, LOCKS, INSTALL_METADATA;
|
|
17284
17304
|
var init_constants = __esmMin((() => {
|
|
17285
17305
|
AGENTS = [
|
|
@@ -17288,6 +17308,7 @@ var init_constants = __esmMin((() => {
|
|
|
17288
17308
|
"yarn@berry",
|
|
17289
17309
|
"pnpm",
|
|
17290
17310
|
"pnpm@6",
|
|
17311
|
+
"pnpm-rush",
|
|
17291
17312
|
"bun",
|
|
17292
17313
|
"deno",
|
|
17293
17314
|
"nub",
|
|
@@ -17299,6 +17320,7 @@ var init_constants = __esmMin((() => {
|
|
|
17299
17320
|
"bun.lock": "bun",
|
|
17300
17321
|
"bun.lockb": "bun",
|
|
17301
17322
|
"deno.lock": "deno",
|
|
17323
|
+
"nub.lock": "nub",
|
|
17302
17324
|
"pnpm-lock.yaml": "pnpm",
|
|
17303
17325
|
"pnpm-workspace.yaml": "pnpm",
|
|
17304
17326
|
"yarn.lock": "yarn",
|
|
@@ -17319,7 +17341,7 @@ var init_constants = __esmMin((() => {
|
|
|
17319
17341
|
};
|
|
17320
17342
|
}));
|
|
17321
17343
|
//#endregion
|
|
17322
|
-
//#region ../../node_modules/.pnpm/package-manager-detector@1.
|
|
17344
|
+
//#region ../../node_modules/.pnpm/package-manager-detector@1.8.0/node_modules/package-manager-detector/dist/detect.mjs
|
|
17323
17345
|
var detect_exports = /* @__PURE__ */ __exportAll({
|
|
17324
17346
|
detect: () => detect,
|
|
17325
17347
|
getUserAgent: () => getUserAgent
|
|
@@ -17364,6 +17386,10 @@ async function detect(options = {}) {
|
|
|
17364
17386
|
for (const directory of lookup(cwd)) {
|
|
17365
17387
|
for (const strategy of strategies) switch (strategy) {
|
|
17366
17388
|
case "lockfile":
|
|
17389
|
+
if (await pathExists(PATH.join(directory, "rush.json"), "file")) return {
|
|
17390
|
+
name: "pnpm",
|
|
17391
|
+
agent: "pnpm-rush"
|
|
17392
|
+
};
|
|
17367
17393
|
for (const lock of Object.keys(LOCKS)) if (await pathExists(PATH.join(directory, lock), "file")) {
|
|
17368
17394
|
const name = LOCKS[lock];
|
|
17369
17395
|
const result = await parsePackageJson(PATH.join(directory, "package.json"), options);
|