@stablyai/playwright-test 2.1.7-rc.0 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DmGj704j.cjs → index-CfBVZ27r.cjs} +232 -232
- package/dist/index-CfBVZ27r.cjs.map +1 -0
- package/dist/{index-PsgSMFzY.mjs → index-CyV-2Mfg.mjs} +232 -232
- package/dist/index-CyV-2Mfg.mjs.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/reporter.cjs +1 -1
- package/dist/reporter.mjs +1 -1
- package/package.json +4 -4
- package/dist/index-DmGj704j.cjs.map +0 -1
- package/dist/index-PsgSMFzY.mjs.map +0 -1
|
@@ -6709,7 +6709,7 @@ function requirePRetry () {
|
|
|
6709
6709
|
}
|
|
6710
6710
|
|
|
6711
6711
|
var pRetryExports = requirePRetry();
|
|
6712
|
-
var
|
|
6712
|
+
var Wn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
|
|
6713
6713
|
|
|
6714
6714
|
var Bn = Object.defineProperty;
|
|
6715
6715
|
var a = (e, t) => Bn(e, "name", { value: t, configurable: true });
|
|
@@ -6785,11 +6785,11 @@ function ai(e, t = {}) {
|
|
|
6785
6785
|
return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => e(i), Object.assign(r, t), Object.freeze(r);
|
|
6786
6786
|
}
|
|
6787
6787
|
a(ai, "createHasher");
|
|
6788
|
-
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0),
|
|
6789
|
-
for (let e = 0, t =
|
|
6788
|
+
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0), Ve = BigInt(1), li = BigInt(2), fi = BigInt(7), hi = BigInt(256), di = BigInt(113), gr = [], _r = [], Ir = [];
|
|
6789
|
+
for (let e = 0, t = Ve, r = 1, n = 0; e < 24; e++) {
|
|
6790
6790
|
[r, n] = [n, (2 * r + 3 * n) % 5], gr.push(2 * (5 * n + r)), _r.push((e + 1) * (e + 2) / 2 % 64);
|
|
6791
6791
|
let i = ui;
|
|
6792
|
-
for (let o = 0; o < 7; o++) t = (t <<
|
|
6792
|
+
for (let o = 0; o < 7; o++) t = (t << Ve ^ (t >> fi) * di) % hi, t & li && (i ^= Ve << (Ve << BigInt(o)) - Ve);
|
|
6793
6793
|
Ir.push(i);
|
|
6794
6794
|
}
|
|
6795
6795
|
const Sr = zn(Ir, true), pi = Sr[0], mi = Sr[1], Rr = a((e, t, r) => r > 32 ? Zn(e, t, r) : Qn(e, t, r), "rotlH"), Tr = a((e, t, r) => r > 32 ? ei(e, t, r) : Xn(e, t, r), "rotlL");
|
|
@@ -7390,7 +7390,7 @@ function ye(e, t, r) {
|
|
|
7390
7390
|
}
|
|
7391
7391
|
a(ye, "toFixedPoint");
|
|
7392
7392
|
var Si = wr();
|
|
7393
|
-
const Ri = 24,
|
|
7393
|
+
const Ri = 24, We = 32, Ti = a(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
|
|
7394
7394
|
const e = new Uint32Array(1);
|
|
7395
7395
|
return globalThis.crypto.getRandomValues(e), e[0] / 4294967296;
|
|
7396
7396
|
} : Math.random, "createRandom"), Tt = Ti(), yt = a((e = 4, t = Tt) => {
|
|
@@ -7408,10 +7408,10 @@ const Ar = a((e = "") => {
|
|
|
7408
7408
|
const t = new TextEncoder();
|
|
7409
7409
|
return yi(_i(t.encode(e))).toString(36).slice(1);
|
|
7410
7410
|
}, "hash"), br = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), wi = a((e) => br[Math.floor(e() * br.length)], "randomLetter"), Ai = a(({ globalObj: e = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t = Tt } = {}) => {
|
|
7411
|
-
const r = Object.keys(e).toString(), n = r.length ? r + yt(
|
|
7412
|
-
return Ar(n).substring(0,
|
|
7411
|
+
const r = Object.keys(e).toString(), n = r.length ? r + yt(We, t) : yt(We, t);
|
|
7412
|
+
return Ar(n).substring(0, We);
|
|
7413
7413
|
}, "createFingerprint"), bi = a((e) => () => e++, "createCounter"), vi = 476782367, Ci = a(({ random: e = Tt, counter: t = bi(Math.floor(e() * vi)), length: r = Ri, fingerprint: n = Ai({ random: e }) } = {}) => {
|
|
7414
|
-
if (r >
|
|
7414
|
+
if (r > We) throw new Error(`Length must be between 2 and ${We}. Received: ${r}`);
|
|
7415
7415
|
return a(function() {
|
|
7416
7416
|
const o = wi(e), c = Date.now().toString(36), l = t().toString(36), p = yt(r, e), E = `${c + p + l + n}`;
|
|
7417
7417
|
return `${o + Ar(E).substring(1, r)}`;
|
|
@@ -7568,9 +7568,9 @@ var Li = Pi(), Q = Uint8Array, ae = Uint16Array, wt = Int32Array, ot = new Q([0,
|
|
|
7568
7568
|
return { b: r, r: i };
|
|
7569
7569
|
}, "freb"), Br = Ur(ot, 2), Pr = Br.b, bt = Br.r;
|
|
7570
7570
|
Pr[28] = 258, bt[258] = 28;
|
|
7571
|
-
for (var Lr = Ur(st, 0), Oi = Lr.b, Or = Lr.r, vt = new ae(32768),
|
|
7572
|
-
var Ue = (
|
|
7573
|
-
Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4, vt[
|
|
7571
|
+
for (var Lr = Ur(st, 0), Oi = Lr.b, Or = Lr.r, vt = new ae(32768), V = 0; V < 32768; ++V) {
|
|
7572
|
+
var Ue = (V & 43690) >> 1 | (V & 21845) << 1;
|
|
7573
|
+
Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4, vt[V] = ((Ue & 65280) >> 8 | (Ue & 255) << 8) >> 1;
|
|
7574
7574
|
}
|
|
7575
7575
|
for (var _e = a((function(e, t, r) {
|
|
7576
7576
|
for (var n = e.length, i = 0, o = new ae(t); i < n; ++i) e[i] && ++o[e[i] - 1];
|
|
@@ -7583,11 +7583,11 @@ for (var _e = a((function(e, t, r) {
|
|
|
7583
7583
|
for (i = 0; i < n; ++i) if (e[i]) for (var E = i << 4 | e[i], h = t - e[i], T = c[e[i] - 1]++ << h, v = T | (1 << h) - 1; T <= v; ++T) l[vt[T] >> p] = E;
|
|
7584
7584
|
} else for (l = new ae(n), i = 0; i < n; ++i) e[i] && (l[i] = vt[c[e[i] - 1]++] >> 15 - e[i]);
|
|
7585
7585
|
return l;
|
|
7586
|
-
}), "hMap"), Be = new Q(288),
|
|
7587
|
-
for (var
|
|
7588
|
-
for (var
|
|
7589
|
-
for (var
|
|
7590
|
-
for (var Je = new Q(32),
|
|
7586
|
+
}), "hMap"), Be = new Q(288), V = 0; V < 144; ++V) Be[V] = 8;
|
|
7587
|
+
for (var V = 144; V < 256; ++V) Be[V] = 9;
|
|
7588
|
+
for (var V = 256; V < 280; ++V) Be[V] = 7;
|
|
7589
|
+
for (var V = 280; V < 288; ++V) Be[V] = 8;
|
|
7590
|
+
for (var Je = new Q(32), V = 0; V < 32; ++V) Je[V] = 5;
|
|
7591
7591
|
var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1), Ct = a(function(e) {
|
|
7592
7592
|
for (var t = e[0], r = 1; r < e.length; ++r) e[r] > t && (t = e[r]);
|
|
7593
7593
|
return t;
|
|
@@ -7877,18 +7877,18 @@ function Ki(e, t) {
|
|
|
7877
7877
|
return qi(e, t || {}, 0, 0);
|
|
7878
7878
|
}
|
|
7879
7879
|
a(Ki, "deflateSync");
|
|
7880
|
-
function
|
|
7880
|
+
function Vi(e, t) {
|
|
7881
7881
|
return $i(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
7882
7882
|
}
|
|
7883
|
-
a(
|
|
7883
|
+
a(Vi, "inflateSync");
|
|
7884
7884
|
var $r = a(function(e, t, r, n) {
|
|
7885
7885
|
for (var i in e) {
|
|
7886
7886
|
var o = e[i], c = t + i, l = n;
|
|
7887
7887
|
Array.isArray(o) && (l = Gr(n, o[1]), o = o[0]), o instanceof Q ? r[c] = [o, l] : (r[c += "/"] = [new Q(0), l], $r(o, c, r, n));
|
|
7888
7888
|
}
|
|
7889
|
-
}, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Nt = typeof TextDecoder < "u" && new TextDecoder(),
|
|
7889
|
+
}, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Nt = typeof TextDecoder < "u" && new TextDecoder(), Wi = 0;
|
|
7890
7890
|
try {
|
|
7891
|
-
Nt.decode(xr, { stream: true }),
|
|
7891
|
+
Nt.decode(xr, { stream: true }), Wi = 1;
|
|
7892
7892
|
} catch {
|
|
7893
7893
|
}
|
|
7894
7894
|
var Yi = a(function(e) {
|
|
@@ -7983,7 +7983,7 @@ function to(e, t) {
|
|
|
7983
7983
|
}
|
|
7984
7984
|
for (var p = 0; p < i; ++p) {
|
|
7985
7985
|
var E = Qi(e, o, c), h = E[0], T = E[1], v = E[2], C = E[3], D = E[4], M = E[5], b = zi(e, M);
|
|
7986
|
-
o = D, h ? h == 8 ? r[C] =
|
|
7986
|
+
o = D, h ? h == 8 ? r[C] = Vi(e.subarray(b, b + T), { out: new Q(v) }) : ne(14, "unknown compression type " + h) : r[C] = ze(e, b, b + T);
|
|
7987
7987
|
}
|
|
7988
7988
|
return r;
|
|
7989
7989
|
}
|
|
@@ -8027,7 +8027,7 @@ const Ae = Symbol.for("@ts-pattern/matcher"), oo = Symbol.for("@ts-pattern/isVar
|
|
|
8027
8027
|
return Mt(e) ? ct(e) ? (t = (r = (n = e[Ae]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? Ze(e, Pe) : Ze(Object.values(e), Pe) : [];
|
|
8028
8028
|
}, "s"), Ze = a((e, t) => e.reduce((r, n) => r.concat(t(n)), []), "c");
|
|
8029
8029
|
function ce(e) {
|
|
8030
|
-
return Object.assign(e, { optional: a(() => so(e), "optional"), and: a((t) =>
|
|
8030
|
+
return Object.assign(e, { optional: a(() => so(e), "optional"), and: a((t) => W(e, t), "and"), or: a((t) => ao(e, t), "or"), select: a((t) => t === void 0 ? qr(e) : qr(t, e), "select") });
|
|
8031
8031
|
}
|
|
8032
8032
|
a(ce, "a");
|
|
8033
8033
|
function so(e) {
|
|
@@ -8040,7 +8040,7 @@ function so(e) {
|
|
|
8040
8040
|
}, "match"), getSelectionKeys: a(() => Pe(e), "getSelectionKeys"), matcherType: "optional" }) });
|
|
8041
8041
|
}
|
|
8042
8042
|
a(so, "h");
|
|
8043
|
-
function
|
|
8043
|
+
function W(...e) {
|
|
8044
8044
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8045
8045
|
let r = {};
|
|
8046
8046
|
const n = a((i, o) => {
|
|
@@ -8049,7 +8049,7 @@ function V(...e) {
|
|
|
8049
8049
|
return { matched: e.every((i) => Se(i, t, n)), selections: r };
|
|
8050
8050
|
}, "match"), getSelectionKeys: a(() => Ze(e, Pe), "getSelectionKeys"), matcherType: "and" }) });
|
|
8051
8051
|
}
|
|
8052
|
-
a(
|
|
8052
|
+
a(W, "d");
|
|
8053
8053
|
function ao(...e) {
|
|
8054
8054
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8055
8055
|
let r = {};
|
|
@@ -8091,22 +8091,22 @@ function Oe(e) {
|
|
|
8091
8091
|
}
|
|
8092
8092
|
a(Oe, "j"), ce(K(Kr)), ce(K(Kr));
|
|
8093
8093
|
const Ne = a((e) => Object.assign(ce(e), { startsWith: a((t) => {
|
|
8094
|
-
return Ne(
|
|
8094
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.startsWith(r)))));
|
|
8095
8095
|
var r;
|
|
8096
8096
|
}, "startsWith"), endsWith: a((t) => {
|
|
8097
|
-
return Ne(
|
|
8097
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.endsWith(r)))));
|
|
8098
8098
|
var r;
|
|
8099
|
-
}, "endsWith"), minLength: a((t) => Ne(
|
|
8100
|
-
return Ne(
|
|
8099
|
+
}, "endsWith"), minLength: a((t) => Ne(W(e, ((r) => K((n) => Le(n) && n.length >= r))(t))), "minLength"), length: a((t) => Ne(W(e, ((r) => K((n) => Le(n) && n.length === r))(t))), "length"), maxLength: a((t) => Ne(W(e, ((r) => K((n) => Le(n) && n.length <= r))(t))), "maxLength"), includes: a((t) => {
|
|
8100
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.includes(r)))));
|
|
8101
8101
|
var r;
|
|
8102
8102
|
}, "includes"), regex: a((t) => {
|
|
8103
|
-
return Ne(
|
|
8103
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && !!n.match(r)))));
|
|
8104
8104
|
var r;
|
|
8105
8105
|
}, "regex") }), "x");
|
|
8106
8106
|
Ne(K(Le));
|
|
8107
|
-
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(
|
|
8107
|
+
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(W(e, ((n, i) => K((o) => Re(o) && n <= o && i >= o))(t, r))), "between"), lt: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n < r))(t))), "lt"), gt: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n > r))(t))), "gt"), lte: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n <= r))(t))), "lte"), gte: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n >= r))(t))), "gte"), int: a(() => Te(W(e, K((t) => Re(t) && Number.isInteger(t)))), "int"), finite: a(() => Te(W(e, K((t) => Re(t) && Number.isFinite(t)))), "finite"), positive: a(() => Te(W(e, K((t) => Re(t) && t > 0))), "positive"), negative: a(() => Te(W(e, K((t) => Re(t) && t < 0))), "negative") }), "N");
|
|
8108
8108
|
Te(K(Re));
|
|
8109
|
-
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(
|
|
8109
|
+
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(W(e, ((n, i) => K((o) => Oe(o) && n <= o && i >= o))(t, r))), "between"), lt: a((t) => De(W(e, ((r) => K((n) => Oe(n) && n < r))(t))), "lt"), gt: a((t) => De(W(e, ((r) => K((n) => Oe(n) && n > r))(t))), "gt"), lte: a((t) => De(W(e, ((r) => K((n) => Oe(n) && n <= r))(t))), "lte"), gte: a((t) => De(W(e, ((r) => K((n) => Oe(n) && n >= r))(t))), "gte"), positive: a(() => De(W(e, K((t) => Oe(t) && t > 0))), "positive"), negative: a(() => De(W(e, K((t) => Oe(t) && t < 0))), "negative") }), "k");
|
|
8110
8110
|
De(K(Oe)), ce(K(function(e) {
|
|
8111
8111
|
return typeof e == "boolean";
|
|
8112
8112
|
})), ce(K(function(e) {
|
|
@@ -8199,12 +8199,12 @@ function Ge({ obj: e, sensitiveValues: t }) {
|
|
|
8199
8199
|
return Object.fromEntries(Object.entries(e).map(([r, n]) => [r, mo(r) ? n : et({ sensitiveValues: t, value: n })]));
|
|
8200
8200
|
}
|
|
8201
8201
|
a(Ge, "scrubObject");
|
|
8202
|
-
function
|
|
8202
|
+
function Vr({ error: e, sensitiveValues: t }) {
|
|
8203
8203
|
return e ? { ...e, message: se({ sensitiveValues: t, str: e.message }) } : void 0;
|
|
8204
8204
|
}
|
|
8205
|
-
a(
|
|
8205
|
+
a(Vr, "scrubError");
|
|
8206
8206
|
function Eo({ event: e, sensitiveValues: t }) {
|
|
8207
|
-
return uo(e).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: se({ sensitiveValues: t, str: n.preview }), value: et({ sensitiveValues: t, value: n.value }) })), text: se({ sensitiveValues: t, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }), title: r.title ? se({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error:
|
|
8207
|
+
return uo(e).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: se({ sensitiveValues: t, str: n.preview }), value: et({ sensitiveValues: t, value: n.value }) })), text: se({ sensitiveValues: t, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }), title: r.title ? se({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: Vr({ error: r.error, sensitiveValues: t }), result: r.result !== void 0 ? et({ sensitiveValues: t, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: Vr({ error: r.error, sensitiveValues: t }), params: Ge({ obj: r.params, sensitiveValues: t }), result: r.result !== void 0 ? et({ sensitiveValues: t, value: r.result }) : void 0, title: r.title ? se({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? se({ sensitiveValues: t, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: se({ sensitiveValues: t, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: se({ sensitiveValues: t, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Ge({ obj: r.options, sensitiveValues: t }), title: r.title ? se({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
|
|
8208
8208
|
}
|
|
8209
8209
|
a(Eo, "scrubTraceEvent");
|
|
8210
8210
|
function go({ content: e, sensitiveValues: t }) {
|
|
@@ -8222,11 +8222,11 @@ function go({ content: e, sensitiveValues: t }) {
|
|
|
8222
8222
|
`));
|
|
8223
8223
|
}
|
|
8224
8224
|
a(go, "scrubJsonLinesFile");
|
|
8225
|
-
function
|
|
8225
|
+
function Wr({ content: e, sensitiveValues: t }) {
|
|
8226
8226
|
const r = new TextDecoder$1(), n = new TextEncoder$1(), i = se({ sensitiveValues: t, str: r.decode(e) });
|
|
8227
8227
|
return n.encode(i);
|
|
8228
8228
|
}
|
|
8229
|
-
a(
|
|
8229
|
+
a(Wr, "scrubTextFile");
|
|
8230
8230
|
async function Gt({ sensitiveValues: e, traceBuffer: t }) {
|
|
8231
8231
|
const r = jr(e);
|
|
8232
8232
|
if (r.length === 0) return new Uint8Array(t);
|
|
@@ -8236,11 +8236,11 @@ async function Gt({ sensitiveValues: e, traceBuffer: t }) {
|
|
|
8236
8236
|
a(Gt, "scrubTrace");
|
|
8237
8237
|
async function _o({ content: e, filename: t, sensitiveValues: r }) {
|
|
8238
8238
|
const n = t.toLowerCase();
|
|
8239
|
-
return n.endsWith(".trace") || n.endsWith(".network") ? go({ content: e, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ?
|
|
8239
|
+
return n.endsWith(".trace") || n.endsWith(".network") ? go({ content: e, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Wr({ content: e, sensitiveValues: r }) : n.startsWith("resources/") ? Io({ content: e, sensitiveValues: r }) : e;
|
|
8240
8240
|
}
|
|
8241
8241
|
a(_o, "scrubFile");
|
|
8242
8242
|
async function Io({ content: e, sensitiveValues: t }) {
|
|
8243
|
-
return await Li.isBinaryFile(Buffer.from(e)) ? e :
|
|
8243
|
+
return await Li.isBinaryFile(Buffer.from(e)) ? e : Wr({ content: e, sensitiveValues: t });
|
|
8244
8244
|
}
|
|
8245
8245
|
a(Io, "scrubResourceFile");
|
|
8246
8246
|
async function So({ sensitiveValues: e, tracePath: t }) {
|
|
@@ -8257,8 +8257,8 @@ async function Ro({ sensitiveValues: e, traceFd: t, tracePath: r }) {
|
|
|
8257
8257
|
return Gt({ sensitiveValues: e, traceBuffer: o });
|
|
8258
8258
|
}
|
|
8259
8259
|
a(Ro, "scrubTraceFromFd");
|
|
8260
|
-
const Yr = { AUTHENTICATION_FAILED: 1008 };
|
|
8261
|
-
class
|
|
8260
|
+
const Yr = { AUTHENTICATION_FAILED: 1008 }, To = 2e4, yo = 5e4, wo = 3e4;
|
|
8261
|
+
class Ao {
|
|
8262
8262
|
static {
|
|
8263
8263
|
a(this, "WebSocketClient");
|
|
8264
8264
|
}
|
|
@@ -8303,19 +8303,19 @@ class To {
|
|
|
8303
8303
|
}
|
|
8304
8304
|
scheduleReconnect() {
|
|
8305
8305
|
this.reconnectTimer && clearTimeout(this.reconnectTimer);
|
|
8306
|
-
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts),
|
|
8306
|
+
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), wo);
|
|
8307
8307
|
this.reconnectAttempts++, this.reconnectTimer = setTimeout(() => {
|
|
8308
8308
|
this.connect();
|
|
8309
8309
|
}, t), this.reconnectTimer.unref();
|
|
8310
8310
|
}
|
|
8311
8311
|
startPingInterval() {
|
|
8312
8312
|
this.clearPingInterval(), this.lastPongAt = Date.now(), this.pingIntervalTimer = setInterval(() => {
|
|
8313
|
-
if (Date.now() - this.lastPongAt >
|
|
8313
|
+
if (Date.now() - this.lastPongAt > yo) {
|
|
8314
8314
|
this.clearPingInterval(), this.socket?.terminate();
|
|
8315
8315
|
return;
|
|
8316
8316
|
}
|
|
8317
8317
|
this.socket?.readyState === WebSocket.OPEN && this.socket.send(JSON.stringify({ type: "ping" }));
|
|
8318
|
-
},
|
|
8318
|
+
}, To), this.pingIntervalTimer.unref();
|
|
8319
8319
|
}
|
|
8320
8320
|
clearPingInterval() {
|
|
8321
8321
|
this.pingIntervalTimer && (clearInterval(this.pingIntervalTimer), this.pingIntervalTimer = void 0);
|
|
@@ -8362,7 +8362,7 @@ class To {
|
|
|
8362
8362
|
return [...this.buffer];
|
|
8363
8363
|
}
|
|
8364
8364
|
}
|
|
8365
|
-
var
|
|
8365
|
+
var bo = { detect({ env: e }) {
|
|
8366
8366
|
return !!e.APPVEYOR;
|
|
8367
8367
|
}, configuration({ env: e }) {
|
|
8368
8368
|
const t = e.APPVEYOR_PULL_REQUEST_NUMBER, r = !!t;
|
|
@@ -8376,31 +8376,31 @@ function tt(e) {
|
|
|
8376
8376
|
return e ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1] : void 0;
|
|
8377
8377
|
}
|
|
8378
8378
|
a(tt, "parseBranch");
|
|
8379
|
-
var
|
|
8379
|
+
var vo = { detect({ env: e }) {
|
|
8380
8380
|
return !!e.BUILD_BUILDURI;
|
|
8381
8381
|
}, configuration({ env: e }) {
|
|
8382
8382
|
const t = e.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!t;
|
|
8383
8383
|
return { name: "Azure Pipelines", service: "azurePipelines", commit: e.BUILD_SOURCEVERSION, build: e.BUILD_BUILDNUMBER, branch: tt(r ? e.SYSTEM_PULLREQUEST_TARGETBRANCH : e.BUILD_SOURCEBRANCH), pr: t, isPr: r, prBranch: tt(r ? e.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: e.BUILD_REPOSITORY_LOCALPATH };
|
|
8384
|
-
} },
|
|
8384
|
+
} }, Co = { detect({ env: e }) {
|
|
8385
8385
|
return !!e.bamboo_agentId;
|
|
8386
8386
|
}, configuration({ env: e }) {
|
|
8387
8387
|
return { name: "Bamboo", service: "bamboo", commit: e.bamboo_planRepository_1_revision, build: e.bamboo_buildNumber, buildUrl: e.bamboo_buildResultsUrl, branch: e.bamboo_planRepository_1_branchName, job: e.bamboo_buildKey, root: e.bamboo_build_working_directory };
|
|
8388
|
-
} },
|
|
8388
|
+
} }, Uo = { detect({ env: e }) {
|
|
8389
8389
|
return !!e.BITBUCKET_BUILD_NUMBER;
|
|
8390
8390
|
}, configuration({ env: e }) {
|
|
8391
8391
|
return { name: "Bitbucket Pipelines", service: "bitbucket", commit: e.BITBUCKET_COMMIT, tag: e.BITBUCKET_TAG, build: e.BITBUCKET_BUILD_NUMBER, buildUrl: `https://bitbucket.org/${e.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${e.BITBUCKET_BUILD_NUMBER}`, branch: e.BITBUCKET_BRANCH, slug: e.BITBUCKET_REPO_FULL_NAME, root: e.BITBUCKET_CLONE_DIR };
|
|
8392
|
-
} },
|
|
8392
|
+
} }, Bo = { detect({ env: e }) {
|
|
8393
8393
|
return !!e.BITRISE_IO;
|
|
8394
8394
|
}, configuration({ env: e }) {
|
|
8395
8395
|
const t = e.BITRISE_PULL_REQUEST === "false" ? void 0 : e.BITRISE_PULL_REQUEST, r = !!t;
|
|
8396
8396
|
return { name: "Bitrise", service: "bitrise", commit: e.BITRISE_GIT_COMMIT, tag: e.BITRISE_GIT_TAG, build: e.BITRISE_BUILD_NUMBER, buildUrl: e.BITRISE_BUILD_URL, branch: r ? e.BITRISEIO_GIT_BRANCH_DEST : e.BITRISE_GIT_BRANCH, pr: t, isPr: r, prBranch: r ? e.BITRISE_GIT_BRANCH : void 0, slug: e.BITRISE_APP_SLUG };
|
|
8397
|
-
} },
|
|
8397
|
+
} }, Po = { detect({ env: e }) {
|
|
8398
8398
|
return !!e.BUDDY_WORKSPACE_ID;
|
|
8399
8399
|
}, configuration({ env: e }) {
|
|
8400
8400
|
const t = Jr(e.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!t;
|
|
8401
8401
|
return { name: "Buddy", service: "buddy", commit: e.BUDDY_EXECUTION_REVISION, tag: e.BUDDY_EXECUTION_TAG, build: e.BUDDY_EXECUTION_ID, buildUrl: e.BUDDY_EXECUTION_URL, branch: r ? e.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : e.BUDDY_EXECUTION_BRANCH, pr: t, isPr: r, slug: e.BUDDY_REPO_SLUG };
|
|
8402
8402
|
} }, $e = { exports: {} }, $t, zr;
|
|
8403
|
-
function
|
|
8403
|
+
function Lo() {
|
|
8404
8404
|
if (zr) return $t;
|
|
8405
8405
|
zr = 1, $t = n, n.sync = i;
|
|
8406
8406
|
var e = qe;
|
|
@@ -8429,9 +8429,9 @@ function Uo() {
|
|
|
8429
8429
|
}
|
|
8430
8430
|
return a(i, "sync"), $t;
|
|
8431
8431
|
}
|
|
8432
|
-
a(
|
|
8432
|
+
a(Lo, "requireWindows");
|
|
8433
8433
|
var kt, Qr;
|
|
8434
|
-
function
|
|
8434
|
+
function Oo() {
|
|
8435
8435
|
if (Qr) return kt;
|
|
8436
8436
|
Qr = 1, kt = t, t.sync = r;
|
|
8437
8437
|
var e = qe;
|
|
@@ -8455,13 +8455,13 @@ function Bo() {
|
|
|
8455
8455
|
}
|
|
8456
8456
|
return a(i, "checkMode"), kt;
|
|
8457
8457
|
}
|
|
8458
|
-
a(
|
|
8458
|
+
a(Oo, "requireMode");
|
|
8459
8459
|
var Ht, Xr;
|
|
8460
|
-
function
|
|
8460
|
+
function No() {
|
|
8461
8461
|
if (Xr) return Ht;
|
|
8462
8462
|
Xr = 1;
|
|
8463
8463
|
var e;
|
|
8464
|
-
process.platform === "win32" || Bi.TESTING_WINDOWS ? e =
|
|
8464
|
+
process.platform === "win32" || Bi.TESTING_WINDOWS ? e = Lo() : e = Oo(), Ht = t, t.sync = r;
|
|
8465
8465
|
function t(n, i, o) {
|
|
8466
8466
|
if (typeof i == "function" && (o = i, i = {}), !o) {
|
|
8467
8467
|
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
@@ -8486,12 +8486,12 @@ function Po() {
|
|
|
8486
8486
|
}
|
|
8487
8487
|
return a(r, "sync"), Ht;
|
|
8488
8488
|
}
|
|
8489
|
-
a(
|
|
8489
|
+
a(No, "requireIsexe");
|
|
8490
8490
|
var Ft, Zr;
|
|
8491
|
-
function
|
|
8491
|
+
function Do() {
|
|
8492
8492
|
if (Zr) return Ft;
|
|
8493
8493
|
Zr = 1;
|
|
8494
|
-
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = Ke, r = e ? ";" : ":", n =
|
|
8494
|
+
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = Ke, r = e ? ";" : ":", n = No(), i = a((p) => Object.assign(new Error(`not found: ${p}`), { code: "ENOENT" }), "getNotFoundError"), o = a((p, E) => {
|
|
8495
8495
|
const h = E.colon || r, T = p.match(/\//) || e && p.match(/\\/) ? [""] : [...e ? [process.cwd()] : [], ...(E.path || process.env.PATH || "").split(h)], v = e ? E.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", C = e ? v.split(h) : [""];
|
|
8496
8496
|
return e && p.indexOf(".") !== -1 && C[0] !== "" && C.unshift(""), { pathEnv: T, pathExt: C, pathExtExe: v };
|
|
8497
8497
|
}, "getPathInfo"), c = a((p, E, h) => {
|
|
@@ -8530,9 +8530,9 @@ function Lo() {
|
|
|
8530
8530
|
}, "whichSync");
|
|
8531
8531
|
return Ft = c, c.sync = l, Ft;
|
|
8532
8532
|
}
|
|
8533
|
-
a(
|
|
8533
|
+
a(Do, "requireWhich");
|
|
8534
8534
|
var ut = { exports: {} }, en;
|
|
8535
|
-
function
|
|
8535
|
+
function Mo() {
|
|
8536
8536
|
if (en) return ut.exports;
|
|
8537
8537
|
en = 1;
|
|
8538
8538
|
const e = a((t = {}) => {
|
|
@@ -8541,12 +8541,12 @@ function Oo() {
|
|
|
8541
8541
|
}, "pathKey");
|
|
8542
8542
|
return ut.exports = e, ut.exports.default = e, ut.exports;
|
|
8543
8543
|
}
|
|
8544
|
-
a(
|
|
8544
|
+
a(Mo, "requirePathKey");
|
|
8545
8545
|
var jt, tn;
|
|
8546
|
-
function
|
|
8546
|
+
function xo() {
|
|
8547
8547
|
if (tn) return jt;
|
|
8548
8548
|
tn = 1;
|
|
8549
|
-
const e = Ke, t =
|
|
8549
|
+
const e = Ke, t = Do(), r = Mo();
|
|
8550
8550
|
function n(o, c) {
|
|
8551
8551
|
const l = o.options.env || process.env, p = process.cwd(), E = o.options.cwd != null, h = E && process.chdir !== void 0 && !process.chdir.disabled;
|
|
8552
8552
|
if (h) try {
|
|
@@ -8568,9 +8568,9 @@ function No() {
|
|
|
8568
8568
|
}
|
|
8569
8569
|
return a(i, "resolveCommand"), jt = i, jt;
|
|
8570
8570
|
}
|
|
8571
|
-
a(
|
|
8571
|
+
a(xo, "requireResolveCommand");
|
|
8572
8572
|
var lt = {}, rn;
|
|
8573
|
-
function
|
|
8573
|
+
function Go() {
|
|
8574
8574
|
if (rn) return lt;
|
|
8575
8575
|
rn = 1;
|
|
8576
8576
|
const e = /([()\][%!^"`<>&|;, *?])/g;
|
|
@@ -8583,17 +8583,17 @@ function Do() {
|
|
|
8583
8583
|
}
|
|
8584
8584
|
return a(r, "escapeArgument"), lt.command = t, lt.argument = r, lt;
|
|
8585
8585
|
}
|
|
8586
|
-
a(
|
|
8586
|
+
a(Go, "require_escape");
|
|
8587
8587
|
var qt, nn;
|
|
8588
|
-
function
|
|
8588
|
+
function $o() {
|
|
8589
8589
|
return nn || (nn = 1, qt = /^#!(.*)/), qt;
|
|
8590
8590
|
}
|
|
8591
|
-
a(
|
|
8591
|
+
a($o, "requireShebangRegex");
|
|
8592
8592
|
var Kt, on;
|
|
8593
|
-
function
|
|
8593
|
+
function ko() {
|
|
8594
8594
|
if (on) return Kt;
|
|
8595
8595
|
on = 1;
|
|
8596
|
-
const e =
|
|
8596
|
+
const e = $o();
|
|
8597
8597
|
return Kt = a((t = "") => {
|
|
8598
8598
|
const r = t.match(e);
|
|
8599
8599
|
if (!r) return null;
|
|
@@ -8601,12 +8601,12 @@ function xo() {
|
|
|
8601
8601
|
return o === "env" ? i : i ? `${o} ${i}` : o;
|
|
8602
8602
|
}, "shebangCommand"), Kt;
|
|
8603
8603
|
}
|
|
8604
|
-
a(
|
|
8605
|
-
var
|
|
8606
|
-
function
|
|
8607
|
-
if (sn) return
|
|
8604
|
+
a(ko, "requireShebangCommand");
|
|
8605
|
+
var Vt, sn;
|
|
8606
|
+
function Ho() {
|
|
8607
|
+
if (sn) return Vt;
|
|
8608
8608
|
sn = 1;
|
|
8609
|
-
const e = qe, t =
|
|
8609
|
+
const e = qe, t = ko();
|
|
8610
8610
|
function r(n) {
|
|
8611
8611
|
const o = Buffer.alloc(150);
|
|
8612
8612
|
let c;
|
|
@@ -8616,14 +8616,14 @@ function Go() {
|
|
|
8616
8616
|
}
|
|
8617
8617
|
return t(o.toString());
|
|
8618
8618
|
}
|
|
8619
|
-
return a(r, "readShebang"),
|
|
8619
|
+
return a(r, "readShebang"), Vt = r, Vt;
|
|
8620
8620
|
}
|
|
8621
|
-
a(
|
|
8622
|
-
var
|
|
8623
|
-
function
|
|
8624
|
-
if (an) return
|
|
8621
|
+
a(Ho, "requireReadShebang");
|
|
8622
|
+
var Wt, an;
|
|
8623
|
+
function Fo() {
|
|
8624
|
+
if (an) return Wt;
|
|
8625
8625
|
an = 1;
|
|
8626
|
-
const e = Ke, t =
|
|
8626
|
+
const e = Ke, t = xo(), r = Go(), n = Ho(), i = process.platform === "win32", o = /\.(?:com|exe)$/i, c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
8627
8627
|
function l(h) {
|
|
8628
8628
|
h.file = t(h);
|
|
8629
8629
|
const T = h.file && n(h.file);
|
|
@@ -8647,11 +8647,11 @@ function $o() {
|
|
|
8647
8647
|
const C = { command: h, args: T, options: v, file: void 0, original: { command: h, args: T } };
|
|
8648
8648
|
return v.shell ? C : p(C);
|
|
8649
8649
|
}
|
|
8650
|
-
return a(E, "parse"),
|
|
8650
|
+
return a(E, "parse"), Wt = E, Wt;
|
|
8651
8651
|
}
|
|
8652
|
-
a(
|
|
8652
|
+
a(Fo, "requireParse");
|
|
8653
8653
|
var Yt, cn;
|
|
8654
|
-
function
|
|
8654
|
+
function jo() {
|
|
8655
8655
|
if (cn) return Yt;
|
|
8656
8656
|
cn = 1;
|
|
8657
8657
|
const e = process.platform === "win32";
|
|
@@ -8680,12 +8680,12 @@ function ko() {
|
|
|
8680
8680
|
}
|
|
8681
8681
|
return a(i, "verifyENOENTSync"), Yt = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: t }, Yt;
|
|
8682
8682
|
}
|
|
8683
|
-
a(
|
|
8683
|
+
a(jo, "requireEnoent");
|
|
8684
8684
|
var un;
|
|
8685
|
-
function
|
|
8685
|
+
function qo() {
|
|
8686
8686
|
if (un) return $e.exports;
|
|
8687
8687
|
un = 1;
|
|
8688
|
-
const e = require$$0$2, t =
|
|
8688
|
+
const e = require$$0$2, t = Fo(), r = jo();
|
|
8689
8689
|
function n(o, c, l) {
|
|
8690
8690
|
const p = t(o, c, l), E = e.spawn(p.command, p.args, p.options);
|
|
8691
8691
|
return r.hookChildProcess(E, p), E;
|
|
@@ -8697,76 +8697,76 @@ function Ho() {
|
|
|
8697
8697
|
}
|
|
8698
8698
|
return a(i, "spawnSync"), $e.exports = n, $e.exports.spawn = n, $e.exports.sync = i, $e.exports._parse = t, $e.exports._enoent = r, $e.exports;
|
|
8699
8699
|
}
|
|
8700
|
-
a(
|
|
8701
|
-
var
|
|
8702
|
-
function
|
|
8700
|
+
a(qo, "requireCrossSpawn");
|
|
8701
|
+
var Ko = qo(), Vo = vr(Ko);
|
|
8702
|
+
function Wo(e) {
|
|
8703
8703
|
const t = typeof e == "string" ? `
|
|
8704
8704
|
` : 10, r = typeof e == "string" ? "\r" : 13;
|
|
8705
8705
|
return e[e.length - 1] === t && (e = e.slice(0, -1)), e[e.length - 1] === r && (e = e.slice(0, -1)), e;
|
|
8706
8706
|
}
|
|
8707
|
-
a(
|
|
8707
|
+
a(Wo, "stripFinalNewline");
|
|
8708
8708
|
function ln(e = {}) {
|
|
8709
8709
|
const { env: t = process.env, platform: r = process.platform } = e;
|
|
8710
8710
|
return r !== "win32" ? "PATH" : Object.keys(t).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
|
|
8711
8711
|
}
|
|
8712
8712
|
a(ln, "pathKey");
|
|
8713
|
-
const
|
|
8713
|
+
const Yo = a(({ cwd: e = y.cwd(), path: t = y.env[ln()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
|
|
8714
8714
|
const o = e instanceof URL ? fileURLToPath(e) : e, c = path.resolve(o), l = [];
|
|
8715
|
-
return r &&
|
|
8716
|
-
}, "npmRunPath"),
|
|
8715
|
+
return r && Jo(l, c), i && zo(l, n, c), [...l, t].join(path.delimiter);
|
|
8716
|
+
}, "npmRunPath"), Jo = a((e, t) => {
|
|
8717
8717
|
let r;
|
|
8718
8718
|
for (; r !== t; ) e.push(path.join(t, "node_modules/.bin")), r = t, t = path.resolve(t, "..");
|
|
8719
|
-
}, "applyPreferLocal"),
|
|
8719
|
+
}, "applyPreferLocal"), zo = a((e, t, r) => {
|
|
8720
8720
|
const n = t instanceof URL ? fileURLToPath(t) : t;
|
|
8721
8721
|
e.push(path.resolve(r, n, ".."));
|
|
8722
|
-
}, "applyExecPath"),
|
|
8722
|
+
}, "applyExecPath"), Qo = a(({ env: e = y.env, ...t } = {}) => {
|
|
8723
8723
|
e = { ...e };
|
|
8724
8724
|
const r = ln({ env: e });
|
|
8725
|
-
return t.path = e[r], e[r] =
|
|
8726
|
-
}, "npmRunPathEnv"),
|
|
8725
|
+
return t.path = e[r], e[r] = Yo(t), e;
|
|
8726
|
+
}, "npmRunPathEnv"), Xo = a(() => {
|
|
8727
8727
|
const e = hn - fn + 1;
|
|
8728
|
-
return Array.from({ length: e },
|
|
8729
|
-
}, "getRealtimeSignals"),
|
|
8730
|
-
const e =
|
|
8731
|
-
return [...
|
|
8732
|
-
}, "getSignals"),
|
|
8728
|
+
return Array.from({ length: e }, Zo);
|
|
8729
|
+
}, "getRealtimeSignals"), Zo = a((e, t) => ({ name: `SIGRT${t + 1}`, number: fn + t, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), fn = 34, hn = 64, es = [{ name: "SIGHUP", number: 1, action: "terminate", description: "Terminal closed", standard: "posix" }, { name: "SIGINT", number: 2, action: "terminate", description: "User interruption with CTRL-C", standard: "ansi" }, { name: "SIGQUIT", number: 3, action: "core", description: "User interruption with CTRL-\\", standard: "posix" }, { name: "SIGILL", number: 4, action: "core", description: "Invalid machine instruction", standard: "ansi" }, { name: "SIGTRAP", number: 5, action: "core", description: "Debugger breakpoint", standard: "posix" }, { name: "SIGABRT", number: 6, action: "core", description: "Aborted", standard: "ansi" }, { name: "SIGIOT", number: 6, action: "core", description: "Aborted", standard: "bsd" }, { name: "SIGBUS", number: 7, action: "core", description: "Bus error due to misaligned, non-existing address or paging error", standard: "bsd" }, { name: "SIGEMT", number: 7, action: "terminate", description: "Command should be emulated but is not implemented", standard: "other" }, { name: "SIGFPE", number: 8, action: "core", description: "Floating point arithmetic error", standard: "ansi" }, { name: "SIGKILL", number: 9, action: "terminate", description: "Forced termination", standard: "posix", forced: true }, { name: "SIGUSR1", number: 10, action: "terminate", description: "Application-specific signal", standard: "posix" }, { name: "SIGSEGV", number: 11, action: "core", description: "Segmentation fault", standard: "ansi" }, { name: "SIGUSR2", number: 12, action: "terminate", description: "Application-specific signal", standard: "posix" }, { name: "SIGPIPE", number: 13, action: "terminate", description: "Broken pipe or socket", standard: "posix" }, { name: "SIGALRM", number: 14, action: "terminate", description: "Timeout or timer", standard: "posix" }, { name: "SIGTERM", number: 15, action: "terminate", description: "Termination", standard: "ansi" }, { name: "SIGSTKFLT", number: 16, action: "terminate", description: "Stack is empty or overflowed", standard: "other" }, { name: "SIGCHLD", number: 17, action: "ignore", description: "Child process terminated, paused or unpaused", standard: "posix" }, { name: "SIGCLD", number: 17, action: "ignore", description: "Child process terminated, paused or unpaused", standard: "other" }, { name: "SIGCONT", number: 18, action: "unpause", description: "Unpaused", standard: "posix", forced: true }, { name: "SIGSTOP", number: 19, action: "pause", description: "Paused", standard: "posix", forced: true }, { name: "SIGTSTP", number: 20, action: "pause", description: 'Paused using CTRL-Z or "suspend"', standard: "posix" }, { name: "SIGTTIN", number: 21, action: "pause", description: "Background process cannot read terminal input", standard: "posix" }, { name: "SIGBREAK", number: 21, action: "terminate", description: "User interruption with CTRL-BREAK", standard: "other" }, { name: "SIGTTOU", number: 22, action: "pause", description: "Background process cannot write to terminal output", standard: "posix" }, { name: "SIGURG", number: 23, action: "ignore", description: "Socket received out-of-band data", standard: "bsd" }, { name: "SIGXCPU", number: 24, action: "core", description: "Process timed out", standard: "bsd" }, { name: "SIGXFSZ", number: 25, action: "core", description: "File too big", standard: "bsd" }, { name: "SIGVTALRM", number: 26, action: "terminate", description: "Timeout or timer", standard: "bsd" }, { name: "SIGPROF", number: 27, action: "terminate", description: "Timeout or timer", standard: "bsd" }, { name: "SIGWINCH", number: 28, action: "ignore", description: "Terminal window size changed", standard: "bsd" }, { name: "SIGIO", number: 29, action: "terminate", description: "I/O is available", standard: "other" }, { name: "SIGPOLL", number: 29, action: "terminate", description: "Watched event", standard: "other" }, { name: "SIGINFO", number: 29, action: "ignore", description: "Request for process information", standard: "other" }, { name: "SIGPWR", number: 30, action: "terminate", description: "Device running out of power", standard: "systemv" }, { name: "SIGSYS", number: 31, action: "core", description: "Invalid system call", standard: "other" }, { name: "SIGUNUSED", number: 31, action: "terminate", description: "Invalid system call", standard: "other" }], dn = a(() => {
|
|
8730
|
+
const e = Xo();
|
|
8731
|
+
return [...es, ...e].map(ts);
|
|
8732
|
+
}, "getSignals"), ts = a(({ name: e, number: t, description: r, action: n, forced: i = false, standard: o }) => {
|
|
8733
8733
|
const { signals: { [e]: c } } = constants$1, l = c !== void 0;
|
|
8734
8734
|
return { name: e, number: l ? c : t, description: r, supported: l, action: n, forced: i, standard: o };
|
|
8735
|
-
}, "normalizeSignal"),
|
|
8735
|
+
}, "normalizeSignal"), rs = a(() => {
|
|
8736
8736
|
const e = dn();
|
|
8737
|
-
return Object.fromEntries(e.map(
|
|
8738
|
-
}, "getSignalsByName"),
|
|
8739
|
-
const e = dn(), t = hn + 1, r = Array.from({ length: t }, (n, i) =>
|
|
8737
|
+
return Object.fromEntries(e.map(ns));
|
|
8738
|
+
}, "getSignalsByName"), ns = a(({ name: e, number: t, description: r, supported: n, action: i, forced: o, standard: c }) => [e, { name: e, number: t, description: r, supported: n, action: i, forced: o, standard: c }], "getSignalByName"), is = rs(), os = a(() => {
|
|
8739
|
+
const e = dn(), t = hn + 1, r = Array.from({ length: t }, (n, i) => ss(i, e));
|
|
8740
8740
|
return Object.assign({}, ...r);
|
|
8741
|
-
}, "getSignalsByNumber"),
|
|
8742
|
-
const r =
|
|
8741
|
+
}, "getSignalsByNumber"), ss = a((e, t) => {
|
|
8742
|
+
const r = as(e, t);
|
|
8743
8743
|
if (r === void 0) return {};
|
|
8744
8744
|
const { name: n, description: i, supported: o, action: c, forced: l, standard: p } = r;
|
|
8745
8745
|
return { [e]: { name: n, number: e, description: i, supported: o, action: c, forced: l, standard: p } };
|
|
8746
|
-
}, "getSignalByNumber"),
|
|
8746
|
+
}, "getSignalByNumber"), as = a((e, t) => {
|
|
8747
8747
|
const r = t.find(({ name: n }) => constants$1.signals[n] === e);
|
|
8748
8748
|
return r !== void 0 ? r : t.find((n) => n.number === e);
|
|
8749
8749
|
}, "findSignalByNumber");
|
|
8750
|
-
|
|
8751
|
-
const
|
|
8750
|
+
os();
|
|
8751
|
+
const cs = a(({ timedOut: e, timeout: t, errorCode: r, signal: n, signalDescription: i, exitCode: o, isCanceled: c }) => e ? `timed out after ${t} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : o !== void 0 ? `failed with exit code ${o}` : "failed", "getErrorPrefix"), pn = a(({ stdout: e, stderr: t, all: r, error: n, signal: i, exitCode: o, command: c, escapedCommand: l, timedOut: p, isCanceled: E, killed: h, parsed: { options: { timeout: T, cwd: v = y.cwd() } } }) => {
|
|
8752
8752
|
o = o === null ? void 0 : o, i = i === null ? void 0 : i;
|
|
8753
|
-
const C = i === void 0 ? void 0 :
|
|
8753
|
+
const C = i === void 0 ? void 0 : is[i].description, D = n && n.code, b = `Command ${cs({ timedOut: p, timeout: T, errorCode: D, signal: i, signalDescription: C, exitCode: o, isCanceled: E })}: ${c}`, P = Object.prototype.toString.call(n) === "[object Error]", w = P ? `${b}
|
|
8754
8754
|
${n.message}` : b, L = [w, t, e].filter(Boolean).join(`
|
|
8755
8755
|
`);
|
|
8756
8756
|
return P ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = w, n.command = c, n.escapedCommand = l, n.exitCode = o, n.signal = i, n.signalDescription = C, n.stdout = e, n.stderr = t, n.cwd = v, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!p, n.isCanceled = E, n.killed = h && !p, n;
|
|
8757
|
-
}, "makeError"), ft = ["stdin", "stdout", "stderr"],
|
|
8757
|
+
}, "makeError"), ft = ["stdin", "stdout", "stderr"], us = a((e) => ft.some((t) => e[t] !== void 0), "hasAlias"), ls = a((e) => {
|
|
8758
8758
|
if (!e) return;
|
|
8759
8759
|
const { stdio: t } = e;
|
|
8760
8760
|
if (t === void 0) return ft.map((n) => e[n]);
|
|
8761
|
-
if (
|
|
8761
|
+
if (us(e)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ft.map((n) => `\`${n}\``).join(", ")}`);
|
|
8762
8762
|
if (typeof t == "string") return t;
|
|
8763
8763
|
if (!Array.isArray(t)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
|
|
8764
8764
|
const r = Math.max(t.length, ft.length);
|
|
8765
8765
|
return Array.from({ length: r }, (n, i) => t[i]);
|
|
8766
8766
|
}, "normalizeStdio"), je = [];
|
|
8767
8767
|
je.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && je.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && je.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
8768
|
-
const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Jt = Symbol.for("signal-exit emitter"), zt = globalThis,
|
|
8769
|
-
class
|
|
8768
|
+
const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Jt = Symbol.for("signal-exit emitter"), zt = globalThis, fs = Object.defineProperty.bind(Object);
|
|
8769
|
+
class hs {
|
|
8770
8770
|
static {
|
|
8771
8771
|
a(this, "Emitter");
|
|
8772
8772
|
}
|
|
@@ -8776,7 +8776,7 @@ class us {
|
|
|
8776
8776
|
id = Math.random();
|
|
8777
8777
|
constructor() {
|
|
8778
8778
|
if (zt[Jt]) return zt[Jt];
|
|
8779
|
-
|
|
8779
|
+
fs(zt, Jt, { value: this, writable: false, enumerable: false, configurable: false });
|
|
8780
8780
|
}
|
|
8781
8781
|
on(t, r) {
|
|
8782
8782
|
this.listeners[t].push(r);
|
|
@@ -8798,14 +8798,14 @@ class mn {
|
|
|
8798
8798
|
a(this, "SignalExitBase");
|
|
8799
8799
|
}
|
|
8800
8800
|
}
|
|
8801
|
-
const
|
|
8801
|
+
const ds = a((e) => ({ onExit(t, r) {
|
|
8802
8802
|
return e.onExit(t, r);
|
|
8803
8803
|
}, load() {
|
|
8804
8804
|
return e.load();
|
|
8805
8805
|
}, unload() {
|
|
8806
8806
|
return e.unload();
|
|
8807
8807
|
} }), "signalExitWrap");
|
|
8808
|
-
class
|
|
8808
|
+
class ps extends mn {
|
|
8809
8809
|
static {
|
|
8810
8810
|
a(this, "SignalExitFallback");
|
|
8811
8811
|
}
|
|
@@ -8818,12 +8818,12 @@ class fs extends mn {
|
|
|
8818
8818
|
unload() {
|
|
8819
8819
|
}
|
|
8820
8820
|
}
|
|
8821
|
-
class
|
|
8821
|
+
class ms extends mn {
|
|
8822
8822
|
static {
|
|
8823
8823
|
a(this, "SignalExit");
|
|
8824
8824
|
}
|
|
8825
8825
|
#s = Qt.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
8826
|
-
#t = new
|
|
8826
|
+
#t = new hs();
|
|
8827
8827
|
#e;
|
|
8828
8828
|
#i;
|
|
8829
8829
|
#o;
|
|
@@ -8886,13 +8886,13 @@ class hs extends mn {
|
|
|
8886
8886
|
}
|
|
8887
8887
|
}
|
|
8888
8888
|
const Qt = globalThis.process;
|
|
8889
|
-
|
|
8890
|
-
function
|
|
8889
|
+
ds(ht(Qt) ? new ms(Qt) : new ps());
|
|
8890
|
+
function Es(e) {
|
|
8891
8891
|
return e !== null && typeof e == "object" && typeof e.pipe == "function";
|
|
8892
8892
|
}
|
|
8893
|
-
a(
|
|
8893
|
+
a(Es, "isStream"), new TextEncoder();
|
|
8894
8894
|
var Xt, En;
|
|
8895
|
-
function
|
|
8895
|
+
function gs() {
|
|
8896
8896
|
if (En) return Xt;
|
|
8897
8897
|
En = 1;
|
|
8898
8898
|
const { PassThrough: e } = require$$0;
|
|
@@ -8912,33 +8912,33 @@ function ps() {
|
|
|
8912
8912
|
}
|
|
8913
8913
|
}, "mergeStream"), Xt;
|
|
8914
8914
|
}
|
|
8915
|
-
a(
|
|
8916
|
-
const
|
|
8915
|
+
a(gs, "requireMergeStream"), gs();
|
|
8916
|
+
const _s = a((e) => {
|
|
8917
8917
|
if (e !== void 0) throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
8918
|
-
}, "validateInputOptions"),
|
|
8919
|
-
const t =
|
|
8920
|
-
if (
|
|
8918
|
+
}, "validateInputOptions"), Is = a(({ input: e, inputFile: t }) => typeof t != "string" ? e : (_s(e), readFileSync(t)), "getInputSync"), Ss = a((e) => {
|
|
8919
|
+
const t = Is(e);
|
|
8920
|
+
if (Es(t)) throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
8921
8921
|
return t;
|
|
8922
|
-
}, "handleInputSync"),
|
|
8922
|
+
}, "handleInputSync"), Rs = (async () => {
|
|
8923
8923
|
})().constructor.prototype;
|
|
8924
|
-
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(
|
|
8925
|
-
const gn = a((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"),
|
|
8924
|
+
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(Rs, e)]);
|
|
8925
|
+
const gn = a((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), Ts = /^[\w.-]+$/, ys = a((e) => typeof e != "string" || Ts.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), ws = a((e, t) => gn(e, t).join(" "), "joinCommand"), As = a((e, t) => gn(e, t).map((r) => ys(r)).join(" "), "getEscapedCommand"), bs = debuglog("execa").enabled, dt = a((e, t) => String(e).padStart(t, "0"), "padField"), vs = a(() => {
|
|
8926
8926
|
const e = /* @__PURE__ */ new Date();
|
|
8927
8927
|
return `${dt(e.getHours(), 2)}:${dt(e.getMinutes(), 2)}:${dt(e.getSeconds(), 2)}.${dt(e.getMilliseconds(), 3)}`;
|
|
8928
|
-
}, "getTimestamp"),
|
|
8929
|
-
t && y.stderr.write(`[${
|
|
8928
|
+
}, "getTimestamp"), Cs = a((e, { verbose: t }) => {
|
|
8929
|
+
t && y.stderr.write(`[${vs()}] ${e}
|
|
8930
8930
|
`);
|
|
8931
|
-
}, "logCommand"),
|
|
8931
|
+
}, "logCommand"), Us = 1e3 * 1e3 * 100, Bs = a(({ env: e, extendEnv: t, preferLocal: r, localDir: n, execPath: i }) => {
|
|
8932
8932
|
const o = t ? { ...y.env, ...e } : e;
|
|
8933
|
-
return r ?
|
|
8934
|
-
}, "getEnv"),
|
|
8935
|
-
const n =
|
|
8936
|
-
return e = n.command, t = n.args, r = n.options, r = { maxBuffer:
|
|
8937
|
-
}, "handleArguments"), _n = a((e, t, r) => typeof t != "string" && !Buffer$1.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ?
|
|
8933
|
+
return r ? Qo({ env: o, cwd: n, execPath: i }) : o;
|
|
8934
|
+
}, "getEnv"), Ps = a((e, t, r = {}) => {
|
|
8935
|
+
const n = Vo._parse(e, t, r);
|
|
8936
|
+
return e = n.command, t = n.args, r = n.options, r = { maxBuffer: Us, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: r.cwd || y.cwd(), execPath: y.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, verbose: bs, ...r }, r.env = Bs(r), r.stdio = ls(r), y.platform === "win32" && path.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: r, parsed: n };
|
|
8937
|
+
}, "handleArguments"), _n = a((e, t, r) => typeof t != "string" && !Buffer$1.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ? Wo(t) : t, "handleOutput");
|
|
8938
8938
|
function Zt(e, t, r) {
|
|
8939
|
-
const n =
|
|
8940
|
-
|
|
8941
|
-
const c =
|
|
8939
|
+
const n = Ps(e, t, r), i = ws(e, t), o = As(e, t);
|
|
8940
|
+
Cs(o, n.options);
|
|
8941
|
+
const c = Ss(n.options);
|
|
8942
8942
|
let l;
|
|
8943
8943
|
try {
|
|
8944
8944
|
l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: c });
|
|
@@ -8975,122 +8975,122 @@ function er(e) {
|
|
|
8975
8975
|
}
|
|
8976
8976
|
}
|
|
8977
8977
|
a(er, "branch");
|
|
8978
|
-
const In = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/,
|
|
8979
|
-
function
|
|
8978
|
+
const In = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Ls = /^\/(.*)\.git$/;
|
|
8979
|
+
function Os(e) {
|
|
8980
8980
|
if (e) {
|
|
8981
8981
|
if (e.match(In)) return e.replace(In, "$1");
|
|
8982
8982
|
try {
|
|
8983
|
-
return new URL(e).pathname.replace(
|
|
8983
|
+
return new URL(e).pathname.replace(Ls, "$1");
|
|
8984
8984
|
} catch {
|
|
8985
8985
|
return;
|
|
8986
8986
|
}
|
|
8987
8987
|
}
|
|
8988
8988
|
}
|
|
8989
|
-
a(
|
|
8990
|
-
var
|
|
8989
|
+
a(Os, "getSlugFromGitURL");
|
|
8990
|
+
var Ns = { detect({ env: e }) {
|
|
8991
8991
|
return !!e.BUILDKITE;
|
|
8992
8992
|
}, configuration({ env: e }) {
|
|
8993
8993
|
const t = e.BUILDKITE_PULL_REQUEST === "false" ? void 0 : e.BUILDKITE_PULL_REQUEST, r = !!t;
|
|
8994
|
-
return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug:
|
|
8995
|
-
} },
|
|
8994
|
+
return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug: Os(e.BUILDKITE_REPO), pr: t, isPr: r, prBranch: r ? e.BUILDKITE_BRANCH : void 0, root: e.BUILDKITE_BUILD_CHECKOUT_PATH };
|
|
8995
|
+
} }, Ds = { detect({ env: e }) {
|
|
8996
8996
|
return !!e.CIRCLECI;
|
|
8997
8997
|
}, configuration({ env: e }) {
|
|
8998
8998
|
const t = e.CIRCLE_PR_NUMBER || Jr(e.CIRCLE_PULL_REQUEST || e.CI_PULL_REQUEST), r = !!t;
|
|
8999
8999
|
return { name: "CircleCI", service: "circleci", build: e.CIRCLE_BUILD_NUM, buildUrl: e.CIRCLE_BUILD_URL, job: `${e.CIRCLE_BUILD_NUM}.${e.CIRCLE_NODE_INDEX}`, commit: e.CIRCLE_SHA1, tag: e.CIRCLE_TAG, branch: r ? void 0 : e.CIRCLE_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRCLE_BRANCH : void 0, slug: `${e.CIRCLE_PROJECT_USERNAME}/${e.CIRCLE_PROJECT_REPONAME}` };
|
|
9000
9000
|
} };
|
|
9001
9001
|
const Sn = "https://cirrus-ci.com";
|
|
9002
|
-
var
|
|
9002
|
+
var Ms = { detect({ env: e }) {
|
|
9003
9003
|
return !!e.CIRRUS_CI;
|
|
9004
9004
|
}, configuration({ env: e }) {
|
|
9005
9005
|
const t = e.CIRRUS_PR, r = !!t;
|
|
9006
9006
|
return { name: "Cirrus CI", service: "cirrus", commit: e.CIRRUS_CHANGE_IN_REPO, tag: e.CIRRUS_TAG, build: e.CIRRUS_BUILD_ID, buildUrl: `${Sn}/build/${e.CIRRUS_BUILD_ID}`, job: e.CIRRUS_TASK_ID, jobUrl: `${Sn}/task/${e.CIRRUS_TASK_ID}`, branch: r ? e.CIRRUS_BASE_BRANCH : e.CIRRUS_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRRUS_BRANCH : void 0, slug: e.CIRRUS_REPO_FULL_NAME, root: e.CIRRUS_WORKING_DIR };
|
|
9007
|
-
} },
|
|
9007
|
+
} }, xs = { detect({ env: e }) {
|
|
9008
9008
|
return e.CF_PAGES === "1";
|
|
9009
9009
|
}, configuration({ env: e }) {
|
|
9010
9010
|
return { name: "Cloudflare Pages", service: "cloudflarePages", commit: e.CF_PAGES_COMMIT_SHA, branch: e.CF_PAGES_BRANCH, root: e.PWD };
|
|
9011
|
-
} },
|
|
9011
|
+
} }, Gs = { detect({ env: e }) {
|
|
9012
9012
|
return !!e.CODEBUILD_BUILD_ID;
|
|
9013
9013
|
}, configuration({ env: e, cwd: t }) {
|
|
9014
9014
|
return { name: "AWS CodeBuild", service: "codebuild", commit: pt({ env: e, cwd: t }), build: e.CODEBUILD_BUILD_ID, branch: er({ env: e, cwd: t }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`, root: e.PWD };
|
|
9015
|
-
} },
|
|
9015
|
+
} }, $s = { detect({ env: e }) {
|
|
9016
9016
|
return !!e.CF_BUILD_ID;
|
|
9017
9017
|
}, configuration({ env: e }) {
|
|
9018
9018
|
const t = e.CF_PULL_REQUEST_NUMBER, r = !!t;
|
|
9019
9019
|
return { name: "Codefresh", service: "codefresh", commit: e.CF_REVISION, build: e.CF_BUILD_ID, buildUrl: e.CF_BUILD_URL, branch: r ? e.CF_PULL_REQUEST_TARGET : e.CF_BRANCH, pr: t, isPr: r, prBranch: r ? e.CF_BRANCH : void 0, slug: `${e.CF_REPO_OWNER}/${e.CF_REPO_NAME}`, root: e.CF_VOLUME_PATH };
|
|
9020
|
-
} },
|
|
9020
|
+
} }, ks = { detect({ env: e }) {
|
|
9021
9021
|
return e.CI_NAME && e.CI_NAME === "codeship";
|
|
9022
9022
|
}, configuration({ env: e }) {
|
|
9023
9023
|
return { name: "Codeship", service: "codeship", build: e.CI_BUILD_NUMBER, buildUrl: e.CI_BUILD_URL, commit: e.CI_COMMIT_ID, branch: e.CI_BRANCH, slug: e.CI_REPO_NAME };
|
|
9024
|
-
} },
|
|
9024
|
+
} }, Hs = { detect({ env: e }) {
|
|
9025
9025
|
return !!e.DRONE;
|
|
9026
9026
|
}, configuration({ env: e }) {
|
|
9027
9027
|
const t = e.DRONE_BUILD_EVENT === "pull_request";
|
|
9028
9028
|
return { name: "Drone", service: "drone", commit: e.DRONE_COMMIT_SHA, tag: e.DRONE_TAG, build: e.DRONE_BUILD_NUMBER, buildUrl: e.DRONE_BUILD_LINK, branch: t ? e.DRONE_TARGET_BRANCH : e.DRONE_BRANCH, job: e.DRONE_JOB_NUMBER, jobUrl: e.DRONE_BUILD_LINK, pr: e.DRONE_PULL_REQUEST, isPr: t, prBranch: t ? e.DRONE_SOURCE_BRANCH : void 0, slug: `${e.DRONE_REPO_OWNER}/${e.DRONE_REPO_NAME}`, root: e.DRONE_WORKSPACE };
|
|
9029
|
-
} },
|
|
9029
|
+
} }, Fs = { configuration(e) {
|
|
9030
9030
|
return { commit: pt(e), branch: er(e) };
|
|
9031
9031
|
} };
|
|
9032
|
-
const
|
|
9032
|
+
const js = a(({ env: e }) => {
|
|
9033
9033
|
try {
|
|
9034
9034
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9035
9035
|
if (t && t.pull_request) return { branch: t.pull_request.base ? tt(t.pull_request.base.ref) : void 0, pr: t.pull_request.number };
|
|
9036
9036
|
} catch {
|
|
9037
9037
|
}
|
|
9038
9038
|
return { pr: void 0, branch: void 0 };
|
|
9039
|
-
}, "getPrEvent"),
|
|
9039
|
+
}, "getPrEvent"), qs = a((e) => {
|
|
9040
9040
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9041
9041
|
return t && t.pull_request ? t.pull_request.number : void 0;
|
|
9042
9042
|
}, "getPrNumber");
|
|
9043
|
-
var
|
|
9043
|
+
var Ks = { detect({ env: e }) {
|
|
9044
9044
|
return !!e.GITHUB_ACTIONS;
|
|
9045
9045
|
}, configuration({ env: e, cwd: t }) {
|
|
9046
|
-
const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = tt(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${
|
|
9047
|
-
return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ?
|
|
9048
|
-
} },
|
|
9046
|
+
const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = tt(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${qs(e)}/merge` : e.GITHUB_REF);
|
|
9047
|
+
return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ? js({ env: e }) : void 0 };
|
|
9048
|
+
} }, Vs = { detect({ env: e }) {
|
|
9049
9049
|
return !!e.GITLAB_CI;
|
|
9050
9050
|
}, configuration({ env: e }) {
|
|
9051
9051
|
const t = e.CI_MERGE_REQUEST_ID, r = !!t;
|
|
9052
9052
|
return { name: "GitLab CI/CD", service: "gitlab", commit: e.CI_COMMIT_SHA, tag: e.CI_COMMIT_TAG, build: e.CI_PIPELINE_ID, buildUrl: `${e.CI_PROJECT_URL}/pipelines/${e.CI_PIPELINE_ID}`, job: e.CI_JOB_ID, jobUrl: `${e.CI_PROJECT_URL}/-/jobs/${e.CI_JOB_ID}`, branch: r ? e.CI_MERGE_REQUEST_TARGET_BRANCH_NAME : e.CI_COMMIT_REF_NAME, pr: t, isPr: r, prBranch: e.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, slug: e.CI_PROJECT_PATH, root: e.CI_PROJECT_DIR };
|
|
9053
|
-
} },
|
|
9053
|
+
} }, Ws = { detect({ env: e }) {
|
|
9054
9054
|
return !!e.JENKINS_URL;
|
|
9055
9055
|
}, configuration({ env: e, cwd: t }) {
|
|
9056
9056
|
const r = e.ghprbPullId || e.gitlabMergeRequestId || e.CHANGE_ID, n = !!r, i = e.GIT_LOCAL_BRANCH || e.GIT_BRANCH || e.gitlabBranch || e.BRANCH_NAME;
|
|
9057
9057
|
return { name: "Jenkins", service: "jenkins", commit: e.ghprbActualCommit || e.GIT_COMMIT || pt({ env: e, cwd: t }), branch: n ? e.ghprbTargetBranch || e.gitlabTargetBranch : i, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, root: e.WORKSPACE, pr: r, isPr: n, prBranch: n ? e.ghprbSourceBranch || e.gitlabSourceBranch || i : void 0 };
|
|
9058
|
-
} },
|
|
9058
|
+
} }, Ys = { detect({ env: e }) {
|
|
9059
9059
|
return e.NETLIFY === "true";
|
|
9060
9060
|
}, configuration({ env: e }) {
|
|
9061
9061
|
const t = e.PULL_REQUEST === "true";
|
|
9062
9062
|
return { name: "Netlify", service: "netlify", commit: e.COMMIT_REF, build: e.DEPLOY_ID, buildUrl: `https://app.netlify.com/sites/${e.SITE_NAME}/deploys/${e.DEPLOY_ID}`, branch: t ? void 0 : e.HEAD, pr: e.REVIEW_ID, isPr: t, prBranch: t ? e.HEAD : void 0, slug: e.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0], root: e.PWD };
|
|
9063
|
-
} },
|
|
9063
|
+
} }, Js = { detect({ env: e }) {
|
|
9064
9064
|
return !!e.DISTELLI_APPNAME;
|
|
9065
9065
|
}, configuration({ env: e }) {
|
|
9066
9066
|
return { name: "Puppet", service: "puppet", build: e.DISTELLI_BUILDNUM, buildUrl: e.DISTELLI_RELEASE, commit: e.DISTELLI_RELREVISION, branch: e.DISTELLI_RELBRANCH, root: e.DISTELLI_INSTALLHOME };
|
|
9067
|
-
} },
|
|
9067
|
+
} }, zs = { detect({ env: e }) {
|
|
9068
9068
|
return !!e.SAILCI;
|
|
9069
9069
|
}, configuration({ env: e }) {
|
|
9070
9070
|
const t = e.SAIL_PULL_REQUEST_NUMBER, r = !!t;
|
|
9071
9071
|
return { name: "Sail CI", service: "sail", commit: e.SAIL_COMMIT_SHA, branch: r ? void 0 : e.SAIL_COMMIT_BRANCH, pr: t, isPr: r, slug: `${e.SAIL_REPO_OWNER}/${e.SAIL_REPO_NAME}`, root: e.SAIL_CLONE_DIR };
|
|
9072
|
-
} },
|
|
9072
|
+
} }, Qs = { detect({ env: e }) {
|
|
9073
9073
|
return !!e.SCREWDRIVER;
|
|
9074
9074
|
}, configuration({ env: e }) {
|
|
9075
9075
|
const t = e.SD_PULL_REQUEST, r = !!t;
|
|
9076
9076
|
return { name: "Screwdriver.cd", service: "screwdriver", branch: r ? e.PR_BASE_BRANCH_NAME : e.GIT_BRANCH, prBranch: r ? e.PR_BRANCH_NAME : void 0, commit: e.SD_BUILD_SHA, build: e.SD_BUILD_ID, buildUrl: e.SD_UI_BUILD_URL, job: e.SD_JOB_ID, pr: t, isPr: r, slug: e.SD_PIPELINE_NAME, root: e.SD_ROOT_DIR };
|
|
9077
|
-
} },
|
|
9077
|
+
} }, Xs = { detect({ env: e }) {
|
|
9078
9078
|
return !!e.SCRUTINIZER;
|
|
9079
9079
|
}, configuration({ env: e }) {
|
|
9080
9080
|
const t = e.SCRUTINIZER_PR_NUMBER, r = !!t;
|
|
9081
9081
|
return { name: "Scrutinizer", service: "scrutinizer", commit: e.SCRUTINIZER_SHA1, build: e.SCRUTINIZER_INSPECTION_UUID, branch: e.SCRUTINIZER_BRANCH, pr: t, isPr: r, prBranch: e.SCRUTINIZER_PR_SOURCE_BRANCH };
|
|
9082
|
-
} },
|
|
9082
|
+
} }, Zs = { detect({ env: e }) {
|
|
9083
9083
|
return !!e.SEMAPHORE;
|
|
9084
9084
|
}, configuration({ env: e, cwd: t }) {
|
|
9085
9085
|
const r = e.SEMAPHORE_GIT_PR_NUMBER || e.PULL_REQUEST_NUMBER, n = !!r;
|
|
9086
9086
|
return { name: "Semaphore", service: "semaphore", commit: e.SEMAPHORE_GIT_SHA || pt({ env: e, cwd: t }), tag: e.SEMAPHORE_GIT_TAG_NAME, build: e.SEMAPHORE_JOB_ID || e.SEMAPHORE_BUILD_NUMBER, branch: e.SEMAPHORE_GIT_BRANCH || (n ? void 0 : e.BRANCH_NAME), pr: r, isPr: n, prBranch: e.SEMAPHORE_GIT_PR_BRANCH || (n ? e.BRANCH_NAME : void 0), slug: e.SEMAPHORE_GIT_REPO_SLUG || e.SEMAPHORE_REPO_SLUG, root: e.SEMAPHORE_GIT_DIR || e.SEMAPHORE_PROJECT_DIR };
|
|
9087
|
-
} },
|
|
9087
|
+
} }, ea = { detect({ env: e }) {
|
|
9088
9088
|
return !!e.SHIPPABLE;
|
|
9089
9089
|
}, configuration({ env: e }) {
|
|
9090
9090
|
const t = e.IS_PULL_REQUEST === "true" ? e.PULL_REQUEST : void 0, r = !!t;
|
|
9091
9091
|
return { name: "Shippable", service: "shippable", commit: e.COMMIT, tag: e.GIT_TAG_NAME, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, branch: r ? e.BASE_BRANCH : e.BRANCH, job: e.JOB_NUMBER, pr: t, isPr: r, prBranch: r ? e.HEAD_BRANCH : void 0, slug: e.SHIPPABLE_REPO_SLUG, root: e.SHIPPABLE_BUILD_DIR };
|
|
9092
9092
|
} }, ke = {}, Rn;
|
|
9093
|
-
function
|
|
9093
|
+
function ta() {
|
|
9094
9094
|
if (Rn) return ke;
|
|
9095
9095
|
Rn = 1, Object.defineProperty(ke, "__esModule", { value: true }), ke.of = ke.PropertiesFile = void 0;
|
|
9096
9096
|
var e = t(qe);
|
|
@@ -9198,64 +9198,64 @@ function Xs() {
|
|
|
9198
9198
|
}, "of2");
|
|
9199
9199
|
return ke.of = n, ke;
|
|
9200
9200
|
}
|
|
9201
|
-
a(
|
|
9202
|
-
var
|
|
9201
|
+
a(ta, "requireDistNode");
|
|
9202
|
+
var ra = ta(), na = vr(ra);
|
|
9203
9203
|
const tr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, Tn = a((e) => {
|
|
9204
9204
|
try {
|
|
9205
|
-
return
|
|
9205
|
+
return na.of(e);
|
|
9206
9206
|
} catch {
|
|
9207
9207
|
return;
|
|
9208
9208
|
}
|
|
9209
|
-
}, "safeReadProperties"),
|
|
9209
|
+
}, "safeReadProperties"), ia = a(({ env: e, cwd: t }) => {
|
|
9210
9210
|
const r = e.TEAMCITY_BUILD_PROPERTIES_FILE ? Tn(e.TEAMCITY_BUILD_PROPERTIES_FILE) : void 0, n = r ? r.get("teamcity.configuration.properties.file") : void 0, i = n && Tn(n);
|
|
9211
9211
|
return Object.fromEntries(Object.keys(tr).map((o) => [o, (r ? r.get(tr[o]) : void 0) || (i ? i.get(tr[o]) : void 0) || (o === "branch" ? er({ env: e, cwd: t }) : void 0)]));
|
|
9212
9212
|
}, "getProperties");
|
|
9213
|
-
var
|
|
9213
|
+
var oa = { detect({ env: e }) {
|
|
9214
9214
|
return !!e.TEAMCITY_VERSION;
|
|
9215
9215
|
}, configuration({ env: e, cwd: t }) {
|
|
9216
|
-
return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...
|
|
9217
|
-
} },
|
|
9216
|
+
return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...ia({ env: e, cwd: t }) };
|
|
9217
|
+
} }, sa = { detect({ env: e }) {
|
|
9218
9218
|
return !!e.TRAVIS;
|
|
9219
9219
|
}, configuration({ env: e }) {
|
|
9220
9220
|
const t = e.TRAVIS_PULL_REQUEST === "false" ? void 0 : e.TRAVIS_PULL_REQUEST, r = !!t;
|
|
9221
9221
|
return { name: "Travis CI", service: "travis", commit: e.TRAVIS_COMMIT, tag: e.TRAVIS_TAG, build: e.TRAVIS_BUILD_NUMBER, buildUrl: e.TRAVIS_BUILD_WEB_URL, branch: e.TRAVIS_BRANCH, job: e.TRAVIS_JOB_NUMBER, jobUrl: e.TRAVIS_JOB_WEB_URL, pr: t, isPr: r, prBranch: e.TRAVIS_PULL_REQUEST_BRANCH, slug: e.TRAVIS_REPO_SLUG, root: e.TRAVIS_BUILD_DIR };
|
|
9222
|
-
} },
|
|
9222
|
+
} }, aa = { detect({ env: e }) {
|
|
9223
9223
|
return !!e.VELA;
|
|
9224
9224
|
}, configuration({ env: e }) {
|
|
9225
9225
|
const t = e.VELA_BUILD_EVENT === "pull_request";
|
|
9226
9226
|
return { name: "Vela", service: "vela", branch: t ? e.VELA_PULL_REQUEST_TARGET : e.VELA_BUILD_BRANCH, commit: e.VELA_BUILD_COMMIT, tag: e.VELA_BUILD_TAG, build: e.VELA_BUILD_NUMBER, buildUrl: e.VELA_BUILD_LINK, job: void 0, jobUrl: void 0, isPr: t, pr: e.VELA_BUILD_PULL_REQUEST, prBranch: e.VELA_PULL_REQUEST_SOURCE, slug: e.VELA_REPO_FULL_NAME, root: e.VELA_BUILD_WORKSPACE };
|
|
9227
|
-
} },
|
|
9227
|
+
} }, ca = { detect({ env: e }) {
|
|
9228
9228
|
return !!e.VERCEL || !!e.NOW_GITHUB_DEPLOYMENT;
|
|
9229
9229
|
}, configuration({ env: e }) {
|
|
9230
9230
|
const t = "Vercel", r = "vercel";
|
|
9231
9231
|
return e.VERCEL ? { name: t, service: r, commit: e.VERCEL_GIT_COMMIT_SHA, branch: e.VERCEL_GIT_COMMIT_REF, slug: `${e.VERCEL_GIT_REPO_OWNER}/${e.VERCEL_GIT_REPO_SLUG}` } : { name: t, service: r, commit: e.NOW_GITHUB_COMMIT_SHA, branch: e.NOW_GITHUB_COMMIT_REF, slug: `${e.NOW_GITHUB_ORG}/${e.NOW_GITHUB_REPO}` };
|
|
9232
|
-
} },
|
|
9232
|
+
} }, ua = { detect({ env: e }) {
|
|
9233
9233
|
return !!e.WERCKER_MAIN_PIPELINE_STARTED;
|
|
9234
9234
|
}, configuration({ env: e }) {
|
|
9235
9235
|
return { name: "Wercker", service: "wercker", commit: e.WERCKER_GIT_COMMIT, build: e.WERCKER_MAIN_PIPELINE_STARTED, buildUrl: e.WERCKER_RUN_URL, branch: e.WERCKER_GIT_BRANCH, slug: `${e.WERCKER_GIT_OWNER}/${e.WERCKER_GIT_REPOSITORY}`, root: e.WERCKER_ROOT };
|
|
9236
|
-
} },
|
|
9236
|
+
} }, la = { detect({ env: e }) {
|
|
9237
9237
|
return e.CI && e.CI === "woodpecker";
|
|
9238
9238
|
}, configuration({ env: e }) {
|
|
9239
9239
|
const t = e.CI_PIPELINE_EVENT === "pull_request";
|
|
9240
9240
|
return { name: "Woodpecker CI", service: "woodpecker", commit: e.CI_COMMIT_SHA, tag: e.CI_COMMIT_TAG, build: e.CI_PIPELINE_NUMBER, buildUrl: e.CI_PIPELINE_URL, branch: t ? e.CI_COMMIT_TARGET_BRANCH : e.CI_COMMIT_BRANCH, job: e.CI_STEP_NUMBER, jobUrl: e.CI_STEP_URL, pr: e.CI_COMMIT_PULL_REQUEST, isPr: t, prBranch: t ? e.CI_COMMIT_SOURCE_BRANCH : void 0, slug: `${e.CI_REPO_OWNER}/${e.CI_REPO_NAME}`, root: e.CI_WORKSPACE };
|
|
9241
|
-
} },
|
|
9241
|
+
} }, fa = { detect({ env: e }) {
|
|
9242
9242
|
return !!e.JB_SPACE_EXECUTION_NUMBER;
|
|
9243
9243
|
}, configuration({ env: e }) {
|
|
9244
9244
|
const t = e.JB_SPACE_PROJECT_KEY, r = e.JB_SPACE_GIT_REPOSITORY_NAME;
|
|
9245
9245
|
return { name: "JetBrains Space", service: "jetbrainsSpace", commit: e.JB_SPACE_GIT_REVISION, build: e.JB_SPACE_EXECUTION_NUMBER, branch: tt(e.JB_SPACE_GIT_BRANCH), slug: t && r ? `${t.toLowerCase()}/${r}` : void 0 };
|
|
9246
9246
|
} };
|
|
9247
|
-
const rr = { appveyor:
|
|
9247
|
+
const rr = { appveyor: bo, azurePipelines: vo, bamboo: Co, bitbucket: Uo, bitrise: Bo, buddy: Po, buildkite: Ns, circleci: Ds, cirrus: Ms, cloudflarePages: xs, codebuild: Gs, codefresh: $s, codeship: ks, drone: Hs, github: Ks, gitlab: Vs, jenkins: Ws, netlify: Ys, puppet: Js, sail: zs, screwdriver: Qs, scrutinizer: Xs, semaphore: Zs, shippable: ea, teamcity: oa, travis: sa, vela: aa, vercel: ca, wercker: ua, woodpecker: la, jetbrainsSpace: fa };
|
|
9248
9248
|
var nr = a(({ env: e = process.env, cwd: t = process.cwd() } = {}) => {
|
|
9249
9249
|
for (const r of Object.keys(rr)) if (rr[r].detect({ env: e, cwd: t })) return { isCi: true, ...rr[r].configuration({ env: e, cwd: t }) };
|
|
9250
|
-
return { isCi: !!e.CI,
|
|
9250
|
+
return { isCi: !!e.CI, ...Fs.configuration({ env: e, cwd: t }) };
|
|
9251
9251
|
}, "envCiModule");
|
|
9252
|
-
const
|
|
9253
|
-
function
|
|
9254
|
-
const e =
|
|
9255
|
-
return { branch: process.env.GITHUB_HEAD_REF || e.branch, ciBuild: "build" in e ? String(e.build) : void 0, ciServiceName: "name" in e ? String(e.name) : void 0, commit: { message:
|
|
9252
|
+
const ha = typeof nr == "function" ? nr : nr.default;
|
|
9253
|
+
function da() {
|
|
9254
|
+
const e = ha();
|
|
9255
|
+
return { branch: process.env.GITHUB_HEAD_REF || e.branch, ciBuild: "build" in e ? String(e.build) : void 0, ciServiceName: "name" in e ? String(e.name) : void 0, commit: { message: ma(), sha: e.commit }, isCI: e.isCi, pr: pa() };
|
|
9256
9256
|
}
|
|
9257
|
-
a(
|
|
9258
|
-
function
|
|
9257
|
+
a(da, "getGitInfo");
|
|
9258
|
+
function pa() {
|
|
9259
9259
|
try {
|
|
9260
9260
|
const e = process.env.GITHUB_EVENT_PATH;
|
|
9261
9261
|
if (e) {
|
|
@@ -9267,21 +9267,21 @@ function fa() {
|
|
|
9267
9267
|
return;
|
|
9268
9268
|
}
|
|
9269
9269
|
}
|
|
9270
|
-
a(
|
|
9271
|
-
function
|
|
9270
|
+
a(pa, "getPRInfo");
|
|
9271
|
+
function ma() {
|
|
9272
9272
|
try {
|
|
9273
9273
|
return execSync("git log -1 --pretty=%B", { encoding: "utf-8", stdio: ["pipe", "pipe", "ignore"] }).trim();
|
|
9274
9274
|
} catch {
|
|
9275
9275
|
return;
|
|
9276
9276
|
}
|
|
9277
9277
|
}
|
|
9278
|
-
a(
|
|
9279
|
-
function
|
|
9278
|
+
a(ma, "getLastCommitMessage");
|
|
9279
|
+
function Ea() {
|
|
9280
9280
|
return { hostname: Et.hostname(), platform: Et.platform() };
|
|
9281
9281
|
}
|
|
9282
|
-
a(
|
|
9283
|
-
const
|
|
9284
|
-
var
|
|
9282
|
+
a(Ea, "getMachineInfo");
|
|
9283
|
+
const ga = new Error("request for lock canceled");
|
|
9284
|
+
var _a = a(function(e, t, r, n) {
|
|
9285
9285
|
function i(o) {
|
|
9286
9286
|
return o instanceof r ? o : new r(function(c) {
|
|
9287
9287
|
c(o);
|
|
@@ -9310,11 +9310,11 @@ var ma = a(function(e, t, r, n) {
|
|
|
9310
9310
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9311
9311
|
});
|
|
9312
9312
|
}, "__awaiter$2");
|
|
9313
|
-
class
|
|
9313
|
+
class Ia {
|
|
9314
9314
|
static {
|
|
9315
9315
|
a(this, "Semaphore");
|
|
9316
9316
|
}
|
|
9317
|
-
constructor(t, r =
|
|
9317
|
+
constructor(t, r = ga) {
|
|
9318
9318
|
this._value = t, this._cancelError = r, this._queue = [], this._weightedWaiters = [];
|
|
9319
9319
|
}
|
|
9320
9320
|
acquire(t = 1, r = 0) {
|
|
@@ -9325,7 +9325,7 @@ class Ea {
|
|
|
9325
9325
|
});
|
|
9326
9326
|
}
|
|
9327
9327
|
runExclusive(t) {
|
|
9328
|
-
return
|
|
9328
|
+
return _a(this, arguments, void 0, function* (r, n = 1, i = 0) {
|
|
9329
9329
|
const [o, c] = yield this.acquire(n, i);
|
|
9330
9330
|
try {
|
|
9331
9331
|
return yield r(o);
|
|
@@ -9337,7 +9337,7 @@ class Ea {
|
|
|
9337
9337
|
waitForUnlock(t = 1, r = 0) {
|
|
9338
9338
|
if (t <= 0) throw new Error(`invalid weight ${t}: must be positive`);
|
|
9339
9339
|
return this._couldLockImmediately(t, r) ? Promise.resolve() : new Promise((n) => {
|
|
9340
|
-
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []),
|
|
9340
|
+
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []), Sa(this._weightedWaiters[t - 1], { resolve: n, priority: r });
|
|
9341
9341
|
});
|
|
9342
9342
|
}
|
|
9343
9343
|
isLocked() {
|
|
@@ -9388,17 +9388,17 @@ class Ea {
|
|
|
9388
9388
|
return (this._queue.length === 0 || this._queue[0].priority < r) && t <= this._value;
|
|
9389
9389
|
}
|
|
9390
9390
|
}
|
|
9391
|
-
function
|
|
9391
|
+
function Sa(e, t) {
|
|
9392
9392
|
const r = yn(e, (n) => t.priority <= n.priority);
|
|
9393
9393
|
e.splice(r + 1, 0, t);
|
|
9394
9394
|
}
|
|
9395
|
-
a(
|
|
9395
|
+
a(Sa, "insertSorted");
|
|
9396
9396
|
function yn(e, t) {
|
|
9397
9397
|
for (let r = e.length - 1; r >= 0; r--) if (t(e[r])) return r;
|
|
9398
9398
|
return -1;
|
|
9399
9399
|
}
|
|
9400
9400
|
a(yn, "findIndexFromEnd");
|
|
9401
|
-
var
|
|
9401
|
+
var Ra = a(function(e, t, r, n) {
|
|
9402
9402
|
function i(o) {
|
|
9403
9403
|
return o instanceof r ? o : new r(function(c) {
|
|
9404
9404
|
c(o);
|
|
@@ -9427,15 +9427,15 @@ var _a = a(function(e, t, r, n) {
|
|
|
9427
9427
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9428
9428
|
});
|
|
9429
9429
|
}, "__awaiter$1");
|
|
9430
|
-
class
|
|
9430
|
+
class Ta {
|
|
9431
9431
|
static {
|
|
9432
9432
|
a(this, "Mutex");
|
|
9433
9433
|
}
|
|
9434
9434
|
constructor(t) {
|
|
9435
|
-
this._semaphore = new
|
|
9435
|
+
this._semaphore = new Ia(1, t);
|
|
9436
9436
|
}
|
|
9437
9437
|
acquire() {
|
|
9438
|
-
return
|
|
9438
|
+
return Ra(this, arguments, void 0, function* (t = 0) {
|
|
9439
9439
|
const [, r] = yield this._semaphore.acquire(1, t);
|
|
9440
9440
|
return r;
|
|
9441
9441
|
});
|
|
@@ -9459,7 +9459,7 @@ class Ia {
|
|
|
9459
9459
|
function wn(e, t) {
|
|
9460
9460
|
const r = e.length;
|
|
9461
9461
|
let n = 0, i = 0;
|
|
9462
|
-
const o = new
|
|
9462
|
+
const o = new Ta();
|
|
9463
9463
|
return t({ completed: n, errors: i, total: r }), e.map((c) => c.then(async (l) => (await o.runExclusive(() => {
|
|
9464
9464
|
n++, t({ completed: n, errors: i, total: r });
|
|
9465
9465
|
}), l)).catch(async (l) => {
|
|
@@ -9469,27 +9469,27 @@ function wn(e, t) {
|
|
|
9469
9469
|
}));
|
|
9470
9470
|
}
|
|
9471
9471
|
a(wn, "trackPromiseProgress");
|
|
9472
|
-
function
|
|
9472
|
+
function ya({ result: e, sensitiveValues: t }) {
|
|
9473
9473
|
return e.steps.map((r) => An({ sensitiveValues: t, step: r }));
|
|
9474
9474
|
}
|
|
9475
|
-
a(
|
|
9475
|
+
a(ya, "extractSteps");
|
|
9476
9476
|
function An({ sensitiveValues: e, step: t }) {
|
|
9477
9477
|
const r = a((n) => n && e?.length ? se({ sensitiveValues: e, str: n }) : n, "scrub");
|
|
9478
9478
|
return { category: t.category, duration: t.duration, error: t.error ? { message: r(t.error.message) || "Unknown error", stack: r(t.error.stack) } : void 0, location: t.location ? { column: t.location.column, file: t.location.file, line: t.location.line } : void 0, startedAt: new Date(t.startTime), steps: t.steps && t.steps.length > 0 ? t.steps.map((n) => An({ sensitiveValues: e, step: n })) : void 0, title: r(t.title) ?? t.title };
|
|
9479
9479
|
}
|
|
9480
9480
|
a(An, "extractStep");
|
|
9481
|
-
async function
|
|
9482
|
-
await
|
|
9481
|
+
async function wa({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
|
|
9482
|
+
await Wn(async () => {
|
|
9483
9483
|
const n = await fetch(r, { body: e, method: "PUT" });
|
|
9484
9484
|
if (!n.ok) throw n.status >= 400 && n.status < 500 ? new pRetryExports.AbortError(`Upload failed with status ${n.status}: ${n.statusText}`) : new Error(`Upload failed with status ${n.status}: ${n.statusText}`);
|
|
9485
9485
|
}, { minTimeout: 2e3, randomize: true, retries: t });
|
|
9486
9486
|
}
|
|
9487
|
-
a(
|
|
9488
|
-
const
|
|
9487
|
+
a(wa, "uploadWithRetry");
|
|
9488
|
+
const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120 * 1e3, vn = 3e4, ba = process.env.STABLY_API_URL ?? "https://api.stably.ai", va = 50, Ca = a(({ gitInfo: e, suite: t }) => {
|
|
9489
9489
|
const r = [...new Set(t.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
|
|
9490
9490
|
if (r.length > 0) {
|
|
9491
9491
|
const n = r.join(", ");
|
|
9492
|
-
return n.length <=
|
|
9492
|
+
return n.length <= va ? n : `${r[0]} + ${r.length - 1} more`;
|
|
9493
9493
|
}
|
|
9494
9494
|
if (e.isCI && e.ciServiceName && e.ciBuild) return `${e.ciServiceName} #${e.ciBuild}`;
|
|
9495
9495
|
try {
|
|
@@ -9501,11 +9501,11 @@ const Ta = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120
|
|
|
9501
9501
|
} catch {
|
|
9502
9502
|
}
|
|
9503
9503
|
return "Playwright Test Suite";
|
|
9504
|
-
}, "generateRunName"),
|
|
9504
|
+
}, "generateRunName"), Ua = a(({ notificationConfigs: e, suite: t }) => {
|
|
9505
9505
|
if (!e || e.length === 0) return;
|
|
9506
9506
|
const r = new Set(t.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = e.filter((i) => r.has(i.projectName));
|
|
9507
9507
|
return n.length > 0 ? n : void 0;
|
|
9508
|
-
}, "filterNotificationConfigsByRunningProjects"),
|
|
9508
|
+
}, "filterNotificationConfigsByRunningProjects"), Ba = a((e) => e ? { configFile: e.configFile, forbidOnly: e.forbidOnly, fullyParallel: e.fullyParallel, globalSetup: e.globalSetup, globalTeardown: e.globalTeardown, globalTimeout: e.globalTimeout, grep: e.grep?.toString(), grepInvert: e.grepInvert?.toString(), maxFailures: e.maxFailures, metadata: e.metadata, preserveOutput: e.preserveOutput, quiet: e.quiet, reporter: e.reporter, reportSlowTests: e.reportSlowTests, rootDir: e.rootDir, shard: e.shard, updateSnapshots: e.updateSnapshots, version: e.version, webServer: e.webServer, workers: e.workers } : void 0, "extractConfigInfo"), Cn = a(({ absolutePath: e, rootDir: t }) => {
|
|
9509
9509
|
if (t && e.startsWith(t)) {
|
|
9510
9510
|
const r = e.slice(t.length);
|
|
9511
9511
|
return r.startsWith("/") ? r.slice(1) : r;
|
|
@@ -9545,16 +9545,16 @@ class Un {
|
|
|
9545
9545
|
const i = jr(t.sensitiveValues);
|
|
9546
9546
|
this.sensitiveValues = [...i].sort((o, c) => c.length - o.length);
|
|
9547
9547
|
}
|
|
9548
|
-
this.wsClient = new
|
|
9548
|
+
this.wsClient = new Ao({ apiKey: r, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: a((i) => this.handleWebSocketError(i), "onError"), onMessage: a((i) => this.handleWebSocketMessage(i), "onMessage"), projectId: n, reconnectDelay: 2e3, url: Aa });
|
|
9549
9549
|
}
|
|
9550
9550
|
onBegin(t, r) {
|
|
9551
9551
|
if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = t, this.testSuiteRunId = this.getSuiteRunId(t), this.rootDir = t.rootDir, this.skipSuiteReporting)) return;
|
|
9552
9552
|
this.suiteData = this.extractSuiteInfo(t, r);
|
|
9553
|
-
const i =
|
|
9553
|
+
const i = Ua({ notificationConfigs: this.notificationConfigs, suite: r });
|
|
9554
9554
|
this.filteredNotificationConfigs = i;
|
|
9555
9555
|
const o = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, totalShards: this.config?.shard?.total } : void 0, status: "running" };
|
|
9556
9556
|
try {
|
|
9557
|
-
const E = fileURLToPath$1(new URL("./create-suite.mjs", import.meta.url)), h = JSON.stringify({ apiBaseUrl:
|
|
9557
|
+
const E = fileURLToPath$1(new URL("./create-suite.mjs", import.meta.url)), h = JSON.stringify({ apiBaseUrl: ba, apiKey: this.apiKey, body: o, projectId: this.projectId, timeoutMs: vn }), T = spawnSync(process.execPath, [E], { encoding: "utf-8", input: h, stdio: ["pipe", "pipe", "pipe"], timeout: vn + 5e3 });
|
|
9558
9558
|
if (T.status === 2 && (console.error(ie.bold(ie.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), T.status !== 0) {
|
|
9559
9559
|
const v = T.stderr?.trim() || T.error?.message || "Unknown error";
|
|
9560
9560
|
throw new Error(v);
|
|
@@ -9587,7 +9587,7 @@ class Un {
|
|
|
9587
9587
|
if (this.isListMode || this.skipSuiteReporting) return;
|
|
9588
9588
|
const n = this.extractTestCaseInfo(t, r);
|
|
9589
9589
|
this.testCases.push(n), this.testStepsMap.set(n.id, r);
|
|
9590
|
-
const i =
|
|
9590
|
+
const i = ya({ result: r, sensitiveValues: this.sensitiveValues }), o = [...r.attachments, { contentType: "text/plain", name: "source-code", path: t.location.file }], c = (async () => {
|
|
9591
9591
|
const l = await this.extractAttachmentMetadata({ attachments: o, attemptNumber: n.attemptNumber, testId: n.id });
|
|
9592
9592
|
let p, E;
|
|
9593
9593
|
l.length > 0 && (p = `${n.id}-${n.attemptNumber}`, E = new Promise((h) => {
|
|
@@ -9652,8 +9652,8 @@ class Un {
|
|
|
9652
9652
|
return !t || !this.sensitiveValues?.length ? t : se({ sensitiveValues: this.sensitiveValues, str: t });
|
|
9653
9653
|
}
|
|
9654
9654
|
extractSuiteInfo(t, r) {
|
|
9655
|
-
const n =
|
|
9656
|
-
return { id: Ye(), projectSettings:
|
|
9655
|
+
const n = da(), i = Ea(), o = /* @__PURE__ */ new Date();
|
|
9656
|
+
return { id: Ye(), projectSettings: Ba(t), startedAt: o, suiteId: this.testSuiteRunId, title: r.title || Ca({ gitInfo: n, suite: r }), createdAt: o, git: { branch: n.branch, commit: { message: n.commit.message, sha: n.commit.sha }, pr: n.pr }, isCI: n.isCI, shards: t.shard?.total ?? 1, workers: t.workers, machineInfo: i, updatedAt: o };
|
|
9657
9657
|
}
|
|
9658
9658
|
extractTestCaseInfo(t, r) {
|
|
9659
9659
|
const n = Cn({ absolutePath: t.location.file, rootDir: this.rootDir }), i = t.parent.project(), o = i?.name, c = i?.use?.defaultBrowserType, l = this.testIdMap.get(t.id), p = l ?? Ye();
|
|
@@ -9709,7 +9709,7 @@ class Un {
|
|
|
9709
9709
|
const i = n.map(async ({ artifactId: o, name: c, uploadUrl: l }) => {
|
|
9710
9710
|
const p = `${r}-${t}-${o}`, E = this.attachmentFiles.get(p);
|
|
9711
9711
|
if (E) try {
|
|
9712
|
-
await
|
|
9712
|
+
await wa({ fileData: E, maxRetries: 3, uploadUrl: l }), this.attachmentFiles.delete(p);
|
|
9713
9713
|
} catch (h) {
|
|
9714
9714
|
const T = h instanceof Error ? h.message : String(h);
|
|
9715
9715
|
console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${T}`);
|
|
@@ -9718,10 +9718,10 @@ class Un {
|
|
|
9718
9718
|
await Promise.allSettled(i);
|
|
9719
9719
|
}
|
|
9720
9720
|
}
|
|
9721
|
-
function
|
|
9721
|
+
function Pa(e) {
|
|
9722
9722
|
return ["@stablyai/playwright-test/reporter", e];
|
|
9723
9723
|
}
|
|
9724
|
-
a(
|
|
9724
|
+
a(Pa, "stablyReporter");
|
|
9725
9725
|
|
|
9726
|
-
export {
|
|
9727
|
-
//# sourceMappingURL=index-
|
|
9726
|
+
export { Pa as P, Un as U };
|
|
9727
|
+
//# sourceMappingURL=index-CyV-2Mfg.mjs.map
|