@redocly/replay 0.18.0-next.8 → 0.18.0-next.9
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/{replay-index-jgejN8vg.js → replay-index-DCEA3jne.js} +11 -11
- package/dist/{replay-index-x3eoUDpi.js → replay-index-DbkmBvb2.js} +391 -391
- package/dist/{replay-index-DrHSnGwf.js → replay-index-Dj0sSumI.js} +82 -80
- package/dist/{replay-index-CGFC2Q_n.js → replay-index-LEZH_IKS.js} +1 -1
- package/dist/{replay-index-DO5G0ziP.js → replay-index-N_eL-dHw.js} +7952 -7976
- package/dist/{replay-index-B74AHsKR.js → replay-index-rXYeAbfS.js} +1 -1
- package/dist/{replay-tauri-path-BZZUBEqn.js → replay-tauri-path-CPOjT7PX.js} +1 -1
- package/dist/{replay-tauri-path-DDN8E2bb.js → replay-tauri-path-CypZ5tQ3.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Gt, a as U, p as Y, c as _o, d as Ee, f as cr, g as Io, h as rr, k as Do, y as fr, l as X, m as Re, n as Zt, o as
|
|
1
|
+
import { b as Gt, a as U, p as Y, c as _o, d as Ee, f as cr, g as Io, h as rr, k as Do, y as fr, l as X, m as Re, n as Zt, o as Lo, q as ur, t as Yt, u as we, R as Ze, v as No, w as jo, C as V, x as Dt, z as Wo, A as qo, S as es, U as rs, B as J, D as Uo, E as zo, F as Bo, G as xo, H as Mo, I as Vo, J as Ko, K as Ho, L as Jo, M as Lt, N as Xo, O as Nt, P as Qo, Q as Go } from "./replay-index-N_eL-dHw.js";
|
|
2
2
|
async function Zo(r) {
|
|
3
3
|
const { descriptionPath: t, externalRefResolver: e, base: n } = r, a = await Gt({
|
|
4
4
|
base: n,
|
|
@@ -196,23 +196,23 @@ function pi(r, t) {
|
|
|
196
196
|
const e = [
|
|
197
197
|
{
|
|
198
198
|
pattern: /\$response\.body#\/([\w/]+)/g,
|
|
199
|
-
ctxFunction: (a, c) =>
|
|
199
|
+
ctxFunction: (a, c) => Ne(t.$response?.body, c, a)
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
pattern: /\$request\.body#\/([\w/]+)/g,
|
|
203
|
-
ctxFunction: (a, c) =>
|
|
203
|
+
ctxFunction: (a, c) => Ne(t.$request?.body, c, a)
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
pattern: /\$outputs\.([\w-]+)#\/([\w/]+)/g,
|
|
207
|
-
ctxFunction: (a, c, f) =>
|
|
207
|
+
ctxFunction: (a, c, f) => Ne(t.$outputs?.[c], f, a)
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
pattern: /\$workflows\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,
|
|
211
|
-
ctxFunction: (a, c, f, l) =>
|
|
211
|
+
ctxFunction: (a, c, f, l) => Ne(t.$workflows?.[c]?.outputs?.[f], l, a)
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
pattern: /\$steps\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/]+)/g,
|
|
215
|
-
ctxFunction: (a, c, f, l) =>
|
|
215
|
+
ctxFunction: (a, c, f, l) => Ne(t.$steps?.[c]?.outputs?.[f], l, a)
|
|
216
216
|
}
|
|
217
217
|
];
|
|
218
218
|
let n = r;
|
|
@@ -220,7 +220,7 @@ function pi(r, t) {
|
|
|
220
220
|
n = n.replaceAll(a, c);
|
|
221
221
|
return n;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Ne(r, t, e) {
|
|
224
224
|
if (r)
|
|
225
225
|
try {
|
|
226
226
|
const n = Ee.get(r, `/${t}`);
|
|
@@ -413,8 +413,8 @@ function Oi(r, t) {
|
|
|
413
413
|
const f = n.find((T) => {
|
|
414
414
|
if (["openapi", "arazzo"].includes(T.type)) {
|
|
415
415
|
if (a.includes("$sourceDescriptions.")) {
|
|
416
|
-
const [,
|
|
417
|
-
return T.name ===
|
|
416
|
+
const [, L] = a.split(".");
|
|
417
|
+
return T.name === L;
|
|
418
418
|
}
|
|
419
419
|
return "url" in T && T.url === a;
|
|
420
420
|
}
|
|
@@ -478,7 +478,7 @@ function Ii(r, t) {
|
|
|
478
478
|
function Di(r) {
|
|
479
479
|
return r == null ? !0 : r.constructor.name === "FormData" || r instanceof Blob && r.size > 0 ? !1 : typeof r == "object" ? Object.keys(r).length === 0 : typeof r == "string" || Array.isArray(r) ? r.length === 0 : !1;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Li(r) {
|
|
482
482
|
return !Do && process.env.NODE_ENV === "test" ? "<test>ms" : `${Math.ceil(performance.now() - r)}ms`;
|
|
483
483
|
}
|
|
484
484
|
function Vr(r) {
|
|
@@ -490,19 +490,19 @@ function Vr(r) {
|
|
|
490
490
|
for (const C of r) {
|
|
491
491
|
const j = cs(C.executedSteps);
|
|
492
492
|
let T = !1;
|
|
493
|
-
for (const
|
|
494
|
-
if (c++,
|
|
493
|
+
for (const L of j) {
|
|
494
|
+
if (c++, L.retriesLeft && L.retriesLeft !== 0)
|
|
495
495
|
continue;
|
|
496
496
|
a++;
|
|
497
497
|
let P = !1;
|
|
498
|
-
for (const
|
|
499
|
-
if (n++, !
|
|
500
|
-
switch (
|
|
498
|
+
for (const N of L.checks)
|
|
499
|
+
if (n++, !N.passed)
|
|
500
|
+
switch (N.severity) {
|
|
501
501
|
case "warn":
|
|
502
|
-
f++, d.add(C.workflowId), y.add(C.workflowId + ":" +
|
|
502
|
+
f++, d.add(C.workflowId), y.add(C.workflowId + ":" + L.stepId);
|
|
503
503
|
break;
|
|
504
504
|
case "off":
|
|
505
|
-
l++, k.add(C.workflowId + ":" +
|
|
505
|
+
l++, k.add(C.workflowId + ":" + L.stepId);
|
|
506
506
|
break;
|
|
507
507
|
default:
|
|
508
508
|
e++, P = !0;
|
|
@@ -539,12 +539,12 @@ function Vr(r) {
|
|
|
539
539
|
function cs(r) {
|
|
540
540
|
return r.flatMap((t) => "executedSteps" in t ? cs(t.executedSteps) : [t]);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ni({ startedAt: r, workflows: t, options: e }) {
|
|
543
543
|
const { logger: n } = e, a = Y.basename(e?.file || ""), c = ar(e?.workflow) || [], f = ar(e?.skip) || [];
|
|
544
544
|
let l = c && c.length ? t.filter(({ workflowId: g }) => c.includes(g)) : t;
|
|
545
545
|
l = f && f.length ? l.filter(({ workflowId: g }) => !f.includes(g)) : l;
|
|
546
|
-
const h = Vr(l), d =
|
|
547
|
-
n.printNewLine(), n.output(
|
|
546
|
+
const h = Vr(l), d = Li(r);
|
|
547
|
+
n.printNewLine(), n.output(Lo`
|
|
548
548
|
${fr(X(`Summary for ${Re(a)}`, 2))}
|
|
549
549
|
${X("", 2)}
|
|
550
550
|
${X(ji("Workflows:", h.workflows), 2)}
|
|
@@ -593,7 +593,7 @@ ${X(U("Failed tests info:"), 2)}
|
|
|
593
593
|
const n = fs(e.executedSteps);
|
|
594
594
|
if (n.some((c) => c.checks.some((f) => !f.passed) && (!c.retriesLeft || c.retriesLeft === 0))) {
|
|
595
595
|
t.output(`${Ze}
|
|
596
|
-
${X(we("Workflow name:"), 2)} ${
|
|
596
|
+
${X(we("Workflow name:"), 2)} ${No(e.workflowId)}${Ze}
|
|
597
597
|
`);
|
|
598
598
|
for (const c of n) {
|
|
599
599
|
const f = c.checks.filter((l) => !l.passed);
|
|
@@ -613,7 +613,7 @@ ${X(we("Workflow name:"), 2)} ${Lo(e.workflowId)}${Ze}
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Nr({ headerParams: r, path: t, method: e, host: n, body: a, statusCode: c, responseTime: f, responseSize: l }) {
|
|
617
617
|
const h = {
|
|
618
618
|
path: t,
|
|
619
619
|
method: e,
|
|
@@ -712,7 +712,7 @@ function xi({ username: r, password: t, nonce: e, realm: n, cnonce: a, algorithm
|
|
|
712
712
|
opaque: h,
|
|
713
713
|
uri: d,
|
|
714
714
|
method: g
|
|
715
|
-
}, C = Object.entries(y).filter(([
|
|
715
|
+
}, C = Object.entries(y).filter(([L, P]) => !P).map(([L]) => L);
|
|
716
716
|
if (C.length > 0)
|
|
717
717
|
throw new Error(`Missing required digest auth parameters: ${C.join(", ")}`);
|
|
718
718
|
const j = Mi({
|
|
@@ -783,7 +783,7 @@ function Hi(r) {
|
|
|
783
783
|
class Ji {
|
|
784
784
|
constructor(t) {
|
|
785
785
|
this.initVerboseLogs = ({ headerParams: e, host: n, path: a, method: c, body: f }) => {
|
|
786
|
-
this.verboseLogs =
|
|
786
|
+
this.verboseLogs = Nr({
|
|
787
787
|
headerParams: e,
|
|
788
788
|
host: n,
|
|
789
789
|
path: a,
|
|
@@ -793,12 +793,12 @@ class Ji {
|
|
|
793
793
|
}, this.getVerboseLogs = () => this.verboseLogs, this.updateVerboseLogs = (e) => {
|
|
794
794
|
if (!this.verboseLogs)
|
|
795
795
|
throw new Error("Verbose logs not initialized");
|
|
796
|
-
this.verboseLogs =
|
|
796
|
+
this.verboseLogs = Nr({
|
|
797
797
|
...this.verboseLogs,
|
|
798
798
|
...e
|
|
799
799
|
});
|
|
800
800
|
}, this.initVerboseResponseLogs = ({ headerParams: e, host: n, path: a, method: c, body: f, statusCode: l, responseTime: h, responseSize: d }) => {
|
|
801
|
-
this.verboseResponseLogs =
|
|
801
|
+
this.verboseResponseLogs = Nr({
|
|
802
802
|
headerParams: e,
|
|
803
803
|
host: n,
|
|
804
804
|
path: a,
|
|
@@ -808,7 +808,9 @@ class Ji {
|
|
|
808
808
|
responseTime: h,
|
|
809
809
|
responseSize: d
|
|
810
810
|
});
|
|
811
|
-
}, this.getVerboseResponseLogs = () => this.verboseResponseLogs, this.
|
|
811
|
+
}, this.getVerboseResponseLogs = () => this.verboseResponseLogs, this.clearVerboseResponseLogs = () => {
|
|
812
|
+
this.verboseResponseLogs = void 0;
|
|
813
|
+
}, this.fetchResult = async ({ ctx: e, step: n, requestData: a, workflowId: c }) => {
|
|
812
814
|
const { serverUrl: f, path: l, method: h, parameters: d, requestBody: g, openapiOperation: k } = a;
|
|
813
815
|
if (!f?.url)
|
|
814
816
|
throw e.options.logger.error(rr(" No server url provided ")), new Error("No server url provided");
|
|
@@ -829,7 +831,7 @@ class Ji {
|
|
|
829
831
|
break;
|
|
830
832
|
}
|
|
831
833
|
typeof g == "object" && !y["content-type"] && (y["content-type"] = "application/json"), Object.keys(T).length && (y.cookie = Object.entries(T).map(([R, Z]) => `${R}=${Z}`).join("; "));
|
|
832
|
-
const P = `${qt(l, j) || ""}${C.toString() ? "?" + C.toString() : ""}`,
|
|
834
|
+
const P = `${qt(l, j) || ""}${C.toString() ? "?" + C.toString() : ""}`, N = qt(f.url, j) || "", D = `${Hi(N)}${P}`;
|
|
833
835
|
D.startsWith("/") && e.options.logger.error(rr(` Wrong url: ${Zt(D)} `) + ` Did you forget to provide a correct "serverUrl"?
|
|
834
836
|
`);
|
|
835
837
|
const b = y["content-type"] || "";
|
|
@@ -883,7 +885,7 @@ class Ji {
|
|
|
883
885
|
});
|
|
884
886
|
this.initVerboseLogs({
|
|
885
887
|
headerParams: K,
|
|
886
|
-
host:
|
|
888
|
+
host: N,
|
|
887
889
|
method: h.toUpperCase(),
|
|
888
890
|
path: W || "",
|
|
889
891
|
body: _
|
|
@@ -1430,8 +1432,8 @@ Oe.buildMessage = function(r, t) {
|
|
|
1430
1432
|
};
|
|
1431
1433
|
function aa(r, t) {
|
|
1432
1434
|
t = t !== void 0 ? t : {};
|
|
1433
|
-
var e = {}, n = t.grammarSource, a = { jsonpath_query: Rr }, c = Rr, f = "$", l = ".", h = "..", d = "[", g = ",", k = "]", y = "*", C = ":", j = "?", T = '"',
|
|
1434
|
-
`], "\r", " "], !1, !1), be = F(".", !1), Ds = F("..", !1), Cr = F("[", !1), He = F(",", !1), br = F("]", !1),
|
|
1435
|
+
var e = {}, n = t.grammarSource, a = { jsonpath_query: Rr }, c = Rr, f = "$", l = ".", h = "..", d = "[", g = ",", k = "]", y = "*", C = ":", j = "?", T = '"', L = "'", P = "0", N = "-", D = "||", b = "\\", A = "u", K = "&&", _ = "d", W = "(", z = ")", x = "!", I = "==", B = "!=", H = "<=", ee = ">=", he = "-0", ne = "true", re = "false", ue = "null", pr = "@", dr = "e", Me = /^[\t-\n\r ]/, Ve = /^[A-Z_a-z\x80-\uD7FF\uE000-\uFFFF]/, Ke = /^[\uD800-\uDBFF]/, ie = /^[\uDC00-\uDFFF]/, Fe = /^[0-9]/, R = /^[1-9]/, Z = /^[ -!#-&(-[\]-\uD7FF\uE000-\uFFFF]/, le = /^[\/\\bfnrt]/, _e = /^[A-CE-F]/i, hr = /^[0-7]/, gr = /^[8-9]/, mr = /^[A-B]/i, $r = /^[C-F]/i, yr = /^[A-F]/i, wr = /^[<>]/, vr = /^[0-9_a-z]/, kr = /^[+\-]/, Er = /^[a-z]/, Sr = F("$", !1), Ie = M([[" ", `
|
|
1436
|
+
`], "\r", " "], !1, !1), be = F(".", !1), Ds = F("..", !1), Cr = F("[", !1), He = F(",", !1), br = F("]", !1), Ls = F("*", !1), Ns = M([["A", "Z"], "_", ["a", "z"], ["", ""], ["", ""]], !1, !1), Jr = M([["\uD800", "\uDBFF"]], !1, !1), Xr = M([["\uDC00", "\uDFFF"]], !1, !1), Qr = F(":", !1), js = F("?", !1), Ws = M([["0", "9"]], !1, !1), Je = F('"', !1), Xe = F("'", !1), qs = F("0", !1), Us = F("-", !1), zs = M([["1", "9"]], !1, !1), Gr = F("||", !1), Bs = M([[" ", "!"], ["#", "&"], ["(", "["], ["]", ""], ["", ""]], !1, !1), Zr = F("\\", !1), xs = M(["/", "\\", "b", "f", "n", "r", "t"], !1, !1), Yr = F("u", !1), et = F("&&", !1), Ms = M([["A", "C"], ["E", "F"]], !1, !0), Ar = F("D", !0), Vs = M([["0", "7"]], !1, !1), Ks = M([["8", "9"]], !1, !1), Hs = M([["A", "B"]], !1, !0), Js = M([["C", "F"]], !1, !0), rt = F("(", !1), tt = F(")", !1), Xs = M([["A", "F"]], !1, !0), Qs = F("!", !1), Gs = F("==", !1), Zs = F("!=", !1), Ys = F("<=", !1), en = F(">=", !1), rn = M(["<", ">"], !1, !1), tn = F("-0", !1), sn = F("true", !1), nn = F("false", !1), on = F("null", !1), an = F("@", !1), cn = M([["0", "9"], "_", ["a", "z"]], !1, !1), fn = F("e", !0), un = M(["+", "-"], !1, !1), ln = M([["a", "z"]], !1, !1), pn = function(s) {
|
|
1435
1437
|
return {
|
|
1436
1438
|
type: "JsonPathQuery",
|
|
1437
1439
|
segments: s
|
|
@@ -1540,7 +1542,7 @@ function aa(r, t) {
|
|
|
1540
1542
|
return o;
|
|
1541
1543
|
}, Dn = function(s, o) {
|
|
1542
1544
|
return [s, ...o];
|
|
1543
|
-
},
|
|
1545
|
+
}, Ln = function(s) {
|
|
1544
1546
|
return s.length === 1 ? s[0] : {
|
|
1545
1547
|
type: "LogicalAndExpr",
|
|
1546
1548
|
left: s[0],
|
|
@@ -1550,7 +1552,7 @@ function aa(r, t) {
|
|
|
1550
1552
|
right: u
|
|
1551
1553
|
}), s[1])
|
|
1552
1554
|
};
|
|
1553
|
-
},
|
|
1555
|
+
}, Nn = function() {
|
|
1554
1556
|
return String.fromCharCode(Number.parseInt(so(), 16));
|
|
1555
1557
|
}, jn = function(s, o) {
|
|
1556
1558
|
return String.fromCharCode(Number.parseInt(s, 16)) + String.fromCharCode(Number.parseInt(o, 16));
|
|
@@ -1728,7 +1730,7 @@ function aa(r, t) {
|
|
|
1728
1730
|
}
|
|
1729
1731
|
function Or() {
|
|
1730
1732
|
var s, o;
|
|
1731
|
-
return s = i, r.charCodeAt(i) === 42 ? (o = y, i++) : (o = e, v === 0 && w(
|
|
1733
|
+
return s = i, r.charCodeAt(i) === 42 ? (o = y, i++) : (o = e, v === 0 && w(Ls)), o !== e && (E = s, o = yn()), s = o, s;
|
|
1732
1734
|
}
|
|
1733
1735
|
function Tr() {
|
|
1734
1736
|
var s, o, u, p, m, $;
|
|
@@ -1746,7 +1748,7 @@ function aa(r, t) {
|
|
|
1746
1748
|
}
|
|
1747
1749
|
function mt() {
|
|
1748
1750
|
var s, o, u;
|
|
1749
|
-
return s = r.charAt(i), Ve.test(s) ? i++ : (s = e, v === 0 && w(
|
|
1751
|
+
return s = r.charAt(i), Ve.test(s) ? i++ : (s = e, v === 0 && w(Ns)), s === e && (s = i, o = r.charAt(i), Ke.test(o) ? i++ : (o = e, v === 0 && w(Jr)), o !== e ? (u = r.charAt(i), ie.test(u) ? i++ : (u = e, v === 0 && w(Xr)), u !== e ? (o = [o, u], s = o) : (i = s, s = e)) : (i = s, s = e)), s;
|
|
1750
1752
|
}
|
|
1751
1753
|
function $t() {
|
|
1752
1754
|
var s;
|
|
@@ -1758,11 +1760,11 @@ function aa(r, t) {
|
|
|
1758
1760
|
}
|
|
1759
1761
|
function co() {
|
|
1760
1762
|
var s, o, u, p, m, $, S, q, G;
|
|
1761
|
-
return s = i, o = i, u = i, p = i, m =
|
|
1763
|
+
return s = i, o = i, u = i, p = i, m = Le(), m !== e ? ($ = O(), m = [m, $], p = m) : (i = p, p = e), p === e && (p = null), u = r.substring(u, i), r.charCodeAt(i) === 58 ? (p = C, i++) : (p = e, v === 0 && w(Qr)), p !== e ? (m = O(), $ = i, S = i, q = Le(), q !== e ? (G = O(), q = [q, G], S = q) : (i = S, S = e), S === e && (S = null), $ = r.substring($, i), S = i, r.charCodeAt(i) === 58 ? (q = C, i++) : (q = e, v === 0 && w(Qr)), q !== e ? (G = i, O(), Le(), G = r.substring(G, i), E = S, S = kn(u, $, G)) : (i = S, S = e), S === e && (S = null), E = o, o = En(u, $, S)) : (i = o, o = e), o !== e && (E = s, o = Sn(o)), s = o, s;
|
|
1762
1764
|
}
|
|
1763
1765
|
function wt() {
|
|
1764
1766
|
var s, o, u;
|
|
1765
|
-
return s = i, o = i, u =
|
|
1767
|
+
return s = i, o = i, u = Le(), u !== e ? o = r.substring(o, i) : o = u, o !== e && (E = s, o = Cn(o)), s = o, s;
|
|
1766
1768
|
}
|
|
1767
1769
|
function fo() {
|
|
1768
1770
|
var s, o, u;
|
|
@@ -1781,18 +1783,18 @@ function aa(r, t) {
|
|
|
1781
1783
|
} else
|
|
1782
1784
|
i = o, o = e;
|
|
1783
1785
|
if (o === e)
|
|
1784
|
-
if (o = i, r.charCodeAt(i) === 39 ? (u =
|
|
1786
|
+
if (o = i, r.charCodeAt(i) === 39 ? (u = L, i++) : (u = e, v === 0 && w(Xe)), u !== e) {
|
|
1785
1787
|
for (p = [], m = Et(); m !== e; )
|
|
1786
1788
|
p.push(m), m = Et();
|
|
1787
|
-
r.charCodeAt(i) === 39 ? (m =
|
|
1789
|
+
r.charCodeAt(i) === 39 ? (m = L, i++) : (m = e, v === 0 && w(Xe)), m !== e ? (E = o, o = Rn(p)) : (i = o, o = e);
|
|
1788
1790
|
} else
|
|
1789
1791
|
i = o, o = e;
|
|
1790
1792
|
return o !== e && (E = s, o = On(o)), s = o, s;
|
|
1791
1793
|
}
|
|
1792
|
-
function
|
|
1794
|
+
function Le() {
|
|
1793
1795
|
var s, o, u, p, m;
|
|
1794
1796
|
if (r.charCodeAt(i) === 48 ? (s = P, i++) : (s = e, v === 0 && w(qs)), s === e)
|
|
1795
|
-
if (s = i, r.charCodeAt(i) === 45 ? (o =
|
|
1797
|
+
if (s = i, r.charCodeAt(i) === 45 ? (o = N, i++) : (o = e, v === 0 && w(Us)), o === e && (o = null), u = uo(), u !== e) {
|
|
1796
1798
|
for (p = [], m = ae(); m !== e; )
|
|
1797
1799
|
p.push(m), m = ae();
|
|
1798
1800
|
o = [o, u, p], s = o;
|
|
@@ -1802,11 +1804,11 @@ function aa(r, t) {
|
|
|
1802
1804
|
}
|
|
1803
1805
|
function kt() {
|
|
1804
1806
|
var s, o, u;
|
|
1805
|
-
return s = i, o = St(), o !== e ? s = r.substring(s, i) : s = o, s === e && (r.charCodeAt(i) === 39 ? (s =
|
|
1807
|
+
return s = i, o = St(), o !== e ? s = r.substring(s, i) : s = o, s === e && (r.charCodeAt(i) === 39 ? (s = L, i++) : (s = e, v === 0 && w(Xe)), s === e && (s = i, o = Ge(), o !== e ? (r.charCodeAt(i) === 34 ? (u = T, i++) : (u = e, v === 0 && w(Je)), u !== e ? (E = s, s = Tn()) : (i = s, s = e)) : (i = s, s = e), s === e && (s = i, o = Ge(), o !== e ? (u = Ct(), u !== e ? (E = s, s = Pn(u)) : (i = s, s = e)) : (i = s, s = e)))), s;
|
|
1806
1808
|
}
|
|
1807
1809
|
function Et() {
|
|
1808
1810
|
var s, o, u;
|
|
1809
|
-
return s = i, o = St(), o !== e ? s = r.substring(s, i) : s = o, s === e && (r.charCodeAt(i) === 34 ? (s = T, i++) : (s = e, v === 0 && w(Je)), s === e && (s = i, o = Ge(), o !== e ? (r.charCodeAt(i) === 39 ? (u =
|
|
1811
|
+
return s = i, o = St(), o !== e ? s = r.substring(s, i) : s = o, s === e && (r.charCodeAt(i) === 34 ? (s = T, i++) : (s = e, v === 0 && w(Je)), s === e && (s = i, o = Ge(), o !== e ? (r.charCodeAt(i) === 39 ? (u = L, i++) : (u = e, v === 0 && w(Xe)), u !== e ? (E = s, s = Fn()) : (i = s, s = e)) : (i = s, s = e), s === e && (s = i, o = Ge(), o !== e ? (u = Ct(), u !== e ? (E = s, s = _n(u)) : (i = s, s = e)) : (i = s, s = e)))), s;
|
|
1810
1812
|
}
|
|
1811
1813
|
function uo() {
|
|
1812
1814
|
var s;
|
|
@@ -1842,11 +1844,11 @@ function aa(r, t) {
|
|
|
1842
1844
|
E = o, o = Dn(u, p);
|
|
1843
1845
|
} else
|
|
1844
1846
|
i = o, o = e;
|
|
1845
|
-
return o !== e && (E = s, o =
|
|
1847
|
+
return o !== e && (E = s, o = Ln(o)), s = o, s;
|
|
1846
1848
|
}
|
|
1847
1849
|
function lo() {
|
|
1848
1850
|
var s, o, u, p, m, $, S;
|
|
1849
|
-
return s = i, o = i, u = po(), u !== e && (E = o, u =
|
|
1851
|
+
return s = i, o = i, u = po(), u !== e && (E = o, u = Nn()), o = u, o === e && (o = i, u = i, p = ho(), p !== e ? u = r.substring(u, i) : u = p, u !== e ? (r.charCodeAt(i) === 92 ? (p = b, i++) : (p = e, v === 0 && w(Zr)), p !== e ? (r.charCodeAt(i) === 117 ? (m = A, i++) : (m = e, v === 0 && w(Yr)), m !== e ? ($ = i, S = go(), S !== e ? $ = r.substring($, i) : $ = S, $ !== e ? (E = o, o = jn(u, $)) : (i = o, o = e)) : (i = o, o = e)) : (i = o, o = e)) : (i = o, o = e)), o !== e && (E = s, o = Wn(o)), s = o, s;
|
|
1850
1852
|
}
|
|
1851
1853
|
function Ir() {
|
|
1852
1854
|
var s;
|
|
@@ -1934,9 +1936,9 @@ function aa(r, t) {
|
|
|
1934
1936
|
var s, o, u, p, m, $, S, q, G;
|
|
1935
1937
|
if (s = i, o = Eo(), o !== e)
|
|
1936
1938
|
if (r.charCodeAt(i) === 40 ? (u = W, i++) : (u = e, v === 0 && w(rt)), u !== e) {
|
|
1937
|
-
if (O(), p = i, m =
|
|
1938
|
-
for ($ = [], S = i, O(), r.charCodeAt(i) === 44 ? (q = g, i++) : (q = e, v === 0 && w(He)), q !== e ? (O(), G =
|
|
1939
|
-
$.push(S), S = i, O(), r.charCodeAt(i) === 44 ? (q = g, i++) : (q = e, v === 0 && w(He)), q !== e ? (O(), G =
|
|
1939
|
+
if (O(), p = i, m = Lr(), m !== e) {
|
|
1940
|
+
for ($ = [], S = i, O(), r.charCodeAt(i) === 44 ? (q = g, i++) : (q = e, v === 0 && w(He)), q !== e ? (O(), G = Lr(), G !== e ? (E = S, S = at(o, m, G)) : (i = S, S = e)) : (i = S, S = e); S !== e; )
|
|
1941
|
+
$.push(S), S = i, O(), r.charCodeAt(i) === 44 ? (q = g, i++) : (q = e, v === 0 && w(He)), q !== e ? (O(), G = Lr(), G !== e ? (E = S, S = at(o, m, G)) : (i = S, S = e)) : (i = S, S = e);
|
|
1940
1942
|
E = p, p = xn(o, m, $);
|
|
1941
1943
|
} else
|
|
1942
1944
|
i = p, p = e;
|
|
@@ -1969,13 +1971,13 @@ function aa(r, t) {
|
|
|
1969
1971
|
i = o, o = e;
|
|
1970
1972
|
return o !== e ? s = r.substring(s, i) : s = o, s;
|
|
1971
1973
|
}
|
|
1972
|
-
function
|
|
1974
|
+
function Lr() {
|
|
1973
1975
|
var s;
|
|
1974
1976
|
return s = Ot(), s === e && (s = Rt(), s === e && (s = Dr(), s === e && (s = Fr()))), s;
|
|
1975
1977
|
}
|
|
1976
1978
|
function So() {
|
|
1977
1979
|
var s, o, u, p, m, $;
|
|
1978
|
-
return s = i, o = i, u = i, p =
|
|
1980
|
+
return s = i, o = i, u = i, p = Le(), p === e && (r.substr(i, 2) === he ? (p = he, i += 2) : (p = e, v === 0 && w(tn))), p !== e ? (m = To(), m === e && (m = null), $ = Po(), $ === e && ($ = null), p = [p, m, $], u = p) : (i = u, u = e), u !== e ? o = r.substring(o, i) : o = u, o !== e && (E = s, o = Hn(o)), s = o, s;
|
|
1979
1981
|
}
|
|
1980
1982
|
function Co() {
|
|
1981
1983
|
var s, o;
|
|
@@ -2673,7 +2675,7 @@ function _s(r, { root: t, path: e, value: n, index: a }) {
|
|
|
2673
2675
|
index: a + 1
|
|
2674
2676
|
});
|
|
2675
2677
|
}
|
|
2676
|
-
function
|
|
2678
|
+
function La(r, t, e) {
|
|
2677
2679
|
for (const n of e.selectors)
|
|
2678
2680
|
switch (n.type) {
|
|
2679
2681
|
case "NameSelector":
|
|
@@ -2690,14 +2692,14 @@ function Na(r, t, e) {
|
|
|
2690
2692
|
_s(r, t);
|
|
2691
2693
|
break;
|
|
2692
2694
|
case "FilterSelector": {
|
|
2693
|
-
tr(t) ?
|
|
2695
|
+
tr(t) ? Na(r, t, n) : nr(t) && ja(r, t, n);
|
|
2694
2696
|
break;
|
|
2695
2697
|
}
|
|
2696
2698
|
default:
|
|
2697
2699
|
Ce(n);
|
|
2698
2700
|
}
|
|
2699
2701
|
}
|
|
2700
|
-
function
|
|
2702
|
+
function Na(r, { root: t, path: e, value: n, index: a }, c) {
|
|
2701
2703
|
for (let f = 0; f < n.length; f++)
|
|
2702
2704
|
Ts(r, {
|
|
2703
2705
|
root: t,
|
|
@@ -2726,7 +2728,7 @@ function Wa(r, { root: t, path: e, value: n, index: a }, c) {
|
|
|
2726
2728
|
function qa(r, t, e) {
|
|
2727
2729
|
switch (e.type) {
|
|
2728
2730
|
case "BracketedSelection":
|
|
2729
|
-
return
|
|
2731
|
+
return La(r, t, e);
|
|
2730
2732
|
case "WildcardSelector":
|
|
2731
2733
|
return _s(r, t);
|
|
2732
2734
|
case "MemberNameShorthand":
|
|
@@ -2998,9 +3000,9 @@ async function Ha({ ctx: r, workflowId: t, step: e, requestData: n }) {
|
|
|
2998
3000
|
}), a.statusCodeCheck = !1, a) : (e.checks.push({
|
|
2999
3001
|
name: V.NETWORK_ERROR,
|
|
3000
3002
|
passed: !1,
|
|
3001
|
-
message: h.message,
|
|
3003
|
+
message: h.cause?.code ? h.message + ` (cause: ${h.cause.code})` : h.message,
|
|
3002
3004
|
severity: r.severity.NETWORK_ERROR
|
|
3003
|
-
}), a.networkCheck = !1, a);
|
|
3005
|
+
}), a.networkCheck = !1, r.apiClient.clearVerboseResponseLogs(), a);
|
|
3004
3006
|
}
|
|
3005
3007
|
const c = r.$workflows[t].steps[e.stepId].request;
|
|
3006
3008
|
if (e.request = c, e.verboseLog = r.apiClient.getVerboseResponseLogs(), e.successCriteria) {
|
|
@@ -3175,12 +3177,12 @@ function nc({ ctx: r, runtimeContext: t, step: e, operation: n, workflowLevelXSe
|
|
|
3175
3177
|
if (!g)
|
|
3176
3178
|
continue;
|
|
3177
3179
|
const k = Object.fromEntries(Object.entries(d?.values ?? {}).map(([j, T]) => {
|
|
3178
|
-
const
|
|
3180
|
+
const L = oe({
|
|
3179
3181
|
payload: T,
|
|
3180
3182
|
context: t,
|
|
3181
3183
|
logger: r.options.logger
|
|
3182
3184
|
});
|
|
3183
|
-
return d.values && (d.values[j] =
|
|
3185
|
+
return d.values && (d.values[j] = L), [j, L];
|
|
3184
3186
|
})), y = sc({ scheme: g, values: k }), C = Qa(y, r);
|
|
3185
3187
|
C && h.push(C);
|
|
3186
3188
|
}
|
|
@@ -3212,8 +3214,8 @@ async function oc(r, t, e) {
|
|
|
3212
3214
|
payload: j,
|
|
3213
3215
|
// encoding: stepRequestBodyEncoding,
|
|
3214
3216
|
contentType: T,
|
|
3215
|
-
replacements:
|
|
3216
|
-
} = await ui(t.requestBody, r), P = j || C?.requestBody,
|
|
3217
|
+
replacements: L
|
|
3218
|
+
} = await ui(t.requestBody, r), P = j || C?.requestBody, N = T || C?.contentType, D = Xt(
|
|
3217
3219
|
// order is important here, the last one wins
|
|
3218
3220
|
typeof P == "object" ? [{ in: "header", name: "content-type", value: "application/json" }] : [],
|
|
3219
3221
|
y?.parameters || [],
|
|
@@ -3263,16 +3265,16 @@ async function oc(r, t, e) {
|
|
|
3263
3265
|
const z = oe({
|
|
3264
3266
|
payload: P,
|
|
3265
3267
|
context: A,
|
|
3266
|
-
contentType:
|
|
3268
|
+
contentType: N,
|
|
3267
3269
|
logger: r.options.logger
|
|
3268
3270
|
});
|
|
3269
|
-
if (
|
|
3271
|
+
if (L && typeof z == "object" && ki({
|
|
3270
3272
|
payload: z,
|
|
3271
|
-
replacements:
|
|
3273
|
+
replacements: L,
|
|
3272
3274
|
expressionContext: A,
|
|
3273
3275
|
logger: r.options.logger
|
|
3274
|
-
}),
|
|
3275
|
-
const x = Fi(
|
|
3276
|
+
}), N && d?.requestBody) {
|
|
3277
|
+
const x = Fi(N, d);
|
|
3276
3278
|
typeof P == "object" && Be(r, x, P);
|
|
3277
3279
|
}
|
|
3278
3280
|
return r.$workflows[e].steps[n].request = {
|
|
@@ -3452,11 +3454,11 @@ async function Br({ step: r, ctx: t, workflowId: e, retriesLeft: n, executedStep
|
|
|
3452
3454
|
};
|
|
3453
3455
|
r.checks.push(A);
|
|
3454
3456
|
}
|
|
3455
|
-
const
|
|
3456
|
-
if (
|
|
3457
|
-
testNameToDisplay: `${T?.method.toUpperCase()} ${
|
|
3457
|
+
const L = t.options.verbose ? t.apiClient.getVerboseLogs() : void 0, P = t.options.verbose ? t.apiClient.getVerboseResponseLogs() : void 0, N = T?.path || T?.serverUrl?.url;
|
|
3458
|
+
if (N ? Jo({
|
|
3459
|
+
testNameToDisplay: `${T?.method.toUpperCase()} ${Lt(N)}${r.stepId ? ` ${Re("- step")} ${Lt(ur(r.stepId))}` : ""}`,
|
|
3458
3460
|
checks: r.checks,
|
|
3459
|
-
verboseLogs:
|
|
3461
|
+
verboseLogs: L,
|
|
3460
3462
|
verboseResponseLogs: P,
|
|
3461
3463
|
logger: t.options.logger
|
|
3462
3464
|
}) : Xo(r, t.options.logger), !j) {
|
|
@@ -3484,7 +3486,7 @@ async function Br({ step: r, ctx: t, workflowId: e, retriesLeft: n, executedStep
|
|
|
3484
3486
|
const { retryAfter: ee, retryLimit: he = 0 } = _;
|
|
3485
3487
|
if (n = n ?? he, r.retriesLeft = n, n === 0)
|
|
3486
3488
|
return { retriesLeft: 0, shouldEnd: !1 };
|
|
3487
|
-
if (ee && await Ja(ee), (I || H) &&
|
|
3489
|
+
if (ee && await Ja(ee), (I || H) && Nt({
|
|
3488
3490
|
stepId: f,
|
|
3489
3491
|
actionName: _.name,
|
|
3490
3492
|
kind: A,
|
|
@@ -3527,7 +3529,7 @@ async function Br({ step: r, ctx: t, workflowId: e, retriesLeft: n, executedStep
|
|
|
3527
3529
|
if (W === "goto") {
|
|
3528
3530
|
if (!I && !H)
|
|
3529
3531
|
throw new Error("Either workflowId or stepId must be provided in goto action");
|
|
3530
|
-
(I || H) &&
|
|
3532
|
+
(I || H) && Nt({
|
|
3531
3533
|
stepId: f,
|
|
3532
3534
|
actionName: _.name,
|
|
3533
3535
|
kind: A,
|
|
@@ -3635,16 +3637,16 @@ async function Ue({ workflowInput: r, ctx: t, fromStepId: e, skipLineSeparator:
|
|
|
3635
3637
|
executedStepsCount: f
|
|
3636
3638
|
}))?.shouldEnd)
|
|
3637
3639
|
break;
|
|
3638
|
-
} catch (
|
|
3640
|
+
} catch (N) {
|
|
3639
3641
|
const D = {
|
|
3640
3642
|
name: V.UNEXPECTED_ERROR,
|
|
3641
|
-
message:
|
|
3643
|
+
message: N.message,
|
|
3642
3644
|
passed: !1,
|
|
3643
3645
|
severity: t.severity.UNEXPECTED_ERROR
|
|
3644
3646
|
};
|
|
3645
3647
|
P.checks.push(D), t.executedSteps.push(P);
|
|
3646
3648
|
}
|
|
3647
|
-
const T = g.steps.some((P) => P.checks?.some((
|
|
3649
|
+
const T = g.steps.some((P) => P.checks?.some((N) => !N.passed && N.name == V.GLOBAL_TIMEOUT_ERROR));
|
|
3648
3650
|
if (g.outputs && y && !T) {
|
|
3649
3651
|
t.$outputs || (t.$outputs = {}), t.$outputs[y] || (t.$outputs[y] = {});
|
|
3650
3652
|
const P = lr({
|
|
@@ -3656,10 +3658,10 @@ async function Ue({ workflowInput: r, ctx: t, fromStepId: e, skipLineSeparator:
|
|
|
3656
3658
|
}
|
|
3657
3659
|
},
|
|
3658
3660
|
workflowId: y
|
|
3659
|
-
}),
|
|
3661
|
+
}), N = {};
|
|
3660
3662
|
for (const D of Object.keys(g.outputs))
|
|
3661
3663
|
try {
|
|
3662
|
-
|
|
3664
|
+
N[D] = oe({
|
|
3663
3665
|
payload: g.outputs[D],
|
|
3664
3666
|
context: P,
|
|
3665
3667
|
logger: t.options.logger
|
|
@@ -3667,17 +3669,17 @@ async function Ue({ workflowInput: r, ctx: t, fromStepId: e, skipLineSeparator:
|
|
|
3667
3669
|
} catch (b) {
|
|
3668
3670
|
throw new Error(`Failed to resolve output "${D}" in workflow "${y}": ${b.message}`);
|
|
3669
3671
|
}
|
|
3670
|
-
t.$outputs[y] =
|
|
3672
|
+
t.$outputs[y] = N, t.$workflows[y].outputs = N;
|
|
3671
3673
|
}
|
|
3672
3674
|
g.time = Math.ceil(performance.now() - h), l.printNewLine();
|
|
3673
|
-
const
|
|
3675
|
+
const L = performance.now();
|
|
3674
3676
|
return {
|
|
3675
3677
|
type: "workflow",
|
|
3676
3678
|
invocationContext: c,
|
|
3677
3679
|
workflowId: y,
|
|
3678
3680
|
stepId: a,
|
|
3679
3681
|
startTime: h,
|
|
3680
|
-
endTime:
|
|
3682
|
+
endTime: L,
|
|
3681
3683
|
totalTimeMs: pc(t.executedSteps),
|
|
3682
3684
|
executedSteps: t.executedSteps,
|
|
3683
3685
|
ctx: t,
|
|
@@ -3752,7 +3754,7 @@ async function gc(r) {
|
|
|
3752
3754
|
}
|
|
3753
3755
|
async function dc({ options: r, startedAt: t, executedStepsCount: e, collectSpecData: n }) {
|
|
3754
3756
|
const a = await ac({ options: r, collectSpecData: n, executedStepsCount: e }), { executedWorkflows: c, ctx: f } = a, l = Vr(c), h = l.workflows.failed > 0, d = l.workflows.warnings > 0, g = c.some((k) => k.globalTimeoutError);
|
|
3755
|
-
return (l.steps.failed > 0 || l.steps.warnings > 0 || l.steps.skipped > 0) && qi(c, r.logger),
|
|
3757
|
+
return (l.steps.failed > 0 || l.steps.warnings > 0 || l.steps.skipped > 0) && qi(c, r.logger), Ni({ startedAt: t, workflows: c, options: r }), {
|
|
3756
3758
|
hasProblems: h,
|
|
3757
3759
|
hasWarnings: d,
|
|
3758
3760
|
file: r.file,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./replay-index-DbkmBvb2.js");async function n(e={}){return typeof e=="object"&&Object.freeze(e),await t.invoke("plugin:dialog|open",{options:e})}exports.open=n;
|