@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.
@@ -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-CEmSNDIG.js");
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-Crv1i9hb.js");
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.3"}`;
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-Brr7BPWO.js");
8
- const _import = require("./chunks/import-DTcZMRNu.js");
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-Crv1i9hb.js");
10
+ require("./chunks/handle-_4XMUlwm.js");
11
11
  require("@xmldom/xmldom");
12
12
  require("uuid");
13
13
  require("./chunks/data-files-BYqhsoPe.js");
@@ -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, 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-DYw1nSsv.js";
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, 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-DYw1nSsv.js";
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("div", { className: "font-mono truncate", children: op.name }),
163
- op.soapVersion === "1.2" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-[9px] text-surface-600 uppercase", children: "SOAP 1.2" })
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
- json as c,
26539
- ReactCodeMirror as d,
26540
- javascript as e,
26541
- LRLanguage as f,
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
- indentNodeProp as i,
26546
+ LRLanguage as i,
26545
26547
  jsxRuntimeExports as j,
26546
26548
  keymap as k,
26547
26549
  linter as l,
26548
- delimitedIndent as m,
26549
- foldNodeProp as n,
26550
+ indentNodeProp as m,
26551
+ delimitedIndent as n,
26550
26552
  oneDark as o,
26551
- foldInside as p,
26552
- LRParser as q,
26553
+ foldNodeProp as p,
26554
+ foldInside as q,
26553
26555
  requireReact as r,
26554
26556
  styleTags as s,
26555
26557
  toggleComment as t,
26556
- StateEffect as u,
26557
- tags as v,
26558
+ LRParser as u,
26559
+ StateEffect as v,
26560
+ tags as w,
26558
26561
  xml as x
26559
26562
  };