@testsmith/api-spector 0.3.5 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const handle = require("./handle-C0IQL-Vl.js");
2
+ const handle = require("./handle-BCnNIZZr.js");
3
3
  const https = require("https");
4
4
  const http = require("http");
5
5
  const xmldom = require("@xmldom/xmldom");
@@ -275,7 +275,7 @@ function buildResponseEnvelope(operationName, namespace, soapVersion = "1.1") {
275
275
  </soap:Envelope>`;
276
276
  }
277
277
  function buildMockDispatchScript(_opMap) {
278
- return `// Auto-generated by Import WSDL dispatches per SOAP operation.
278
+ return `// Auto-generated by Import WSDL - dispatches per SOAP operation.
279
279
  // Envelopes come from route metadata.soapEnvelopes (set by the WSDL importer).
280
280
  const envelopes = (metadata && metadata.soapEnvelopes) || {};
281
281
  const ct = (metadata && metadata.soapVersion === '1.2')
@@ -315,7 +315,7 @@ function registerSoapHandlers(ipc) {
315
315
  handle.handleIpc(ipc, handle.IPC.wsdl.import, async (_event, opts) => {
316
316
  const { validateWsdlImport } = await Promise.resolve().then(() => require("./ipc-validate-k6KI8adf.js"));
317
317
  validateWsdlImport(opts);
318
- const { importWsdl } = await Promise.resolve().then(() => require("./import-C5Ngq8hk.js"));
318
+ const { importWsdl } = await Promise.resolve().then(() => require("./import-DUKaMYGO.js"));
319
319
  const wsdlText = opts.xml ?? (opts.url ? await fetchUrl(opts.url) : "");
320
320
  if (!wsdlText) throw new Error("wsdl:import requires either `url` or `xml`");
321
321
  return importWsdl(wsdlText, { name: opts.name, existingMockPorts: opts.existingMockPorts });