@testsmith/api-spector 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/main/flow.js +1 -1
- package/out/main/index.js +12 -3
- package/out/main/perf.js +1 -1
- package/out/main/runner.js +1 -1
- package/out/renderer/assets/{GraphQLEditor-DG84rEn7.js → GraphQLEditor-DRHpuBUa.js} +1 -1
- package/out/renderer/assets/{SoapEditor-eFNU1uxt.js → SoapEditor-fOGCq_ap.js} +1 -1
- package/out/renderer/assets/{index-CpSTmcc1.js → index-B_7rAo5x.js} +5 -5
- package/out/renderer/index.html +1 -1
- package/package.json +1 -1
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.1"}`;
|
|
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
|
@@ -1130,7 +1130,12 @@ function parseParams$1(urlObj) {
|
|
|
1130
1130
|
function parseUrl(urlObj) {
|
|
1131
1131
|
if (!urlObj) return "";
|
|
1132
1132
|
if (typeof urlObj === "string") return urlObj;
|
|
1133
|
-
|
|
1133
|
+
const raw = urlObj.raw ?? "";
|
|
1134
|
+
if (Array.isArray(urlObj.query) && urlObj.query.length) {
|
|
1135
|
+
const q = raw.indexOf("?");
|
|
1136
|
+
if (q !== -1) return raw.slice(0, q);
|
|
1137
|
+
}
|
|
1138
|
+
return raw;
|
|
1134
1139
|
}
|
|
1135
1140
|
function parseBody$1(body) {
|
|
1136
1141
|
if (!body) return { mode: "none" };
|
|
@@ -1842,7 +1847,7 @@ function parseBruFile(content, fileName) {
|
|
|
1842
1847
|
break;
|
|
1843
1848
|
}
|
|
1844
1849
|
}
|
|
1845
|
-
|
|
1850
|
+
let url = methodAttrs["url"] ?? "";
|
|
1846
1851
|
const bodyMode = methodAttrs["body"] ?? "none";
|
|
1847
1852
|
const authMode = methodAttrs["auth"] ?? "none";
|
|
1848
1853
|
const headers = Object.entries(parseKv(extractBlock(content, "headers"))).map(([k, v]) => ({
|
|
@@ -1855,6 +1860,10 @@ function parseBruFile(content, fileName) {
|
|
|
1855
1860
|
value: v,
|
|
1856
1861
|
enabled: true
|
|
1857
1862
|
}));
|
|
1863
|
+
if (params.length) {
|
|
1864
|
+
const q = url.indexOf("?");
|
|
1865
|
+
if (q !== -1) url = url.slice(0, q);
|
|
1866
|
+
}
|
|
1858
1867
|
let body = { mode: "none" };
|
|
1859
1868
|
if (bodyMode === "json") {
|
|
1860
1869
|
const jsonContent = extractBlock(content, "body:json") ?? "";
|
|
@@ -7303,7 +7312,7 @@ function isNewer(a, b) {
|
|
|
7303
7312
|
return a2 > b2;
|
|
7304
7313
|
}
|
|
7305
7314
|
async function checkForUpdate() {
|
|
7306
|
-
const current = "0.8.
|
|
7315
|
+
const current = "0.8.1";
|
|
7307
7316
|
try {
|
|
7308
7317
|
const res = await fetch(REGISTRY_URL, { signal: AbortSignal.timeout(4e3) });
|
|
7309
7318
|
if (!res.ok) return null;
|
package/out/main/perf.js
CHANGED
|
@@ -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.1"}`;
|
|
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));
|
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.1"}`;
|
|
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, f as LRLanguage, s as styleTags, i as indentNodeProp, m as delimitedIndent, n as foldNodeProp, p as foldInside, S as StateField, q as LRParser, u as StateEffect, v as tags, a as reactExports, j as jsxRuntimeExports, d as ReactCodeMirror, o as oneDark, c as json } from "./codemirror-CdIFBPs2.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-B_7rAo5x.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, d as ReactCodeMirror, o as oneDark, x as xml } from "./codemirror-CdIFBPs2.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-B_7rAo5x.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-DRHpuBUa.js","./codemirror-CdIFBPs2.js","./ajv-CJPwFjiP.js","./SoapEditor-fOGCq_ap.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, x as xml, c as json, d as ReactCodeMirror, o as oneDark, e as javascript } from "./codemirror-CdIFBPs2.js";
|
|
3
3
|
import { r as requireAjv } from "./ajv-CJPwFjiP.js";
|
|
4
4
|
var client = { exports: {} };
|
|
@@ -28427,8 +28427,8 @@ function jsonWithComments() {
|
|
|
28427
28427
|
function xmlWithComments() {
|
|
28428
28428
|
return [xml(), commentKeymap];
|
|
28429
28429
|
}
|
|
28430
|
-
const GraphQLEditor = reactExports.lazy(() => __vitePreload(() => import("./GraphQLEditor-
|
|
28431
|
-
const SoapEditor = reactExports.lazy(() => __vitePreload(() => import("./SoapEditor-
|
|
28430
|
+
const GraphQLEditor = reactExports.lazy(() => __vitePreload(() => import("./GraphQLEditor-DRHpuBUa.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url).then((m) => ({ default: m.GraphQLEditor })));
|
|
28431
|
+
const SoapEditor = reactExports.lazy(() => __vitePreload(() => import("./SoapEditor-fOGCq_ap.js"), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url).then((m) => ({ default: m.SoapEditor })));
|
|
28432
28432
|
function BodyTab({ request: request2, onChange }) {
|
|
28433
28433
|
const t2 = useT();
|
|
28434
28434
|
const editorFallback = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 text-xs text-surface-500", children: t2("Loading editor…") });
|
|
@@ -35876,7 +35876,7 @@ function WelcomeScreen() {
|
|
|
35876
35876
|
)
|
|
35877
35877
|
] }),
|
|
35878
35878
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-surface-400 text-sm max-w-sm", children: t2("Local-first API testing with Robot Framework & Playwright code generation. Secrets stay on your machine.") }),
|
|
35879
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[11px] mt-3", style: { color: "var(--text-muted)" }, children: t2("version :version", { version: "0.8.
|
|
35879
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[11px] mt-3", style: { color: "var(--text-muted)" }, children: t2("version :version", { version: "0.8.1" }) })
|
|
35880
35880
|
] }),
|
|
35881
35881
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-3 w-64", children: [
|
|
35882
35882
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -56011,7 +56011,7 @@ function App() {
|
|
|
56011
56011
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#6aa3c8" }, children: "Spector" }),
|
|
56012
56012
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "ml-2 text-[10px] font-normal opacity-50", children: [
|
|
56013
56013
|
"v",
|
|
56014
|
-
"0.8.
|
|
56014
|
+
"0.8.1"
|
|
56015
56015
|
] }),
|
|
56016
56016
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mx-2 opacity-30", children: "·" }),
|
|
56017
56017
|
/* @__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-B_7rAo5x.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="./assets/codemirror-CdIFBPs2.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/ajv-CJPwFjiP.js">
|
|
11
11
|
<link rel="stylesheet" crossorigin href="./assets/index-DkhdKzQJ.css">
|