@testsmith/api-spector 0.1.8 → 0.1.9

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.
@@ -763,9 +763,10 @@ async function buildDispatcher(proxy, tls) {
763
763
  }
764
764
  if (proxy?.url) {
765
765
  const proxyUri = proxy.auth ? proxy.url.replace("://", `://${encodeURIComponent(proxy.auth.username)}:${encodeURIComponent(proxy.auth.password)}@`) : proxy.url;
766
+ const proxyConnect = { rejectUnauthorized: false, ...connectOpts };
766
767
  return new undici.ProxyAgent({
767
768
  uri: proxyUri,
768
- ...hasTls ? { connect: connectOpts } : {}
769
+ connect: proxyConnect
769
770
  });
770
771
  }
771
772
  if (hasTls) {
@@ -975,7 +976,7 @@ function registerRequestHandler(ipc) {
975
976
  body: "",
976
977
  bodySize: 0,
977
978
  durationMs: Date.now() - start,
978
- error: err instanceof Error ? err.message : String(err)
979
+ error: err instanceof Error ? err.cause instanceof Error ? `${err.message}: ${err.cause.message}` : err.message : String(err)
979
980
  };
980
981
  }
981
982
  let postTestResults = [];
package/out/main/index.js CHANGED
@@ -25,7 +25,7 @@ const electron = require("electron");
25
25
  const path = require("path");
26
26
  const fs = require("fs");
27
27
  const promises = require("fs/promises");
28
- const requestHandler = require("./chunks/request-handler-BEFvdSz6.js");
28
+ const requestHandler = require("./chunks/request-handler-DAXUMRyd.js");
29
29
  const uuid = require("uuid");
30
30
  const jsYaml = require("js-yaml");
31
31
  const undici = require("undici");
@@ -2220,9 +2220,10 @@ async function buildDispatcher(proxy, tls) {
2220
2220
  }
2221
2221
  if (proxy?.url) {
2222
2222
  const proxyUri = proxy.auth ? proxy.url.replace("://", `://${encodeURIComponent(proxy.auth.username)}:${encodeURIComponent(proxy.auth.password)}@`) : proxy.url;
2223
+ const proxyConnect = { rejectUnauthorized: false, ...connectOpts };
2223
2224
  return new undici.ProxyAgent({
2224
2225
  uri: proxyUri,
2225
- ...hasTls ? { connect: connectOpts } : {}
2226
+ connect: proxyConnect
2226
2227
  });
2227
2228
  }
2228
2229
  if (hasTls) return new undici.Agent({ connect: connectOpts });
@@ -2379,7 +2380,7 @@ async function executeOne(req, collectionVars, envVars, globals, localVars, disp
2379
2380
  ...base,
2380
2381
  status: "error",
2381
2382
  durationMs: Date.now() - start,
2382
- error: err instanceof Error ? err.message : String(err),
2383
+ error: err instanceof Error ? err.cause instanceof Error ? `${err.message}: ${err.cause.message}` : err.message : String(err),
2383
2384
  preScriptError
2384
2385
  },
2385
2386
  updatedEnvVars,
@@ -3,7 +3,7 @@
3
3
  const promises = require("fs/promises");
4
4
  const path = require("path");
5
5
  const undici = require("undici");
6
- const requestHandler = require("./chunks/request-handler-BEFvdSz6.js");
6
+ const requestHandler = require("./chunks/request-handler-DAXUMRyd.js");
7
7
  require("crypto");
8
8
  require("dayjs");
9
9
  require("vm");
@@ -56957,7 +56957,7 @@ function App() {
56957
56957
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#6aa3c8" }, children: "Spector" }),
56958
56958
  /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "ml-2 text-[10px] font-normal opacity-50", children: [
56959
56959
  "v",
56960
- "0.1.8"
56960
+ "0.1.9"
56961
56961
  ] }),
56962
56962
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mx-2 opacity-30", children: "·" }),
56963
56963
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -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-aZFSSHIk.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-DheIaFRx.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="./assets/index-BhOUavjZ.css">
10
10
  </head>
11
11
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@testsmith/api-spector",
3
3
  "productName": "api Spector",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "description": "Local-first API testing tool to inspect, test and mock APIs",
6
6
  "repository": {
7
7
  "type": "git",