@testsmith/api-spector 0.8.3 → 0.8.5
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/{broker-client-BQBPAPCZ.js → broker-client-BLNAmcIO.js} +1 -1
- package/out/main/chunks/{handle-Crv1i9hb.js → handle-_4XMUlwm.js} +3 -0
- package/out/main/chunks/{import-DTcZMRNu.js → import-ujxXe3Uu.js} +5 -16
- package/out/main/chunks/{perf-run-D02WoC6i.js → perf-run-8vtnijFu.js} +1 -1
- package/out/main/chunks/{request-exec-CEmSNDIG.js → request-exec-WMdzNu1m.js} +72 -6
- package/out/main/chunks/{soap-handler-Brr7BPWO.js → soap-handler-BF5ii0UV.js} +25 -2
- package/out/main/contract.js +3 -3
- package/out/main/flow.js +3 -3
- package/out/main/index.js +54 -7341
- package/out/main/lib.js +2 -2
- package/out/main/perf-worker.js +3 -3
- package/out/main/perf.js +4 -4
- package/out/main/register-handlers.js +7886 -0
- package/out/main/runner.js +3 -3
- package/out/main/wsdl.js +3 -3
- package/out/preload/index.js +5 -0
- package/out/renderer/assets/{GraphQLEditor-03mRa3Kf.js → GraphQLEditor-BJ8UW5Ec.js} +2 -2
- package/out/renderer/assets/{SoapEditor-IfKqnYlR.js → SoapEditor-CGOlsyHn.js} +12 -5
- package/out/renderer/assets/{codemirror-CdIFBPs2.js → codemirror-BKmwMUlV.js} +14 -11
- package/out/renderer/assets/index-DH2Ag-Ov.css +627 -0
- package/out/renderer/assets/{index-DYw1nSsv.js → index-kpku5bmc.js} +24251 -23482
- package/out/renderer/index.html +3 -3
- package/package.json +1 -1
- package/out/renderer/assets/index-CB5T8Srd.css +0 -627
package/out/main/runner.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
const promises = require("node:fs/promises");
|
|
4
4
|
const path = require("node:path");
|
|
5
|
-
const requestExec = require("./chunks/request-exec-
|
|
5
|
+
const requestExec = require("./chunks/request-exec-WMdzNu1m.js");
|
|
6
6
|
const escape = require("./chunks/escape-DDVAlOvZ.js");
|
|
7
7
|
const requestCollection = require("./chunks/request-collection-gkOYlWml.js");
|
|
8
8
|
const runConcurrent = require("./chunks/run-concurrent-468tH0AX.js");
|
|
@@ -11,7 +11,7 @@ const cliCommon = require("./chunks/cli-common-GnihVSjU.js");
|
|
|
11
11
|
require("undici");
|
|
12
12
|
require("fs/promises");
|
|
13
13
|
require("tls");
|
|
14
|
-
require("./chunks/handle-
|
|
14
|
+
require("./chunks/handle-_4XMUlwm.js");
|
|
15
15
|
require("node:fs");
|
|
16
16
|
require("node:os");
|
|
17
17
|
require("node:crypto");
|
|
@@ -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.5"}`;
|
|
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));
|
package/out/main/wsdl.js
CHANGED
|
@@ -4,10 +4,10 @@ const promises = require("node:fs/promises");
|
|
|
4
4
|
const path = require("node:path");
|
|
5
5
|
const https = require("node:https");
|
|
6
6
|
const http = require("node:http");
|
|
7
|
-
const soapHandler = require("./chunks/soap-handler-
|
|
8
|
-
const _import = require("./chunks/import-
|
|
7
|
+
const soapHandler = require("./chunks/soap-handler-BF5ii0UV.js");
|
|
8
|
+
const _import = require("./chunks/import-ujxXe3Uu.js");
|
|
9
9
|
const cliCommon = require("./chunks/cli-common-GnihVSjU.js");
|
|
10
|
-
require("./chunks/handle-
|
|
10
|
+
require("./chunks/handle-_4XMUlwm.js");
|
|
11
11
|
require("@xmldom/xmldom");
|
|
12
12
|
require("uuid");
|
|
13
13
|
require("./chunks/data-files-BYqhsoPe.js");
|
package/out/preload/index.js
CHANGED
|
@@ -83,6 +83,7 @@ const IPC = {
|
|
|
83
83
|
http: "import:http",
|
|
84
84
|
har: "import:har",
|
|
85
85
|
arazzo: "import:arazzo",
|
|
86
|
+
wsdl: "import:wsdl",
|
|
86
87
|
spector: "import:spector",
|
|
87
88
|
openapiSchemas: "import:openapi-schemas",
|
|
88
89
|
openapiSchemasUrl: "import:openapi-schemas-url"
|
|
@@ -283,6 +284,8 @@ const IPC = {
|
|
|
283
284
|
},
|
|
284
285
|
// ─── Cloud (API Spector Cloud integration) ──────────────────────────────────
|
|
285
286
|
cloud: {
|
|
287
|
+
/** One-click connect: browser consent + PKCE, returns a fresh token. */
|
|
288
|
+
connect: "cloud:connect",
|
|
286
289
|
/** Verify the endpoint + token (GET /api/me). */
|
|
287
290
|
test: "cloud:test",
|
|
288
291
|
/** Push a mock server definition (POST /api/mocks). */
|
|
@@ -376,6 +379,7 @@ const api = {
|
|
|
376
379
|
importPostmanEnvironment: () => electron.ipcRenderer.invoke(IPC.import.postmanEnvironment),
|
|
377
380
|
importOpenApi: () => electron.ipcRenderer.invoke(IPC.import.openapi),
|
|
378
381
|
importOpenApiFromUrl: (url) => electron.ipcRenderer.invoke(IPC.import.openapiUrl, url),
|
|
382
|
+
importWsdl: (opts) => electron.ipcRenderer.invoke(IPC.import.wsdl, opts ?? {}),
|
|
379
383
|
importInsomnia: () => electron.ipcRenderer.invoke(IPC.import.insomnia),
|
|
380
384
|
importBruno: () => electron.ipcRenderer.invoke(IPC.import.bruno),
|
|
381
385
|
importHttpFile: () => electron.ipcRenderer.invoke(IPC.import.http),
|
|
@@ -401,6 +405,7 @@ const api = {
|
|
|
401
405
|
oauth2StartFlow: (auth, ctx) => electron.ipcRenderer.invoke(IPC.oauth2.startFlow, auth, ctx),
|
|
402
406
|
oauth2RefreshToken: (auth, ctx, refreshToken) => electron.ipcRenderer.invoke(IPC.oauth2.refreshToken, auth, ctx, refreshToken),
|
|
403
407
|
// ─── Cloud integration ────────────────────────────────────────────────────────
|
|
408
|
+
cloudConnect: () => electron.ipcRenderer.invoke(IPC.cloud.connect),
|
|
404
409
|
cloudTest: () => electron.ipcRenderer.invoke(IPC.cloud.test),
|
|
405
410
|
cloudPushMock: (server) => electron.ipcRenderer.invoke(IPC.cloud.pushMock, server),
|
|
406
411
|
cloudGetMock: (name) => electron.ipcRenderer.invoke(IPC.cloud.getMock, name),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as linter, E as EditorView, L as LanguageSupport,
|
|
2
|
-
import { u as useT, a as useStore, b as useActiveEnvironment, i as isSubscriptionQuery } from "./index-
|
|
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-kpku5bmc.js";
|
|
3
3
|
import "./ajv-CJPwFjiP.js";
|
|
4
4
|
function devAssert(condition, message) {
|
|
5
5
|
const booleanCondition = Boolean(condition);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as reactExports, j as jsxRuntimeExports,
|
|
2
|
-
import { u as useT, c as btnPrimaryCls, d as commentKeymap } from "./index-
|
|
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-kpku5bmc.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";
|
|
@@ -157,10 +157,17 @@ function SoapEditor({ request, onChange }) {
|
|
|
157
157
|
"button",
|
|
158
158
|
{
|
|
159
159
|
onClick: () => selectOperation(op),
|
|
160
|
-
className: `w-full text-left px-2.5 py-1.5 text-[11px] border-b border-surface-800/50 transition-colors ${active ? "bg-blue-900/30 text-blue-300" : "text-surface-300 hover:bg-surface-800/60"}`,
|
|
160
|
+
className: `w-full text-left px-2.5 py-1.5 text-[11px] border-b border-surface-800/50 transition-colors flex items-center gap-1.5 ${active ? "bg-blue-900/30 text-blue-300" : "text-surface-300 hover:bg-surface-800/60"}`,
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("
|
|
163
|
-
|
|
162
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-mono truncate flex-1 min-w-0", children: op.name }),
|
|
163
|
+
versions.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
164
|
+
"span",
|
|
165
|
+
{
|
|
166
|
+
className: `shrink-0 text-[8px] font-bold px-1 py-px rounded tracking-wide ${op.soapVersion === "1.2" ? "bg-violet-500/20 text-violet-300" : "bg-sky-500/20 text-sky-300"}`,
|
|
167
|
+
title: `SOAP ${op.soapVersion}`,
|
|
168
|
+
children: op.soapVersion
|
|
169
|
+
}
|
|
170
|
+
)
|
|
164
171
|
]
|
|
165
172
|
},
|
|
166
173
|
`${op.binding ?? ""}:${op.name}:${op.soapVersion}`
|
|
@@ -26529,31 +26529,34 @@ const autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((view, from, to
|
|
|
26529
26529
|
return true;
|
|
26530
26530
|
});
|
|
26531
26531
|
export {
|
|
26532
|
+
Decoration as D,
|
|
26532
26533
|
EditorView as E,
|
|
26533
26534
|
LanguageSupport as L,
|
|
26534
26535
|
React as R,
|
|
26535
26536
|
StateField as S,
|
|
26537
|
+
ViewPlugin as V,
|
|
26536
26538
|
reactExports as a,
|
|
26537
26539
|
autocompletion as b,
|
|
26538
|
-
|
|
26539
|
-
|
|
26540
|
-
|
|
26541
|
-
|
|
26540
|
+
RangeSetBuilder as c,
|
|
26541
|
+
json as d,
|
|
26542
|
+
ReactCodeMirror as e,
|
|
26543
|
+
javascript as f,
|
|
26542
26544
|
getDefaultExportFromCjs as g,
|
|
26543
26545
|
hoverTooltip as h,
|
|
26544
|
-
|
|
26546
|
+
LRLanguage as i,
|
|
26545
26547
|
jsxRuntimeExports as j,
|
|
26546
26548
|
keymap as k,
|
|
26547
26549
|
linter as l,
|
|
26548
|
-
|
|
26549
|
-
|
|
26550
|
+
indentNodeProp as m,
|
|
26551
|
+
delimitedIndent as n,
|
|
26550
26552
|
oneDark as o,
|
|
26551
|
-
|
|
26552
|
-
|
|
26553
|
+
foldNodeProp as p,
|
|
26554
|
+
foldInside as q,
|
|
26553
26555
|
requireReact as r,
|
|
26554
26556
|
styleTags as s,
|
|
26555
26557
|
toggleComment as t,
|
|
26556
|
-
|
|
26557
|
-
|
|
26558
|
+
LRParser as u,
|
|
26559
|
+
StateEffect as v,
|
|
26560
|
+
tags as w,
|
|
26558
26561
|
xml as x
|
|
26559
26562
|
};
|