@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
|
@@ -6731,7 +6731,7 @@ function requirePRetry () {
|
|
|
6731
6731
|
}
|
|
6732
6732
|
|
|
6733
6733
|
var pRetryExports = requirePRetry();
|
|
6734
|
-
var
|
|
6734
|
+
var Wn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
|
|
6735
6735
|
|
|
6736
6736
|
var Bn = Object.defineProperty;
|
|
6737
6737
|
var a = (e, t) => Bn(e, "name", { value: t, configurable: true });
|
|
@@ -6807,11 +6807,11 @@ function ai(e, t = {}) {
|
|
|
6807
6807
|
return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => e(i), Object.assign(r, t), Object.freeze(r);
|
|
6808
6808
|
}
|
|
6809
6809
|
a(ai, "createHasher");
|
|
6810
|
-
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0),
|
|
6811
|
-
for (let e = 0, t =
|
|
6810
|
+
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 = [];
|
|
6811
|
+
for (let e = 0, t = Ve, r = 1, n = 0; e < 24; e++) {
|
|
6812
6812
|
[r, n] = [n, (2 * r + 3 * n) % 5], gr.push(2 * (5 * n + r)), _r.push((e + 1) * (e + 2) / 2 % 64);
|
|
6813
6813
|
let i = ui;
|
|
6814
|
-
for (let o = 0; o < 7; o++) t = (t <<
|
|
6814
|
+
for (let o = 0; o < 7; o++) t = (t << Ve ^ (t >> fi) * di) % hi, t & li && (i ^= Ve << (Ve << BigInt(o)) - Ve);
|
|
6815
6815
|
Ir.push(i);
|
|
6816
6816
|
}
|
|
6817
6817
|
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");
|
|
@@ -7412,7 +7412,7 @@ function ye(e, t, r) {
|
|
|
7412
7412
|
}
|
|
7413
7413
|
a(ye, "toFixedPoint");
|
|
7414
7414
|
var Si = wr();
|
|
7415
|
-
const Ri = 24,
|
|
7415
|
+
const Ri = 24, We = 32, Ti = a(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
|
|
7416
7416
|
const e = new Uint32Array(1);
|
|
7417
7417
|
return globalThis.crypto.getRandomValues(e), e[0] / 4294967296;
|
|
7418
7418
|
} : Math.random, "createRandom"), Tt = Ti(), yt = a((e = 4, t = Tt) => {
|
|
@@ -7430,10 +7430,10 @@ const Ar = a((e = "") => {
|
|
|
7430
7430
|
const t = new TextEncoder();
|
|
7431
7431
|
return yi(_i(t.encode(e))).toString(36).slice(1);
|
|
7432
7432
|
}, "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 } = {}) => {
|
|
7433
|
-
const r = Object.keys(e).toString(), n = r.length ? r + yt(
|
|
7434
|
-
return Ar(n).substring(0,
|
|
7433
|
+
const r = Object.keys(e).toString(), n = r.length ? r + yt(We, t) : yt(We, t);
|
|
7434
|
+
return Ar(n).substring(0, We);
|
|
7435
7435
|
}, "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 }) } = {}) => {
|
|
7436
|
-
if (r >
|
|
7436
|
+
if (r > We) throw new Error(`Length must be between 2 and ${We}. Received: ${r}`);
|
|
7437
7437
|
return a(function() {
|
|
7438
7438
|
const o = wi(e), c = Date.now().toString(36), l = t().toString(36), p = yt(r, e), E = `${c + p + l + n}`;
|
|
7439
7439
|
return `${o + Ar(E).substring(1, r)}`;
|
|
@@ -7590,9 +7590,9 @@ var Li = Pi(), Q = Uint8Array, ae = Uint16Array, wt = Int32Array, ot = new Q([0,
|
|
|
7590
7590
|
return { b: r, r: i };
|
|
7591
7591
|
}, "freb"), Br = Ur(ot, 2), Pr = Br.b, bt = Br.r;
|
|
7592
7592
|
Pr[28] = 258, bt[258] = 28;
|
|
7593
|
-
for (var Lr = Ur(st, 0), Oi = Lr.b, Or = Lr.r, vt = new ae(32768),
|
|
7594
|
-
var Ue = (
|
|
7595
|
-
Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4, vt[
|
|
7593
|
+
for (var Lr = Ur(st, 0), Oi = Lr.b, Or = Lr.r, vt = new ae(32768), V = 0; V < 32768; ++V) {
|
|
7594
|
+
var Ue = (V & 43690) >> 1 | (V & 21845) << 1;
|
|
7595
|
+
Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4, vt[V] = ((Ue & 65280) >> 8 | (Ue & 255) << 8) >> 1;
|
|
7596
7596
|
}
|
|
7597
7597
|
for (var _e = a((function(e, t, r) {
|
|
7598
7598
|
for (var n = e.length, i = 0, o = new ae(t); i < n; ++i) e[i] && ++o[e[i] - 1];
|
|
@@ -7605,11 +7605,11 @@ for (var _e = a((function(e, t, r) {
|
|
|
7605
7605
|
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;
|
|
7606
7606
|
} else for (l = new ae(n), i = 0; i < n; ++i) e[i] && (l[i] = vt[c[e[i] - 1]++] >> 15 - e[i]);
|
|
7607
7607
|
return l;
|
|
7608
|
-
}), "hMap"), Be = new Q(288),
|
|
7609
|
-
for (var
|
|
7610
|
-
for (var
|
|
7611
|
-
for (var
|
|
7612
|
-
for (var Je = new Q(32),
|
|
7608
|
+
}), "hMap"), Be = new Q(288), V = 0; V < 144; ++V) Be[V] = 8;
|
|
7609
|
+
for (var V = 144; V < 256; ++V) Be[V] = 9;
|
|
7610
|
+
for (var V = 256; V < 280; ++V) Be[V] = 7;
|
|
7611
|
+
for (var V = 280; V < 288; ++V) Be[V] = 8;
|
|
7612
|
+
for (var Je = new Q(32), V = 0; V < 32; ++V) Je[V] = 5;
|
|
7613
7613
|
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) {
|
|
7614
7614
|
for (var t = e[0], r = 1; r < e.length; ++r) e[r] > t && (t = e[r]);
|
|
7615
7615
|
return t;
|
|
@@ -7899,18 +7899,18 @@ function Ki(e, t) {
|
|
|
7899
7899
|
return qi(e, t || {}, 0, 0);
|
|
7900
7900
|
}
|
|
7901
7901
|
a(Ki, "deflateSync");
|
|
7902
|
-
function
|
|
7902
|
+
function Vi(e, t) {
|
|
7903
7903
|
return $i(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
7904
7904
|
}
|
|
7905
|
-
a(
|
|
7905
|
+
a(Vi, "inflateSync");
|
|
7906
7906
|
var $r = a(function(e, t, r, n) {
|
|
7907
7907
|
for (var i in e) {
|
|
7908
7908
|
var o = e[i], c = t + i, l = n;
|
|
7909
7909
|
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));
|
|
7910
7910
|
}
|
|
7911
|
-
}, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Nt = typeof TextDecoder < "u" && new TextDecoder(),
|
|
7911
|
+
}, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Nt = typeof TextDecoder < "u" && new TextDecoder(), Wi = 0;
|
|
7912
7912
|
try {
|
|
7913
|
-
Nt.decode(xr, { stream: true }),
|
|
7913
|
+
Nt.decode(xr, { stream: true }), Wi = 1;
|
|
7914
7914
|
} catch {
|
|
7915
7915
|
}
|
|
7916
7916
|
var Yi = a(function(e) {
|
|
@@ -8005,7 +8005,7 @@ function to(e, t) {
|
|
|
8005
8005
|
}
|
|
8006
8006
|
for (var p = 0; p < i; ++p) {
|
|
8007
8007
|
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);
|
|
8008
|
-
o = D, h ? h == 8 ? r[C] =
|
|
8008
|
+
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);
|
|
8009
8009
|
}
|
|
8010
8010
|
return r;
|
|
8011
8011
|
}
|
|
@@ -8049,7 +8049,7 @@ const Ae = Symbol.for("@ts-pattern/matcher"), oo = Symbol.for("@ts-pattern/isVar
|
|
|
8049
8049
|
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) : [];
|
|
8050
8050
|
}, "s"), Ze = a((e, t) => e.reduce((r, n) => r.concat(t(n)), []), "c");
|
|
8051
8051
|
function ce(e) {
|
|
8052
|
-
return Object.assign(e, { optional: a(() => so(e), "optional"), and: a((t) =>
|
|
8052
|
+
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") });
|
|
8053
8053
|
}
|
|
8054
8054
|
a(ce, "a");
|
|
8055
8055
|
function so(e) {
|
|
@@ -8062,7 +8062,7 @@ function so(e) {
|
|
|
8062
8062
|
}, "match"), getSelectionKeys: a(() => Pe(e), "getSelectionKeys"), matcherType: "optional" }) });
|
|
8063
8063
|
}
|
|
8064
8064
|
a(so, "h");
|
|
8065
|
-
function
|
|
8065
|
+
function W(...e) {
|
|
8066
8066
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8067
8067
|
let r = {};
|
|
8068
8068
|
const n = a((i, o) => {
|
|
@@ -8071,7 +8071,7 @@ function V(...e) {
|
|
|
8071
8071
|
return { matched: e.every((i) => Se(i, t, n)), selections: r };
|
|
8072
8072
|
}, "match"), getSelectionKeys: a(() => Ze(e, Pe), "getSelectionKeys"), matcherType: "and" }) });
|
|
8073
8073
|
}
|
|
8074
|
-
a(
|
|
8074
|
+
a(W, "d");
|
|
8075
8075
|
function ao(...e) {
|
|
8076
8076
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8077
8077
|
let r = {};
|
|
@@ -8113,22 +8113,22 @@ function Oe(e) {
|
|
|
8113
8113
|
}
|
|
8114
8114
|
a(Oe, "j"), ce(K(Kr)), ce(K(Kr));
|
|
8115
8115
|
const Ne = a((e) => Object.assign(ce(e), { startsWith: a((t) => {
|
|
8116
|
-
return Ne(
|
|
8116
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.startsWith(r)))));
|
|
8117
8117
|
var r;
|
|
8118
8118
|
}, "startsWith"), endsWith: a((t) => {
|
|
8119
|
-
return Ne(
|
|
8119
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.endsWith(r)))));
|
|
8120
8120
|
var r;
|
|
8121
|
-
}, "endsWith"), minLength: a((t) => Ne(
|
|
8122
|
-
return Ne(
|
|
8121
|
+
}, "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) => {
|
|
8122
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && n.includes(r)))));
|
|
8123
8123
|
var r;
|
|
8124
8124
|
}, "includes"), regex: a((t) => {
|
|
8125
|
-
return Ne(
|
|
8125
|
+
return Ne(W(e, (r = t, K((n) => Le(n) && !!n.match(r)))));
|
|
8126
8126
|
var r;
|
|
8127
8127
|
}, "regex") }), "x");
|
|
8128
8128
|
Ne(K(Le));
|
|
8129
|
-
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(
|
|
8129
|
+
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");
|
|
8130
8130
|
Te(K(Re));
|
|
8131
|
-
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(
|
|
8131
|
+
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");
|
|
8132
8132
|
De(K(Oe)), ce(K(function(e) {
|
|
8133
8133
|
return typeof e == "boolean";
|
|
8134
8134
|
})), ce(K(function(e) {
|
|
@@ -8221,12 +8221,12 @@ function Ge({ obj: e, sensitiveValues: t }) {
|
|
|
8221
8221
|
return Object.fromEntries(Object.entries(e).map(([r, n]) => [r, mo(r) ? n : et({ sensitiveValues: t, value: n })]));
|
|
8222
8222
|
}
|
|
8223
8223
|
a(Ge, "scrubObject");
|
|
8224
|
-
function
|
|
8224
|
+
function Vr({ error: e, sensitiveValues: t }) {
|
|
8225
8225
|
return e ? { ...e, message: se({ sensitiveValues: t, str: e.message }) } : void 0;
|
|
8226
8226
|
}
|
|
8227
|
-
a(
|
|
8227
|
+
a(Vr, "scrubError");
|
|
8228
8228
|
function Eo({ event: e, sensitiveValues: t }) {
|
|
8229
|
-
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:
|
|
8229
|
+
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();
|
|
8230
8230
|
}
|
|
8231
8231
|
a(Eo, "scrubTraceEvent");
|
|
8232
8232
|
function go({ content: e, sensitiveValues: t }) {
|
|
@@ -8244,11 +8244,11 @@ function go({ content: e, sensitiveValues: t }) {
|
|
|
8244
8244
|
`));
|
|
8245
8245
|
}
|
|
8246
8246
|
a(go, "scrubJsonLinesFile");
|
|
8247
|
-
function
|
|
8247
|
+
function Wr({ content: e, sensitiveValues: t }) {
|
|
8248
8248
|
const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), i = se({ sensitiveValues: t, str: r.decode(e) });
|
|
8249
8249
|
return n.encode(i);
|
|
8250
8250
|
}
|
|
8251
|
-
a(
|
|
8251
|
+
a(Wr, "scrubTextFile");
|
|
8252
8252
|
async function Gt({ sensitiveValues: e, traceBuffer: t }) {
|
|
8253
8253
|
const r = jr(e);
|
|
8254
8254
|
if (r.length === 0) return new Uint8Array(t);
|
|
@@ -8258,11 +8258,11 @@ async function Gt({ sensitiveValues: e, traceBuffer: t }) {
|
|
|
8258
8258
|
a(Gt, "scrubTrace");
|
|
8259
8259
|
async function _o({ content: e, filename: t, sensitiveValues: r }) {
|
|
8260
8260
|
const n = t.toLowerCase();
|
|
8261
|
-
return n.endsWith(".trace") || n.endsWith(".network") ? go({ content: e, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ?
|
|
8261
|
+
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;
|
|
8262
8262
|
}
|
|
8263
8263
|
a(_o, "scrubFile");
|
|
8264
8264
|
async function Io({ content: e, sensitiveValues: t }) {
|
|
8265
|
-
return await Li.isBinaryFile(Buffer.from(e)) ? e :
|
|
8265
|
+
return await Li.isBinaryFile(Buffer.from(e)) ? e : Wr({ content: e, sensitiveValues: t });
|
|
8266
8266
|
}
|
|
8267
8267
|
a(Io, "scrubResourceFile");
|
|
8268
8268
|
async function So({ sensitiveValues: e, tracePath: t }) {
|
|
@@ -8279,8 +8279,8 @@ async function Ro({ sensitiveValues: e, traceFd: t, tracePath: r }) {
|
|
|
8279
8279
|
return Gt({ sensitiveValues: e, traceBuffer: o });
|
|
8280
8280
|
}
|
|
8281
8281
|
a(Ro, "scrubTraceFromFd");
|
|
8282
|
-
const Yr = { AUTHENTICATION_FAILED: 1008 };
|
|
8283
|
-
class
|
|
8282
|
+
const Yr = { AUTHENTICATION_FAILED: 1008 }, To = 2e4, yo = 5e4, wo = 3e4;
|
|
8283
|
+
class Ao {
|
|
8284
8284
|
static {
|
|
8285
8285
|
a(this, "WebSocketClient");
|
|
8286
8286
|
}
|
|
@@ -8325,19 +8325,19 @@ class To {
|
|
|
8325
8325
|
}
|
|
8326
8326
|
scheduleReconnect() {
|
|
8327
8327
|
this.reconnectTimer && clearTimeout(this.reconnectTimer);
|
|
8328
|
-
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts),
|
|
8328
|
+
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), wo);
|
|
8329
8329
|
this.reconnectAttempts++, this.reconnectTimer = setTimeout(() => {
|
|
8330
8330
|
this.connect();
|
|
8331
8331
|
}, t), this.reconnectTimer.unref();
|
|
8332
8332
|
}
|
|
8333
8333
|
startPingInterval() {
|
|
8334
8334
|
this.clearPingInterval(), this.lastPongAt = Date.now(), this.pingIntervalTimer = setInterval(() => {
|
|
8335
|
-
if (Date.now() - this.lastPongAt >
|
|
8335
|
+
if (Date.now() - this.lastPongAt > yo) {
|
|
8336
8336
|
this.clearPingInterval(), this.socket?.terminate();
|
|
8337
8337
|
return;
|
|
8338
8338
|
}
|
|
8339
8339
|
this.socket?.readyState === WebSocket.OPEN && this.socket.send(JSON.stringify({ type: "ping" }));
|
|
8340
|
-
},
|
|
8340
|
+
}, To), this.pingIntervalTimer.unref();
|
|
8341
8341
|
}
|
|
8342
8342
|
clearPingInterval() {
|
|
8343
8343
|
this.pingIntervalTimer && (clearInterval(this.pingIntervalTimer), this.pingIntervalTimer = void 0);
|
|
@@ -8384,7 +8384,7 @@ class To {
|
|
|
8384
8384
|
return [...this.buffer];
|
|
8385
8385
|
}
|
|
8386
8386
|
}
|
|
8387
|
-
var
|
|
8387
|
+
var bo = { detect({ env: e }) {
|
|
8388
8388
|
return !!e.APPVEYOR;
|
|
8389
8389
|
}, configuration({ env: e }) {
|
|
8390
8390
|
const t = e.APPVEYOR_PULL_REQUEST_NUMBER, r = !!t;
|
|
@@ -8398,31 +8398,31 @@ function tt(e) {
|
|
|
8398
8398
|
return e ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1] : void 0;
|
|
8399
8399
|
}
|
|
8400
8400
|
a(tt, "parseBranch");
|
|
8401
|
-
var
|
|
8401
|
+
var vo = { detect({ env: e }) {
|
|
8402
8402
|
return !!e.BUILD_BUILDURI;
|
|
8403
8403
|
}, configuration({ env: e }) {
|
|
8404
8404
|
const t = e.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!t;
|
|
8405
8405
|
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 };
|
|
8406
|
-
} },
|
|
8406
|
+
} }, Co = { detect({ env: e }) {
|
|
8407
8407
|
return !!e.bamboo_agentId;
|
|
8408
8408
|
}, configuration({ env: e }) {
|
|
8409
8409
|
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 };
|
|
8410
|
-
} },
|
|
8410
|
+
} }, Uo = { detect({ env: e }) {
|
|
8411
8411
|
return !!e.BITBUCKET_BUILD_NUMBER;
|
|
8412
8412
|
}, configuration({ env: e }) {
|
|
8413
8413
|
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 };
|
|
8414
|
-
} },
|
|
8414
|
+
} }, Bo = { detect({ env: e }) {
|
|
8415
8415
|
return !!e.BITRISE_IO;
|
|
8416
8416
|
}, configuration({ env: e }) {
|
|
8417
8417
|
const t = e.BITRISE_PULL_REQUEST === "false" ? void 0 : e.BITRISE_PULL_REQUEST, r = !!t;
|
|
8418
8418
|
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 };
|
|
8419
|
-
} },
|
|
8419
|
+
} }, Po = { detect({ env: e }) {
|
|
8420
8420
|
return !!e.BUDDY_WORKSPACE_ID;
|
|
8421
8421
|
}, configuration({ env: e }) {
|
|
8422
8422
|
const t = Jr(e.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!t;
|
|
8423
8423
|
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 };
|
|
8424
8424
|
} }, $e = { exports: {} }, $t, zr;
|
|
8425
|
-
function
|
|
8425
|
+
function Lo() {
|
|
8426
8426
|
if (zr) return $t;
|
|
8427
8427
|
zr = 1, $t = n, n.sync = i;
|
|
8428
8428
|
var e = qe;
|
|
@@ -8451,9 +8451,9 @@ function Uo() {
|
|
|
8451
8451
|
}
|
|
8452
8452
|
return a(i, "sync"), $t;
|
|
8453
8453
|
}
|
|
8454
|
-
a(
|
|
8454
|
+
a(Lo, "requireWindows");
|
|
8455
8455
|
var kt, Qr;
|
|
8456
|
-
function
|
|
8456
|
+
function Oo() {
|
|
8457
8457
|
if (Qr) return kt;
|
|
8458
8458
|
Qr = 1, kt = t, t.sync = r;
|
|
8459
8459
|
var e = qe;
|
|
@@ -8477,13 +8477,13 @@ function Bo() {
|
|
|
8477
8477
|
}
|
|
8478
8478
|
return a(i, "checkMode"), kt;
|
|
8479
8479
|
}
|
|
8480
|
-
a(
|
|
8480
|
+
a(Oo, "requireMode");
|
|
8481
8481
|
var Ht, Xr;
|
|
8482
|
-
function
|
|
8482
|
+
function No() {
|
|
8483
8483
|
if (Xr) return Ht;
|
|
8484
8484
|
Xr = 1;
|
|
8485
8485
|
var e;
|
|
8486
|
-
process.platform === "win32" || Bi.TESTING_WINDOWS ? e =
|
|
8486
|
+
process.platform === "win32" || Bi.TESTING_WINDOWS ? e = Lo() : e = Oo(), Ht = t, t.sync = r;
|
|
8487
8487
|
function t(n, i, o) {
|
|
8488
8488
|
if (typeof i == "function" && (o = i, i = {}), !o) {
|
|
8489
8489
|
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
@@ -8508,12 +8508,12 @@ function Po() {
|
|
|
8508
8508
|
}
|
|
8509
8509
|
return a(r, "sync"), Ht;
|
|
8510
8510
|
}
|
|
8511
|
-
a(
|
|
8511
|
+
a(No, "requireIsexe");
|
|
8512
8512
|
var Ft, Zr;
|
|
8513
|
-
function
|
|
8513
|
+
function Do() {
|
|
8514
8514
|
if (Zr) return Ft;
|
|
8515
8515
|
Zr = 1;
|
|
8516
|
-
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = Ke, r = e ? ";" : ":", n =
|
|
8516
|
+
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) => {
|
|
8517
8517
|
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) : [""];
|
|
8518
8518
|
return e && p.indexOf(".") !== -1 && C[0] !== "" && C.unshift(""), { pathEnv: T, pathExt: C, pathExtExe: v };
|
|
8519
8519
|
}, "getPathInfo"), c = a((p, E, h) => {
|
|
@@ -8552,9 +8552,9 @@ function Lo() {
|
|
|
8552
8552
|
}, "whichSync");
|
|
8553
8553
|
return Ft = c, c.sync = l, Ft;
|
|
8554
8554
|
}
|
|
8555
|
-
a(
|
|
8555
|
+
a(Do, "requireWhich");
|
|
8556
8556
|
var ut = { exports: {} }, en;
|
|
8557
|
-
function
|
|
8557
|
+
function Mo() {
|
|
8558
8558
|
if (en) return ut.exports;
|
|
8559
8559
|
en = 1;
|
|
8560
8560
|
const e = a((t = {}) => {
|
|
@@ -8563,12 +8563,12 @@ function Oo() {
|
|
|
8563
8563
|
}, "pathKey");
|
|
8564
8564
|
return ut.exports = e, ut.exports.default = e, ut.exports;
|
|
8565
8565
|
}
|
|
8566
|
-
a(
|
|
8566
|
+
a(Mo, "requirePathKey");
|
|
8567
8567
|
var jt, tn;
|
|
8568
|
-
function
|
|
8568
|
+
function xo() {
|
|
8569
8569
|
if (tn) return jt;
|
|
8570
8570
|
tn = 1;
|
|
8571
|
-
const e = Ke, t =
|
|
8571
|
+
const e = Ke, t = Do(), r = Mo();
|
|
8572
8572
|
function n(o, c) {
|
|
8573
8573
|
const l = o.options.env || process.env, p = process.cwd(), E = o.options.cwd != null, h = E && process.chdir !== void 0 && !process.chdir.disabled;
|
|
8574
8574
|
if (h) try {
|
|
@@ -8590,9 +8590,9 @@ function No() {
|
|
|
8590
8590
|
}
|
|
8591
8591
|
return a(i, "resolveCommand"), jt = i, jt;
|
|
8592
8592
|
}
|
|
8593
|
-
a(
|
|
8593
|
+
a(xo, "requireResolveCommand");
|
|
8594
8594
|
var lt = {}, rn;
|
|
8595
|
-
function
|
|
8595
|
+
function Go() {
|
|
8596
8596
|
if (rn) return lt;
|
|
8597
8597
|
rn = 1;
|
|
8598
8598
|
const e = /([()\][%!^"`<>&|;, *?])/g;
|
|
@@ -8605,17 +8605,17 @@ function Do() {
|
|
|
8605
8605
|
}
|
|
8606
8606
|
return a(r, "escapeArgument"), lt.command = t, lt.argument = r, lt;
|
|
8607
8607
|
}
|
|
8608
|
-
a(
|
|
8608
|
+
a(Go, "require_escape");
|
|
8609
8609
|
var qt, nn;
|
|
8610
|
-
function
|
|
8610
|
+
function $o() {
|
|
8611
8611
|
return nn || (nn = 1, qt = /^#!(.*)/), qt;
|
|
8612
8612
|
}
|
|
8613
|
-
a(
|
|
8613
|
+
a($o, "requireShebangRegex");
|
|
8614
8614
|
var Kt, on;
|
|
8615
|
-
function
|
|
8615
|
+
function ko() {
|
|
8616
8616
|
if (on) return Kt;
|
|
8617
8617
|
on = 1;
|
|
8618
|
-
const e =
|
|
8618
|
+
const e = $o();
|
|
8619
8619
|
return Kt = a((t = "") => {
|
|
8620
8620
|
const r = t.match(e);
|
|
8621
8621
|
if (!r) return null;
|
|
@@ -8623,12 +8623,12 @@ function xo() {
|
|
|
8623
8623
|
return o === "env" ? i : i ? `${o} ${i}` : o;
|
|
8624
8624
|
}, "shebangCommand"), Kt;
|
|
8625
8625
|
}
|
|
8626
|
-
a(
|
|
8627
|
-
var
|
|
8628
|
-
function
|
|
8629
|
-
if (sn) return
|
|
8626
|
+
a(ko, "requireShebangCommand");
|
|
8627
|
+
var Vt, sn;
|
|
8628
|
+
function Ho() {
|
|
8629
|
+
if (sn) return Vt;
|
|
8630
8630
|
sn = 1;
|
|
8631
|
-
const e = qe, t =
|
|
8631
|
+
const e = qe, t = ko();
|
|
8632
8632
|
function r(n) {
|
|
8633
8633
|
const o = Buffer.alloc(150);
|
|
8634
8634
|
let c;
|
|
@@ -8638,14 +8638,14 @@ function Go() {
|
|
|
8638
8638
|
}
|
|
8639
8639
|
return t(o.toString());
|
|
8640
8640
|
}
|
|
8641
|
-
return a(r, "readShebang"),
|
|
8641
|
+
return a(r, "readShebang"), Vt = r, Vt;
|
|
8642
8642
|
}
|
|
8643
|
-
a(
|
|
8644
|
-
var
|
|
8645
|
-
function
|
|
8646
|
-
if (an) return
|
|
8643
|
+
a(Ho, "requireReadShebang");
|
|
8644
|
+
var Wt, an;
|
|
8645
|
+
function Fo() {
|
|
8646
|
+
if (an) return Wt;
|
|
8647
8647
|
an = 1;
|
|
8648
|
-
const e = Ke, t =
|
|
8648
|
+
const e = Ke, t = xo(), r = Go(), n = Ho(), i = process.platform === "win32", o = /\.(?:com|exe)$/i, c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
8649
8649
|
function l(h) {
|
|
8650
8650
|
h.file = t(h);
|
|
8651
8651
|
const T = h.file && n(h.file);
|
|
@@ -8669,11 +8669,11 @@ function $o() {
|
|
|
8669
8669
|
const C = { command: h, args: T, options: v, file: void 0, original: { command: h, args: T } };
|
|
8670
8670
|
return v.shell ? C : p(C);
|
|
8671
8671
|
}
|
|
8672
|
-
return a(E, "parse"),
|
|
8672
|
+
return a(E, "parse"), Wt = E, Wt;
|
|
8673
8673
|
}
|
|
8674
|
-
a(
|
|
8674
|
+
a(Fo, "requireParse");
|
|
8675
8675
|
var Yt, cn;
|
|
8676
|
-
function
|
|
8676
|
+
function jo() {
|
|
8677
8677
|
if (cn) return Yt;
|
|
8678
8678
|
cn = 1;
|
|
8679
8679
|
const e = process.platform === "win32";
|
|
@@ -8702,12 +8702,12 @@ function ko() {
|
|
|
8702
8702
|
}
|
|
8703
8703
|
return a(i, "verifyENOENTSync"), Yt = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: t }, Yt;
|
|
8704
8704
|
}
|
|
8705
|
-
a(
|
|
8705
|
+
a(jo, "requireEnoent");
|
|
8706
8706
|
var un;
|
|
8707
|
-
function
|
|
8707
|
+
function qo() {
|
|
8708
8708
|
if (un) return $e.exports;
|
|
8709
8709
|
un = 1;
|
|
8710
|
-
const e = require$$0$2, t =
|
|
8710
|
+
const e = require$$0$2, t = Fo(), r = jo();
|
|
8711
8711
|
function n(o, c, l) {
|
|
8712
8712
|
const p = t(o, c, l), E = e.spawn(p.command, p.args, p.options);
|
|
8713
8713
|
return r.hookChildProcess(E, p), E;
|
|
@@ -8719,76 +8719,76 @@ function Ho() {
|
|
|
8719
8719
|
}
|
|
8720
8720
|
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;
|
|
8721
8721
|
}
|
|
8722
|
-
a(
|
|
8723
|
-
var
|
|
8724
|
-
function
|
|
8722
|
+
a(qo, "requireCrossSpawn");
|
|
8723
|
+
var Ko = qo(), Vo = vr(Ko);
|
|
8724
|
+
function Wo(e) {
|
|
8725
8725
|
const t = typeof e == "string" ? `
|
|
8726
8726
|
` : 10, r = typeof e == "string" ? "\r" : 13;
|
|
8727
8727
|
return e[e.length - 1] === t && (e = e.slice(0, -1)), e[e.length - 1] === r && (e = e.slice(0, -1)), e;
|
|
8728
8728
|
}
|
|
8729
|
-
a(
|
|
8729
|
+
a(Wo, "stripFinalNewline");
|
|
8730
8730
|
function ln(e = {}) {
|
|
8731
8731
|
const { env: t = process.env, platform: r = process.platform } = e;
|
|
8732
8732
|
return r !== "win32" ? "PATH" : Object.keys(t).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
|
|
8733
8733
|
}
|
|
8734
8734
|
a(ln, "pathKey");
|
|
8735
|
-
const
|
|
8735
|
+
const Yo = a(({ cwd: e = y.cwd(), path: t = y.env[ln()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
|
|
8736
8736
|
const o = e instanceof URL ? node_url.fileURLToPath(e) : e, c = path.resolve(o), l = [];
|
|
8737
|
-
return r &&
|
|
8738
|
-
}, "npmRunPath"),
|
|
8737
|
+
return r && Jo(l, c), i && zo(l, n, c), [...l, t].join(path.delimiter);
|
|
8738
|
+
}, "npmRunPath"), Jo = a((e, t) => {
|
|
8739
8739
|
let r;
|
|
8740
8740
|
for (; r !== t; ) e.push(path.join(t, "node_modules/.bin")), r = t, t = path.resolve(t, "..");
|
|
8741
|
-
}, "applyPreferLocal"),
|
|
8741
|
+
}, "applyPreferLocal"), zo = a((e, t, r) => {
|
|
8742
8742
|
const n = t instanceof URL ? node_url.fileURLToPath(t) : t;
|
|
8743
8743
|
e.push(path.resolve(r, n, ".."));
|
|
8744
|
-
}, "applyExecPath"),
|
|
8744
|
+
}, "applyExecPath"), Qo = a(({ env: e = y.env, ...t } = {}) => {
|
|
8745
8745
|
e = { ...e };
|
|
8746
8746
|
const r = ln({ env: e });
|
|
8747
|
-
return t.path = e[r], e[r] =
|
|
8748
|
-
}, "npmRunPathEnv"),
|
|
8747
|
+
return t.path = e[r], e[r] = Yo(t), e;
|
|
8748
|
+
}, "npmRunPathEnv"), Xo = a(() => {
|
|
8749
8749
|
const e = hn - fn + 1;
|
|
8750
|
-
return Array.from({ length: e },
|
|
8751
|
-
}, "getRealtimeSignals"),
|
|
8752
|
-
const e =
|
|
8753
|
-
return [...
|
|
8754
|
-
}, "getSignals"),
|
|
8750
|
+
return Array.from({ length: e }, Zo);
|
|
8751
|
+
}, "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(() => {
|
|
8752
|
+
const e = Xo();
|
|
8753
|
+
return [...es, ...e].map(ts);
|
|
8754
|
+
}, "getSignals"), ts = a(({ name: e, number: t, description: r, action: n, forced: i = false, standard: o }) => {
|
|
8755
8755
|
const { signals: { [e]: c } } = node_os.constants, l = c !== void 0;
|
|
8756
8756
|
return { name: e, number: l ? c : t, description: r, supported: l, action: n, forced: i, standard: o };
|
|
8757
|
-
}, "normalizeSignal"),
|
|
8757
|
+
}, "normalizeSignal"), rs = a(() => {
|
|
8758
8758
|
const e = dn();
|
|
8759
|
-
return Object.fromEntries(e.map(
|
|
8760
|
-
}, "getSignalsByName"),
|
|
8761
|
-
const e = dn(), t = hn + 1, r = Array.from({ length: t }, (n, i) =>
|
|
8759
|
+
return Object.fromEntries(e.map(ns));
|
|
8760
|
+
}, "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(() => {
|
|
8761
|
+
const e = dn(), t = hn + 1, r = Array.from({ length: t }, (n, i) => ss(i, e));
|
|
8762
8762
|
return Object.assign({}, ...r);
|
|
8763
|
-
}, "getSignalsByNumber"),
|
|
8764
|
-
const r =
|
|
8763
|
+
}, "getSignalsByNumber"), ss = a((e, t) => {
|
|
8764
|
+
const r = as(e, t);
|
|
8765
8765
|
if (r === void 0) return {};
|
|
8766
8766
|
const { name: n, description: i, supported: o, action: c, forced: l, standard: p } = r;
|
|
8767
8767
|
return { [e]: { name: n, number: e, description: i, supported: o, action: c, forced: l, standard: p } };
|
|
8768
|
-
}, "getSignalByNumber"),
|
|
8768
|
+
}, "getSignalByNumber"), as = a((e, t) => {
|
|
8769
8769
|
const r = t.find(({ name: n }) => node_os.constants.signals[n] === e);
|
|
8770
8770
|
return r !== void 0 ? r : t.find((n) => n.number === e);
|
|
8771
8771
|
}, "findSignalByNumber");
|
|
8772
|
-
|
|
8773
|
-
const
|
|
8772
|
+
os();
|
|
8773
|
+
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() } } }) => {
|
|
8774
8774
|
o = o === null ? void 0 : o, i = i === null ? void 0 : i;
|
|
8775
|
-
const C = i === void 0 ? void 0 :
|
|
8775
|
+
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}
|
|
8776
8776
|
${n.message}` : b, L = [w, t, e].filter(Boolean).join(`
|
|
8777
8777
|
`);
|
|
8778
8778
|
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;
|
|
8779
|
-
}, "makeError"), ft = ["stdin", "stdout", "stderr"],
|
|
8779
|
+
}, "makeError"), ft = ["stdin", "stdout", "stderr"], us = a((e) => ft.some((t) => e[t] !== void 0), "hasAlias"), ls = a((e) => {
|
|
8780
8780
|
if (!e) return;
|
|
8781
8781
|
const { stdio: t } = e;
|
|
8782
8782
|
if (t === void 0) return ft.map((n) => e[n]);
|
|
8783
|
-
if (
|
|
8783
|
+
if (us(e)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ft.map((n) => `\`${n}\``).join(", ")}`);
|
|
8784
8784
|
if (typeof t == "string") return t;
|
|
8785
8785
|
if (!Array.isArray(t)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
|
|
8786
8786
|
const r = Math.max(t.length, ft.length);
|
|
8787
8787
|
return Array.from({ length: r }, (n, i) => t[i]);
|
|
8788
8788
|
}, "normalizeStdio"), je = [];
|
|
8789
8789
|
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");
|
|
8790
|
-
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,
|
|
8791
|
-
class
|
|
8790
|
+
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);
|
|
8791
|
+
class hs {
|
|
8792
8792
|
static {
|
|
8793
8793
|
a(this, "Emitter");
|
|
8794
8794
|
}
|
|
@@ -8798,7 +8798,7 @@ class us {
|
|
|
8798
8798
|
id = Math.random();
|
|
8799
8799
|
constructor() {
|
|
8800
8800
|
if (zt[Jt]) return zt[Jt];
|
|
8801
|
-
|
|
8801
|
+
fs(zt, Jt, { value: this, writable: false, enumerable: false, configurable: false });
|
|
8802
8802
|
}
|
|
8803
8803
|
on(t, r) {
|
|
8804
8804
|
this.listeners[t].push(r);
|
|
@@ -8820,14 +8820,14 @@ class mn {
|
|
|
8820
8820
|
a(this, "SignalExitBase");
|
|
8821
8821
|
}
|
|
8822
8822
|
}
|
|
8823
|
-
const
|
|
8823
|
+
const ds = a((e) => ({ onExit(t, r) {
|
|
8824
8824
|
return e.onExit(t, r);
|
|
8825
8825
|
}, load() {
|
|
8826
8826
|
return e.load();
|
|
8827
8827
|
}, unload() {
|
|
8828
8828
|
return e.unload();
|
|
8829
8829
|
} }), "signalExitWrap");
|
|
8830
|
-
class
|
|
8830
|
+
class ps extends mn {
|
|
8831
8831
|
static {
|
|
8832
8832
|
a(this, "SignalExitFallback");
|
|
8833
8833
|
}
|
|
@@ -8840,12 +8840,12 @@ class fs extends mn {
|
|
|
8840
8840
|
unload() {
|
|
8841
8841
|
}
|
|
8842
8842
|
}
|
|
8843
|
-
class
|
|
8843
|
+
class ms extends mn {
|
|
8844
8844
|
static {
|
|
8845
8845
|
a(this, "SignalExit");
|
|
8846
8846
|
}
|
|
8847
8847
|
#s = Qt.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
8848
|
-
#t = new
|
|
8848
|
+
#t = new hs();
|
|
8849
8849
|
#e;
|
|
8850
8850
|
#i;
|
|
8851
8851
|
#o;
|
|
@@ -8908,13 +8908,13 @@ class hs extends mn {
|
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
8910
|
const Qt = globalThis.process;
|
|
8911
|
-
|
|
8912
|
-
function
|
|
8911
|
+
ds(ht(Qt) ? new ms(Qt) : new ps());
|
|
8912
|
+
function Es(e) {
|
|
8913
8913
|
return e !== null && typeof e == "object" && typeof e.pipe == "function";
|
|
8914
8914
|
}
|
|
8915
|
-
a(
|
|
8915
|
+
a(Es, "isStream"), new TextEncoder();
|
|
8916
8916
|
var Xt, En;
|
|
8917
|
-
function
|
|
8917
|
+
function gs() {
|
|
8918
8918
|
if (En) return Xt;
|
|
8919
8919
|
En = 1;
|
|
8920
8920
|
const { PassThrough: e } = require$$0;
|
|
@@ -8934,33 +8934,33 @@ function ps() {
|
|
|
8934
8934
|
}
|
|
8935
8935
|
}, "mergeStream"), Xt;
|
|
8936
8936
|
}
|
|
8937
|
-
a(
|
|
8938
|
-
const
|
|
8937
|
+
a(gs, "requireMergeStream"), gs();
|
|
8938
|
+
const _s = a((e) => {
|
|
8939
8939
|
if (e !== void 0) throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
8940
|
-
}, "validateInputOptions"),
|
|
8941
|
-
const t =
|
|
8942
|
-
if (
|
|
8940
|
+
}, "validateInputOptions"), Is = a(({ input: e, inputFile: t }) => typeof t != "string" ? e : (_s(e), node_fs.readFileSync(t)), "getInputSync"), Ss = a((e) => {
|
|
8941
|
+
const t = Is(e);
|
|
8942
|
+
if (Es(t)) throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
8943
8943
|
return t;
|
|
8944
|
-
}, "handleInputSync"),
|
|
8944
|
+
}, "handleInputSync"), Rs = (async () => {
|
|
8945
8945
|
})().constructor.prototype;
|
|
8946
|
-
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(
|
|
8947
|
-
const gn = a((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"),
|
|
8946
|
+
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(Rs, e)]);
|
|
8947
|
+
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 = node_util.debuglog("execa").enabled, dt = a((e, t) => String(e).padStart(t, "0"), "padField"), vs = a(() => {
|
|
8948
8948
|
const e = /* @__PURE__ */ new Date();
|
|
8949
8949
|
return `${dt(e.getHours(), 2)}:${dt(e.getMinutes(), 2)}:${dt(e.getSeconds(), 2)}.${dt(e.getMilliseconds(), 3)}`;
|
|
8950
|
-
}, "getTimestamp"),
|
|
8951
|
-
t && y.stderr.write(`[${
|
|
8950
|
+
}, "getTimestamp"), Cs = a((e, { verbose: t }) => {
|
|
8951
|
+
t && y.stderr.write(`[${vs()}] ${e}
|
|
8952
8952
|
`);
|
|
8953
|
-
}, "logCommand"),
|
|
8953
|
+
}, "logCommand"), Us = 1e3 * 1e3 * 100, Bs = a(({ env: e, extendEnv: t, preferLocal: r, localDir: n, execPath: i }) => {
|
|
8954
8954
|
const o = t ? { ...y.env, ...e } : e;
|
|
8955
|
-
return r ?
|
|
8956
|
-
}, "getEnv"),
|
|
8957
|
-
const n =
|
|
8958
|
-
return e = n.command, t = n.args, r = n.options, r = { maxBuffer:
|
|
8959
|
-
}, "handleArguments"), _n = a((e, t, r) => typeof t != "string" && !node_buffer.Buffer.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ?
|
|
8955
|
+
return r ? Qo({ env: o, cwd: n, execPath: i }) : o;
|
|
8956
|
+
}, "getEnv"), Ps = a((e, t, r = {}) => {
|
|
8957
|
+
const n = Vo._parse(e, t, r);
|
|
8958
|
+
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 };
|
|
8959
|
+
}, "handleArguments"), _n = a((e, t, r) => typeof t != "string" && !node_buffer.Buffer.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ? Wo(t) : t, "handleOutput");
|
|
8960
8960
|
function Zt(e, t, r) {
|
|
8961
|
-
const n =
|
|
8962
|
-
|
|
8963
|
-
const c =
|
|
8961
|
+
const n = Ps(e, t, r), i = ws(e, t), o = As(e, t);
|
|
8962
|
+
Cs(o, n.options);
|
|
8963
|
+
const c = Ss(n.options);
|
|
8964
8964
|
let l;
|
|
8965
8965
|
try {
|
|
8966
8966
|
l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: c });
|
|
@@ -8997,122 +8997,122 @@ function er(e) {
|
|
|
8997
8997
|
}
|
|
8998
8998
|
}
|
|
8999
8999
|
a(er, "branch");
|
|
9000
|
-
const In = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/,
|
|
9001
|
-
function
|
|
9000
|
+
const In = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Ls = /^\/(.*)\.git$/;
|
|
9001
|
+
function Os(e) {
|
|
9002
9002
|
if (e) {
|
|
9003
9003
|
if (e.match(In)) return e.replace(In, "$1");
|
|
9004
9004
|
try {
|
|
9005
|
-
return new URL(e).pathname.replace(
|
|
9005
|
+
return new URL(e).pathname.replace(Ls, "$1");
|
|
9006
9006
|
} catch {
|
|
9007
9007
|
return;
|
|
9008
9008
|
}
|
|
9009
9009
|
}
|
|
9010
9010
|
}
|
|
9011
|
-
a(
|
|
9012
|
-
var
|
|
9011
|
+
a(Os, "getSlugFromGitURL");
|
|
9012
|
+
var Ns = { detect({ env: e }) {
|
|
9013
9013
|
return !!e.BUILDKITE;
|
|
9014
9014
|
}, configuration({ env: e }) {
|
|
9015
9015
|
const t = e.BUILDKITE_PULL_REQUEST === "false" ? void 0 : e.BUILDKITE_PULL_REQUEST, r = !!t;
|
|
9016
|
-
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:
|
|
9017
|
-
} },
|
|
9016
|
+
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 };
|
|
9017
|
+
} }, Ds = { detect({ env: e }) {
|
|
9018
9018
|
return !!e.CIRCLECI;
|
|
9019
9019
|
}, configuration({ env: e }) {
|
|
9020
9020
|
const t = e.CIRCLE_PR_NUMBER || Jr(e.CIRCLE_PULL_REQUEST || e.CI_PULL_REQUEST), r = !!t;
|
|
9021
9021
|
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}` };
|
|
9022
9022
|
} };
|
|
9023
9023
|
const Sn = "https://cirrus-ci.com";
|
|
9024
|
-
var
|
|
9024
|
+
var Ms = { detect({ env: e }) {
|
|
9025
9025
|
return !!e.CIRRUS_CI;
|
|
9026
9026
|
}, configuration({ env: e }) {
|
|
9027
9027
|
const t = e.CIRRUS_PR, r = !!t;
|
|
9028
9028
|
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 };
|
|
9029
|
-
} },
|
|
9029
|
+
} }, xs = { detect({ env: e }) {
|
|
9030
9030
|
return e.CF_PAGES === "1";
|
|
9031
9031
|
}, configuration({ env: e }) {
|
|
9032
9032
|
return { name: "Cloudflare Pages", service: "cloudflarePages", commit: e.CF_PAGES_COMMIT_SHA, branch: e.CF_PAGES_BRANCH, root: e.PWD };
|
|
9033
|
-
} },
|
|
9033
|
+
} }, Gs = { detect({ env: e }) {
|
|
9034
9034
|
return !!e.CODEBUILD_BUILD_ID;
|
|
9035
9035
|
}, configuration({ env: e, cwd: t }) {
|
|
9036
9036
|
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 };
|
|
9037
|
-
} },
|
|
9037
|
+
} }, $s = { detect({ env: e }) {
|
|
9038
9038
|
return !!e.CF_BUILD_ID;
|
|
9039
9039
|
}, configuration({ env: e }) {
|
|
9040
9040
|
const t = e.CF_PULL_REQUEST_NUMBER, r = !!t;
|
|
9041
9041
|
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 };
|
|
9042
|
-
} },
|
|
9042
|
+
} }, ks = { detect({ env: e }) {
|
|
9043
9043
|
return e.CI_NAME && e.CI_NAME === "codeship";
|
|
9044
9044
|
}, configuration({ env: e }) {
|
|
9045
9045
|
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 };
|
|
9046
|
-
} },
|
|
9046
|
+
} }, Hs = { detect({ env: e }) {
|
|
9047
9047
|
return !!e.DRONE;
|
|
9048
9048
|
}, configuration({ env: e }) {
|
|
9049
9049
|
const t = e.DRONE_BUILD_EVENT === "pull_request";
|
|
9050
9050
|
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 };
|
|
9051
|
-
} },
|
|
9051
|
+
} }, Fs = { configuration(e) {
|
|
9052
9052
|
return { commit: pt(e), branch: er(e) };
|
|
9053
9053
|
} };
|
|
9054
|
-
const
|
|
9054
|
+
const js = a(({ env: e }) => {
|
|
9055
9055
|
try {
|
|
9056
9056
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9057
9057
|
if (t && t.pull_request) return { branch: t.pull_request.base ? tt(t.pull_request.base.ref) : void 0, pr: t.pull_request.number };
|
|
9058
9058
|
} catch {
|
|
9059
9059
|
}
|
|
9060
9060
|
return { pr: void 0, branch: void 0 };
|
|
9061
|
-
}, "getPrEvent"),
|
|
9061
|
+
}, "getPrEvent"), qs = a((e) => {
|
|
9062
9062
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9063
9063
|
return t && t.pull_request ? t.pull_request.number : void 0;
|
|
9064
9064
|
}, "getPrNumber");
|
|
9065
|
-
var
|
|
9065
|
+
var Ks = { detect({ env: e }) {
|
|
9066
9066
|
return !!e.GITHUB_ACTIONS;
|
|
9067
9067
|
}, configuration({ env: e, cwd: t }) {
|
|
9068
|
-
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/${
|
|
9069
|
-
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 ?
|
|
9070
|
-
} },
|
|
9068
|
+
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);
|
|
9069
|
+
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 };
|
|
9070
|
+
} }, Vs = { detect({ env: e }) {
|
|
9071
9071
|
return !!e.GITLAB_CI;
|
|
9072
9072
|
}, configuration({ env: e }) {
|
|
9073
9073
|
const t = e.CI_MERGE_REQUEST_ID, r = !!t;
|
|
9074
9074
|
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 };
|
|
9075
|
-
} },
|
|
9075
|
+
} }, Ws = { detect({ env: e }) {
|
|
9076
9076
|
return !!e.JENKINS_URL;
|
|
9077
9077
|
}, configuration({ env: e, cwd: t }) {
|
|
9078
9078
|
const r = e.ghprbPullId || e.gitlabMergeRequestId || e.CHANGE_ID, n = !!r, i = e.GIT_LOCAL_BRANCH || e.GIT_BRANCH || e.gitlabBranch || e.BRANCH_NAME;
|
|
9079
9079
|
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 };
|
|
9080
|
-
} },
|
|
9080
|
+
} }, Ys = { detect({ env: e }) {
|
|
9081
9081
|
return e.NETLIFY === "true";
|
|
9082
9082
|
}, configuration({ env: e }) {
|
|
9083
9083
|
const t = e.PULL_REQUEST === "true";
|
|
9084
9084
|
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 };
|
|
9085
|
-
} },
|
|
9085
|
+
} }, Js = { detect({ env: e }) {
|
|
9086
9086
|
return !!e.DISTELLI_APPNAME;
|
|
9087
9087
|
}, configuration({ env: e }) {
|
|
9088
9088
|
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 };
|
|
9089
|
-
} },
|
|
9089
|
+
} }, zs = { detect({ env: e }) {
|
|
9090
9090
|
return !!e.SAILCI;
|
|
9091
9091
|
}, configuration({ env: e }) {
|
|
9092
9092
|
const t = e.SAIL_PULL_REQUEST_NUMBER, r = !!t;
|
|
9093
9093
|
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 };
|
|
9094
|
-
} },
|
|
9094
|
+
} }, Qs = { detect({ env: e }) {
|
|
9095
9095
|
return !!e.SCREWDRIVER;
|
|
9096
9096
|
}, configuration({ env: e }) {
|
|
9097
9097
|
const t = e.SD_PULL_REQUEST, r = !!t;
|
|
9098
9098
|
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 };
|
|
9099
|
-
} },
|
|
9099
|
+
} }, Xs = { detect({ env: e }) {
|
|
9100
9100
|
return !!e.SCRUTINIZER;
|
|
9101
9101
|
}, configuration({ env: e }) {
|
|
9102
9102
|
const t = e.SCRUTINIZER_PR_NUMBER, r = !!t;
|
|
9103
9103
|
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 };
|
|
9104
|
-
} },
|
|
9104
|
+
} }, Zs = { detect({ env: e }) {
|
|
9105
9105
|
return !!e.SEMAPHORE;
|
|
9106
9106
|
}, configuration({ env: e, cwd: t }) {
|
|
9107
9107
|
const r = e.SEMAPHORE_GIT_PR_NUMBER || e.PULL_REQUEST_NUMBER, n = !!r;
|
|
9108
9108
|
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 };
|
|
9109
|
-
} },
|
|
9109
|
+
} }, ea = { detect({ env: e }) {
|
|
9110
9110
|
return !!e.SHIPPABLE;
|
|
9111
9111
|
}, configuration({ env: e }) {
|
|
9112
9112
|
const t = e.IS_PULL_REQUEST === "true" ? e.PULL_REQUEST : void 0, r = !!t;
|
|
9113
9113
|
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 };
|
|
9114
9114
|
} }, ke = {}, Rn;
|
|
9115
|
-
function
|
|
9115
|
+
function ta() {
|
|
9116
9116
|
if (Rn) return ke;
|
|
9117
9117
|
Rn = 1, Object.defineProperty(ke, "__esModule", { value: true }), ke.of = ke.PropertiesFile = void 0;
|
|
9118
9118
|
var e = t(qe);
|
|
@@ -9220,64 +9220,64 @@ function Xs() {
|
|
|
9220
9220
|
}, "of2");
|
|
9221
9221
|
return ke.of = n, ke;
|
|
9222
9222
|
}
|
|
9223
|
-
a(
|
|
9224
|
-
var
|
|
9223
|
+
a(ta, "requireDistNode");
|
|
9224
|
+
var ra = ta(), na = vr(ra);
|
|
9225
9225
|
const tr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, Tn = a((e) => {
|
|
9226
9226
|
try {
|
|
9227
|
-
return
|
|
9227
|
+
return na.of(e);
|
|
9228
9228
|
} catch {
|
|
9229
9229
|
return;
|
|
9230
9230
|
}
|
|
9231
|
-
}, "safeReadProperties"),
|
|
9231
|
+
}, "safeReadProperties"), ia = a(({ env: e, cwd: t }) => {
|
|
9232
9232
|
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);
|
|
9233
9233
|
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)]));
|
|
9234
9234
|
}, "getProperties");
|
|
9235
|
-
var
|
|
9235
|
+
var oa = { detect({ env: e }) {
|
|
9236
9236
|
return !!e.TEAMCITY_VERSION;
|
|
9237
9237
|
}, configuration({ env: e, cwd: t }) {
|
|
9238
|
-
return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...
|
|
9239
|
-
} },
|
|
9238
|
+
return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...ia({ env: e, cwd: t }) };
|
|
9239
|
+
} }, sa = { detect({ env: e }) {
|
|
9240
9240
|
return !!e.TRAVIS;
|
|
9241
9241
|
}, configuration({ env: e }) {
|
|
9242
9242
|
const t = e.TRAVIS_PULL_REQUEST === "false" ? void 0 : e.TRAVIS_PULL_REQUEST, r = !!t;
|
|
9243
9243
|
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 };
|
|
9244
|
-
} },
|
|
9244
|
+
} }, aa = { detect({ env: e }) {
|
|
9245
9245
|
return !!e.VELA;
|
|
9246
9246
|
}, configuration({ env: e }) {
|
|
9247
9247
|
const t = e.VELA_BUILD_EVENT === "pull_request";
|
|
9248
9248
|
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 };
|
|
9249
|
-
} },
|
|
9249
|
+
} }, ca = { detect({ env: e }) {
|
|
9250
9250
|
return !!e.VERCEL || !!e.NOW_GITHUB_DEPLOYMENT;
|
|
9251
9251
|
}, configuration({ env: e }) {
|
|
9252
9252
|
const t = "Vercel", r = "vercel";
|
|
9253
9253
|
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}` };
|
|
9254
|
-
} },
|
|
9254
|
+
} }, ua = { detect({ env: e }) {
|
|
9255
9255
|
return !!e.WERCKER_MAIN_PIPELINE_STARTED;
|
|
9256
9256
|
}, configuration({ env: e }) {
|
|
9257
9257
|
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 };
|
|
9258
|
-
} },
|
|
9258
|
+
} }, la = { detect({ env: e }) {
|
|
9259
9259
|
return e.CI && e.CI === "woodpecker";
|
|
9260
9260
|
}, configuration({ env: e }) {
|
|
9261
9261
|
const t = e.CI_PIPELINE_EVENT === "pull_request";
|
|
9262
9262
|
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 };
|
|
9263
|
-
} },
|
|
9263
|
+
} }, fa = { detect({ env: e }) {
|
|
9264
9264
|
return !!e.JB_SPACE_EXECUTION_NUMBER;
|
|
9265
9265
|
}, configuration({ env: e }) {
|
|
9266
9266
|
const t = e.JB_SPACE_PROJECT_KEY, r = e.JB_SPACE_GIT_REPOSITORY_NAME;
|
|
9267
9267
|
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 };
|
|
9268
9268
|
} };
|
|
9269
|
-
const rr = { appveyor:
|
|
9269
|
+
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 };
|
|
9270
9270
|
var nr = a(({ env: e = process.env, cwd: t = process.cwd() } = {}) => {
|
|
9271
9271
|
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 }) };
|
|
9272
|
-
return { isCi: !!e.CI,
|
|
9272
|
+
return { isCi: !!e.CI, ...Fs.configuration({ env: e, cwd: t }) };
|
|
9273
9273
|
}, "envCiModule");
|
|
9274
|
-
const
|
|
9275
|
-
function
|
|
9276
|
-
const e =
|
|
9277
|
-
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:
|
|
9274
|
+
const ha = typeof nr == "function" ? nr : nr.default;
|
|
9275
|
+
function da() {
|
|
9276
|
+
const e = ha();
|
|
9277
|
+
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() };
|
|
9278
9278
|
}
|
|
9279
|
-
a(
|
|
9280
|
-
function
|
|
9279
|
+
a(da, "getGitInfo");
|
|
9280
|
+
function pa() {
|
|
9281
9281
|
try {
|
|
9282
9282
|
const e = process.env.GITHUB_EVENT_PATH;
|
|
9283
9283
|
if (e) {
|
|
@@ -9289,21 +9289,21 @@ function fa() {
|
|
|
9289
9289
|
return;
|
|
9290
9290
|
}
|
|
9291
9291
|
}
|
|
9292
|
-
a(
|
|
9293
|
-
function
|
|
9292
|
+
a(pa, "getPRInfo");
|
|
9293
|
+
function ma() {
|
|
9294
9294
|
try {
|
|
9295
9295
|
return require$$0$2.execSync("git log -1 --pretty=%B", { encoding: "utf-8", stdio: ["pipe", "pipe", "ignore"] }).trim();
|
|
9296
9296
|
} catch {
|
|
9297
9297
|
return;
|
|
9298
9298
|
}
|
|
9299
9299
|
}
|
|
9300
|
-
a(
|
|
9301
|
-
function
|
|
9300
|
+
a(ma, "getLastCommitMessage");
|
|
9301
|
+
function Ea() {
|
|
9302
9302
|
return { hostname: Et.hostname(), platform: Et.platform() };
|
|
9303
9303
|
}
|
|
9304
|
-
a(
|
|
9305
|
-
const
|
|
9306
|
-
var
|
|
9304
|
+
a(Ea, "getMachineInfo");
|
|
9305
|
+
const ga = new Error("request for lock canceled");
|
|
9306
|
+
var _a = a(function(e, t, r, n) {
|
|
9307
9307
|
function i(o) {
|
|
9308
9308
|
return o instanceof r ? o : new r(function(c) {
|
|
9309
9309
|
c(o);
|
|
@@ -9332,11 +9332,11 @@ var ma = a(function(e, t, r, n) {
|
|
|
9332
9332
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9333
9333
|
});
|
|
9334
9334
|
}, "__awaiter$2");
|
|
9335
|
-
class
|
|
9335
|
+
class Ia {
|
|
9336
9336
|
static {
|
|
9337
9337
|
a(this, "Semaphore");
|
|
9338
9338
|
}
|
|
9339
|
-
constructor(t, r =
|
|
9339
|
+
constructor(t, r = ga) {
|
|
9340
9340
|
this._value = t, this._cancelError = r, this._queue = [], this._weightedWaiters = [];
|
|
9341
9341
|
}
|
|
9342
9342
|
acquire(t = 1, r = 0) {
|
|
@@ -9347,7 +9347,7 @@ class Ea {
|
|
|
9347
9347
|
});
|
|
9348
9348
|
}
|
|
9349
9349
|
runExclusive(t) {
|
|
9350
|
-
return
|
|
9350
|
+
return _a(this, arguments, void 0, function* (r, n = 1, i = 0) {
|
|
9351
9351
|
const [o, c] = yield this.acquire(n, i);
|
|
9352
9352
|
try {
|
|
9353
9353
|
return yield r(o);
|
|
@@ -9359,7 +9359,7 @@ class Ea {
|
|
|
9359
9359
|
waitForUnlock(t = 1, r = 0) {
|
|
9360
9360
|
if (t <= 0) throw new Error(`invalid weight ${t}: must be positive`);
|
|
9361
9361
|
return this._couldLockImmediately(t, r) ? Promise.resolve() : new Promise((n) => {
|
|
9362
|
-
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []),
|
|
9362
|
+
this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []), Sa(this._weightedWaiters[t - 1], { resolve: n, priority: r });
|
|
9363
9363
|
});
|
|
9364
9364
|
}
|
|
9365
9365
|
isLocked() {
|
|
@@ -9410,17 +9410,17 @@ class Ea {
|
|
|
9410
9410
|
return (this._queue.length === 0 || this._queue[0].priority < r) && t <= this._value;
|
|
9411
9411
|
}
|
|
9412
9412
|
}
|
|
9413
|
-
function
|
|
9413
|
+
function Sa(e, t) {
|
|
9414
9414
|
const r = yn(e, (n) => t.priority <= n.priority);
|
|
9415
9415
|
e.splice(r + 1, 0, t);
|
|
9416
9416
|
}
|
|
9417
|
-
a(
|
|
9417
|
+
a(Sa, "insertSorted");
|
|
9418
9418
|
function yn(e, t) {
|
|
9419
9419
|
for (let r = e.length - 1; r >= 0; r--) if (t(e[r])) return r;
|
|
9420
9420
|
return -1;
|
|
9421
9421
|
}
|
|
9422
9422
|
a(yn, "findIndexFromEnd");
|
|
9423
|
-
var
|
|
9423
|
+
var Ra = a(function(e, t, r, n) {
|
|
9424
9424
|
function i(o) {
|
|
9425
9425
|
return o instanceof r ? o : new r(function(c) {
|
|
9426
9426
|
c(o);
|
|
@@ -9449,15 +9449,15 @@ var _a = a(function(e, t, r, n) {
|
|
|
9449
9449
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9450
9450
|
});
|
|
9451
9451
|
}, "__awaiter$1");
|
|
9452
|
-
class
|
|
9452
|
+
class Ta {
|
|
9453
9453
|
static {
|
|
9454
9454
|
a(this, "Mutex");
|
|
9455
9455
|
}
|
|
9456
9456
|
constructor(t) {
|
|
9457
|
-
this._semaphore = new
|
|
9457
|
+
this._semaphore = new Ia(1, t);
|
|
9458
9458
|
}
|
|
9459
9459
|
acquire() {
|
|
9460
|
-
return
|
|
9460
|
+
return Ra(this, arguments, void 0, function* (t = 0) {
|
|
9461
9461
|
const [, r] = yield this._semaphore.acquire(1, t);
|
|
9462
9462
|
return r;
|
|
9463
9463
|
});
|
|
@@ -9481,7 +9481,7 @@ class Ia {
|
|
|
9481
9481
|
function wn(e, t) {
|
|
9482
9482
|
const r = e.length;
|
|
9483
9483
|
let n = 0, i = 0;
|
|
9484
|
-
const o = new
|
|
9484
|
+
const o = new Ta();
|
|
9485
9485
|
return t({ completed: n, errors: i, total: r }), e.map((c) => c.then(async (l) => (await o.runExclusive(() => {
|
|
9486
9486
|
n++, t({ completed: n, errors: i, total: r });
|
|
9487
9487
|
}), l)).catch(async (l) => {
|
|
@@ -9491,27 +9491,27 @@ function wn(e, t) {
|
|
|
9491
9491
|
}));
|
|
9492
9492
|
}
|
|
9493
9493
|
a(wn, "trackPromiseProgress");
|
|
9494
|
-
function
|
|
9494
|
+
function ya({ result: e, sensitiveValues: t }) {
|
|
9495
9495
|
return e.steps.map((r) => An({ sensitiveValues: t, step: r }));
|
|
9496
9496
|
}
|
|
9497
|
-
a(
|
|
9497
|
+
a(ya, "extractSteps");
|
|
9498
9498
|
function An({ sensitiveValues: e, step: t }) {
|
|
9499
9499
|
const r = a((n) => n && e?.length ? se({ sensitiveValues: e, str: n }) : n, "scrub");
|
|
9500
9500
|
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 };
|
|
9501
9501
|
}
|
|
9502
9502
|
a(An, "extractStep");
|
|
9503
|
-
async function
|
|
9504
|
-
await
|
|
9503
|
+
async function wa({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
|
|
9504
|
+
await Wn(async () => {
|
|
9505
9505
|
const n = await fetch(r, { body: e, method: "PUT" });
|
|
9506
9506
|
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}`);
|
|
9507
9507
|
}, { minTimeout: 2e3, randomize: true, retries: t });
|
|
9508
9508
|
}
|
|
9509
|
-
a(
|
|
9510
|
-
const
|
|
9509
|
+
a(wa, "uploadWithRetry");
|
|
9510
|
+
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 }) => {
|
|
9511
9511
|
const r = [...new Set(t.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
|
|
9512
9512
|
if (r.length > 0) {
|
|
9513
9513
|
const n = r.join(", ");
|
|
9514
|
-
return n.length <=
|
|
9514
|
+
return n.length <= va ? n : `${r[0]} + ${r.length - 1} more`;
|
|
9515
9515
|
}
|
|
9516
9516
|
if (e.isCI && e.ciServiceName && e.ciBuild) return `${e.ciServiceName} #${e.ciBuild}`;
|
|
9517
9517
|
try {
|
|
@@ -9523,11 +9523,11 @@ const Ta = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120
|
|
|
9523
9523
|
} catch {
|
|
9524
9524
|
}
|
|
9525
9525
|
return "Playwright Test Suite";
|
|
9526
|
-
}, "generateRunName"),
|
|
9526
|
+
}, "generateRunName"), Ua = a(({ notificationConfigs: e, suite: t }) => {
|
|
9527
9527
|
if (!e || e.length === 0) return;
|
|
9528
9528
|
const r = new Set(t.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = e.filter((i) => r.has(i.projectName));
|
|
9529
9529
|
return n.length > 0 ? n : void 0;
|
|
9530
|
-
}, "filterNotificationConfigsByRunningProjects"),
|
|
9530
|
+
}, "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 }) => {
|
|
9531
9531
|
if (t && e.startsWith(t)) {
|
|
9532
9532
|
const r = e.slice(t.length);
|
|
9533
9533
|
return r.startsWith("/") ? r.slice(1) : r;
|
|
@@ -9567,16 +9567,16 @@ class Un {
|
|
|
9567
9567
|
const i = jr(t.sensitiveValues);
|
|
9568
9568
|
this.sensitiveValues = [...i].sort((o, c) => c.length - o.length);
|
|
9569
9569
|
}
|
|
9570
|
-
this.wsClient = new
|
|
9570
|
+
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 });
|
|
9571
9571
|
}
|
|
9572
9572
|
onBegin(t, r) {
|
|
9573
9573
|
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;
|
|
9574
9574
|
this.suiteData = this.extractSuiteInfo(t, r);
|
|
9575
|
-
const i =
|
|
9575
|
+
const i = Ua({ notificationConfigs: this.notificationConfigs, suite: r });
|
|
9576
9576
|
this.filteredNotificationConfigs = i;
|
|
9577
9577
|
const o = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, totalShards: this.config?.shard?.total } : void 0, status: "running" };
|
|
9578
9578
|
try {
|
|
9579
|
-
const E = require$$7.fileURLToPath(new URL("./create-suite.mjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
9579
|
+
const E = require$$7.fileURLToPath(new URL("./create-suite.mjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-CfBVZ27r.cjs', document.baseURI).href)))), h = JSON.stringify({ apiBaseUrl: ba, apiKey: this.apiKey, body: o, projectId: this.projectId, timeoutMs: vn }), T = require$$0$2.spawnSync(process.execPath, [E], { encoding: "utf-8", input: h, stdio: ["pipe", "pipe", "pipe"], timeout: vn + 5e3 });
|
|
9580
9580
|
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) {
|
|
9581
9581
|
const v = T.stderr?.trim() || T.error?.message || "Unknown error";
|
|
9582
9582
|
throw new Error(v);
|
|
@@ -9609,7 +9609,7 @@ class Un {
|
|
|
9609
9609
|
if (this.isListMode || this.skipSuiteReporting) return;
|
|
9610
9610
|
const n = this.extractTestCaseInfo(t, r);
|
|
9611
9611
|
this.testCases.push(n), this.testStepsMap.set(n.id, r);
|
|
9612
|
-
const i =
|
|
9612
|
+
const i = ya({ result: r, sensitiveValues: this.sensitiveValues }), o = [...r.attachments, { contentType: "text/plain", name: "source-code", path: t.location.file }], c = (async () => {
|
|
9613
9613
|
const l = await this.extractAttachmentMetadata({ attachments: o, attemptNumber: n.attemptNumber, testId: n.id });
|
|
9614
9614
|
let p, E;
|
|
9615
9615
|
l.length > 0 && (p = `${n.id}-${n.attemptNumber}`, E = new Promise((h) => {
|
|
@@ -9674,8 +9674,8 @@ class Un {
|
|
|
9674
9674
|
return !t || !this.sensitiveValues?.length ? t : se({ sensitiveValues: this.sensitiveValues, str: t });
|
|
9675
9675
|
}
|
|
9676
9676
|
extractSuiteInfo(t, r) {
|
|
9677
|
-
const n =
|
|
9678
|
-
return { id: Ye(), projectSettings:
|
|
9677
|
+
const n = da(), i = Ea(), o = /* @__PURE__ */ new Date();
|
|
9678
|
+
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 };
|
|
9679
9679
|
}
|
|
9680
9680
|
extractTestCaseInfo(t, r) {
|
|
9681
9681
|
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();
|
|
@@ -9731,7 +9731,7 @@ class Un {
|
|
|
9731
9731
|
const i = n.map(async ({ artifactId: o, name: c, uploadUrl: l }) => {
|
|
9732
9732
|
const p = `${r}-${t}-${o}`, E = this.attachmentFiles.get(p);
|
|
9733
9733
|
if (E) try {
|
|
9734
|
-
await
|
|
9734
|
+
await wa({ fileData: E, maxRetries: 3, uploadUrl: l }), this.attachmentFiles.delete(p);
|
|
9735
9735
|
} catch (h) {
|
|
9736
9736
|
const T = h instanceof Error ? h.message : String(h);
|
|
9737
9737
|
console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${T}`);
|
|
@@ -9740,11 +9740,11 @@ class Un {
|
|
|
9740
9740
|
await Promise.allSettled(i);
|
|
9741
9741
|
}
|
|
9742
9742
|
}
|
|
9743
|
-
function
|
|
9743
|
+
function Pa(e) {
|
|
9744
9744
|
return ["@stablyai/playwright-test/reporter", e];
|
|
9745
9745
|
}
|
|
9746
|
-
a(
|
|
9746
|
+
a(Pa, "stablyReporter");
|
|
9747
9747
|
|
|
9748
|
-
exports.
|
|
9748
|
+
exports.Pa = Pa;
|
|
9749
9749
|
exports.Un = Un;
|
|
9750
|
-
//# sourceMappingURL=index-
|
|
9750
|
+
//# sourceMappingURL=index-CfBVZ27r.cjs.map
|