@openwop/cli 1.2.2 → 1.2.3

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/dist/cli.js CHANGED
@@ -578,7 +578,7 @@ function errText(err) {
578
578
  // package.json
579
579
  var package_default = {
580
580
  name: "@openwop/cli",
581
- version: "1.2.2",
581
+ version: "1.2.3",
582
582
  description: "OpenWOP CLI for operating the workflow-engine demo app and OpenWOP-compatible hosts.",
583
583
  license: "Apache-2.0",
584
584
  type: "module",
@@ -1265,9 +1265,9 @@ function streamBaseFrom(extensions, baseUrl) {
1265
1265
  continue;
1266
1266
  }
1267
1267
  if (url.username !== "" || url.password !== "" || url.search !== "" || url.hash !== "") continue;
1268
- const secure = url.protocol === "https:" && (base16.protocol === "https:" || isLoopback(base16));
1269
- const localDev = url.protocol === "http:" && isLoopback(url) && isLoopback(base16);
1270
- if (!secure && !localDev) continue;
1268
+ if (isLoopback(base16)) {
1269
+ if (!isLoopback(url)) continue;
1270
+ } else if (url.protocol !== "https:" || base16.protocol !== "https:") continue;
1271
1271
  return raw.replace(/\/+$/, "");
1272
1272
  }
1273
1273
  return void 0;
package/dist/openwop.js CHANGED
@@ -579,7 +579,7 @@ function errText(err) {
579
579
  // package.json
580
580
  var package_default = {
581
581
  name: "@openwop/cli",
582
- version: "1.2.2",
582
+ version: "1.2.3",
583
583
  description: "OpenWOP CLI for operating the workflow-engine demo app and OpenWOP-compatible hosts.",
584
584
  license: "Apache-2.0",
585
585
  type: "module",
@@ -1265,9 +1265,9 @@ function streamBaseFrom(extensions, baseUrl) {
1265
1265
  continue;
1266
1266
  }
1267
1267
  if (url.username !== "" || url.password !== "" || url.search !== "" || url.hash !== "") continue;
1268
- const secure = url.protocol === "https:" && (base16.protocol === "https:" || isLoopback(base16));
1269
- const localDev = url.protocol === "http:" && isLoopback(url) && isLoopback(base16);
1270
- if (!secure && !localDev) continue;
1268
+ if (isLoopback(base16)) {
1269
+ if (!isLoopback(url)) continue;
1270
+ } else if (url.protocol !== "https:" || base16.protocol !== "https:") continue;
1271
1271
  return raw.replace(/\/+$/, "");
1272
1272
  }
1273
1273
  return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openwop/cli",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "OpenWOP CLI for operating the workflow-engine demo app and OpenWOP-compatible hosts.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",