@testsmith/api-spector 0.8.6 → 0.8.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/out/main/chunks/{perf-run-Ddxq_lFW.js → perf-run-Dcb-A4Ln.js} +3 -1
- package/out/main/flow.js +1 -1
- package/out/main/index.js +1 -1
- package/out/main/perf-worker.js +1 -1
- package/out/main/perf.js +2 -2
- package/out/main/register-handlers.js +5 -1
- package/out/main/runner.js +1 -1
- package/out/renderer/assets/{GraphQLEditor-BwaRI4Ba.js → GraphQLEditor-DqY91rWn.js} +1 -1
- package/out/renderer/assets/{SoapEditor-DafZPr0j.js → SoapEditor-DcpInN2A.js} +1 -1
- package/out/renderer/assets/{index-DTzdyIHp.js → index-CLKJD4rg.js} +5 -5
- package/out/renderer/index.html +1 -1
- package/package.json +1 -1
|
@@ -165,9 +165,11 @@ async function runPerfTest(schedule, iterate, onProgress, progressMs = 500) {
|
|
|
165
165
|
let peakVus = 0;
|
|
166
166
|
let dropped = 0;
|
|
167
167
|
let stopped = false;
|
|
168
|
+
let stoppedEarly = false;
|
|
168
169
|
const start = Date.now();
|
|
169
170
|
active = { stop: () => {
|
|
170
171
|
stopped = true;
|
|
172
|
+
stoppedEarly = true;
|
|
171
173
|
} };
|
|
172
174
|
const record = (s) => {
|
|
173
175
|
iterations += 1;
|
|
@@ -318,7 +320,7 @@ async function runPerfTest(schedule, iterate, onProgress, progressMs = 500) {
|
|
|
318
320
|
series,
|
|
319
321
|
peakVus,
|
|
320
322
|
droppedArrivals: dropped,
|
|
321
|
-
stopped,
|
|
323
|
+
stopped: stoppedEarly,
|
|
322
324
|
thresholds: [],
|
|
323
325
|
passed: true
|
|
324
326
|
};
|
package/out/main/flow.js
CHANGED
|
@@ -268,7 +268,7 @@ async function main() {
|
|
|
268
268
|
const envName = args.environment ?? args.env;
|
|
269
269
|
const env = environments.selectEnvironment(workspace, environments$1, envName);
|
|
270
270
|
const verbose = Boolean(args.verbose);
|
|
271
|
-
const version = `v${"0.8.
|
|
271
|
+
const version = `v${"0.8.7"}`;
|
|
272
272
|
console.log("");
|
|
273
273
|
console.log(cliCommon.color(" API Flow Runner" + (version ? ` ${version}` : ""), cliCommon.C.bold, cliCommon.C.white));
|
|
274
274
|
console.log(cliCommon.color(` Flow: ${flow.name}`, cliCommon.C.gray));
|
package/out/main/index.js
CHANGED
package/out/main/perf-worker.js
CHANGED
package/out/main/perf.js
CHANGED
|
@@ -5,7 +5,7 @@ const path = require("node:path");
|
|
|
5
5
|
const requestExec = require("./chunks/request-exec-BI4sXJop.js");
|
|
6
6
|
const environments = require("./chunks/environments-iM3SUM-4.js");
|
|
7
7
|
const flowEngine = require("./chunks/flow-engine-BxwjEy37.js");
|
|
8
|
-
const perfRun = require("./chunks/perf-run-
|
|
8
|
+
const perfRun = require("./chunks/perf-run-Dcb-A4Ln.js");
|
|
9
9
|
const perfReport = require("./chunks/perf-report-ChaO3K0w.js");
|
|
10
10
|
const cliCommon = require("./chunks/cli-common-GnihVSjU.js");
|
|
11
11
|
require("undici");
|
|
@@ -191,7 +191,7 @@ async function main() {
|
|
|
191
191
|
targetLabel = `flow: ${flow.name}`;
|
|
192
192
|
}
|
|
193
193
|
const load = perfRun.deriveLoad(plan);
|
|
194
|
-
const version = `v${"0.8.
|
|
194
|
+
const version = `v${"0.8.7"}`;
|
|
195
195
|
console.log("");
|
|
196
196
|
console.log(cliCommon.color(" API Performance" + (version ? ` ${version}` : ""), cliCommon.C.bold, cliCommon.C.white));
|
|
197
197
|
console.log(cliCommon.color(` Plan: ${plan.name}`, cliCommon.C.gray));
|
|
@@ -792,7 +792,11 @@ function registerRequestHandler(ipc) {
|
|
|
792
792
|
envVars: { ...envVars },
|
|
793
793
|
collectionVars: { ...collectionVars },
|
|
794
794
|
globals: { ...mergedGlobals },
|
|
795
|
-
|
|
795
|
+
// Seed the script's local scope with the already-resolved local vars
|
|
796
|
+
// (request-scoped variables + any data-row) so they survive the script
|
|
797
|
+
// run — otherwise updatedLocalVars below would overwrite them with {} and
|
|
798
|
+
// {{request-level vars}} would go un-interpolated at send time.
|
|
799
|
+
localVars: { ...localVars }
|
|
796
800
|
});
|
|
797
801
|
preScriptMeta = { error: result.error, consoleOutput: result.consoleOutput };
|
|
798
802
|
localVars = result.updatedLocalVars;
|
package/out/main/runner.js
CHANGED
|
@@ -551,7 +551,7 @@ async function main() {
|
|
|
551
551
|
} else if (!envName && workspace.settings?.defaultEnvironment && !env) {
|
|
552
552
|
console.warn(cliCommon.color(`Warning: default environment "${workspace.settings.defaultEnvironment}" not found. Running without environment.`, cliCommon.C.yellow));
|
|
553
553
|
}
|
|
554
|
-
const version = `v${"0.8.
|
|
554
|
+
const version = `v${"0.8.7"}`;
|
|
555
555
|
console.log("");
|
|
556
556
|
console.log(cliCommon.color(" API Test Runner" + (version ? ` ${version}` : ""), cliCommon.C.bold, cliCommon.C.white));
|
|
557
557
|
console.log(cliCommon.color(` Workspace: ${wsPath}`, cliCommon.C.gray));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as linter, E as EditorView, L as LanguageSupport, i as LRLanguage, s as styleTags, m as indentNodeProp, n as delimitedIndent, p as foldNodeProp, q as foldInside, S as StateField, u as LRParser, v as StateEffect, w as tags, a as reactExports, j as jsxRuntimeExports, e as ReactCodeMirror, o as oneDark, d as json } from "./codemirror-BKmwMUlV.js";
|
|
2
|
-
import { u as useT, a as useStore, b as useActiveEnvironment, i as isSubscriptionQuery } from "./index-
|
|
2
|
+
import { u as useT, a as useStore, b as useActiveEnvironment, i as isSubscriptionQuery } from "./index-CLKJD4rg.js";
|
|
3
3
|
import "./ajv-CJPwFjiP.js";
|
|
4
4
|
function devAssert(condition, message) {
|
|
5
5
|
const booleanCondition = Boolean(condition);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as reactExports, j as jsxRuntimeExports, e as ReactCodeMirror, o as oneDark, x as xml } from "./codemirror-BKmwMUlV.js";
|
|
2
|
-
import { u as useT, c as btnPrimaryCls, d as commentKeymap } from "./index-
|
|
2
|
+
import { u as useT, c as btnPrimaryCls, d as commentKeymap } from "./index-CLKJD4rg.js";
|
|
3
3
|
import "./ajv-CJPwFjiP.js";
|
|
4
4
|
const SOAP_11_CONTENT_TYPE = "text/xml; charset=utf-8";
|
|
5
5
|
const SOAP_12_CONTENT_TYPE = "application/soap+xml; charset=utf-8";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./GraphQLEditor-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./GraphQLEditor-DqY91rWn.js","./codemirror-BKmwMUlV.js","./ajv-CJPwFjiP.js","./SoapEditor-DcpInN2A.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { r as requireReact, g as getDefaultExportFromCjs, R as React, a as reactExports, b as autocompletion, h as hoverTooltip, j as jsxRuntimeExports, k as keymap, t as toggleComment, D as Decoration, E as EditorView, V as ViewPlugin, c as RangeSetBuilder, x as xml, d as json, e as ReactCodeMirror, o as oneDark, f as javascript } from "./codemirror-BKmwMUlV.js";
|
|
3
3
|
import { r as requireAjv } from "./ajv-CJPwFjiP.js";
|
|
4
4
|
var client = { exports: {} };
|
|
@@ -28649,8 +28649,8 @@ function jsonWithComments() {
|
|
|
28649
28649
|
function xmlWithComments() {
|
|
28650
28650
|
return [xml(), commentKeymap];
|
|
28651
28651
|
}
|
|
28652
|
-
const GraphQLEditor = reactExports.lazy(() => __vitePreload(() => import("./GraphQLEditor-
|
|
28653
|
-
const SoapEditor = reactExports.lazy(() => __vitePreload(() => import("./SoapEditor-
|
|
28652
|
+
const GraphQLEditor = reactExports.lazy(() => __vitePreload(() => import("./GraphQLEditor-DqY91rWn.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url).then((m) => ({ default: m.GraphQLEditor })));
|
|
28653
|
+
const SoapEditor = reactExports.lazy(() => __vitePreload(() => import("./SoapEditor-DcpInN2A.js"), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url).then((m) => ({ default: m.SoapEditor })));
|
|
28654
28654
|
function BodyTab({ request: request2, onChange }) {
|
|
28655
28655
|
const t = useT();
|
|
28656
28656
|
const editorFallback = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 text-xs text-surface-500", children: t("Loading editor…") });
|
|
@@ -45335,7 +45335,7 @@ function WelcomeScreen() {
|
|
|
45335
45335
|
)
|
|
45336
45336
|
] }),
|
|
45337
45337
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-surface-400 text-sm max-w-sm", children: t("Local-first API testing with Robot Framework & Playwright code generation. Secrets stay on your machine.") }),
|
|
45338
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[11px] mt-3", style: { color: "var(--text-muted)" }, children: t("version :version", { version: "0.8.
|
|
45338
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[11px] mt-3", style: { color: "var(--text-muted)" }, children: t("version :version", { version: "0.8.7" }) })
|
|
45339
45339
|
] }),
|
|
45340
45340
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-3 w-64", children: [
|
|
45341
45341
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -56854,7 +56854,7 @@ function App() {
|
|
|
56854
56854
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#6aa3c8" }, children: "Spector" }),
|
|
56855
56855
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "ml-2 text-[10px] font-normal opacity-50", children: [
|
|
56856
56856
|
"v",
|
|
56857
|
-
"0.8.
|
|
56857
|
+
"0.8.7"
|
|
56858
56858
|
] }),
|
|
56859
56859
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mx-2 opacity-30", children: "·" }),
|
|
56860
56860
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
package/out/renderer/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta charset="UTF-8" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>API Spector</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-CLKJD4rg.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="./assets/codemirror-BKmwMUlV.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/ajv-CJPwFjiP.js">
|
|
11
11
|
<link rel="stylesheet" crossorigin href="./assets/index-DH2Ag-Ov.css">
|