@openwop/cli 0.18.1 → 0.18.2
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 +2 -1
- package/dist/openwop.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -522,7 +522,7 @@ function errText(err) {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
// src/constants.ts
|
|
525
|
-
var VERSION = "0.18.
|
|
525
|
+
var VERSION = "0.18.2";
|
|
526
526
|
var DEFAULT_BASE_URL = "http://localhost:8080";
|
|
527
527
|
var DEFAULT_REGISTRY_URL = "https://packs.openwop.dev";
|
|
528
528
|
var DEFAULT_API_KEY = "sample-token";
|
|
@@ -14071,6 +14071,7 @@ Run \`openwop --help\` for usage.`);
|
|
|
14071
14071
|
const bodyMessage = err.body && typeof err.body === "object" && typeof err.body.message === "string" ? `: ${err.body.message}` : "";
|
|
14072
14072
|
writeLine(io.stderr, `openwop: HTTP ${err.status}${bodyMessage}`);
|
|
14073
14073
|
if (options.debugErrors) writeLine(io.stderr, String(err.stack ?? err));
|
|
14074
|
+
if (err.status === 401 || err.status === 403) return 4;
|
|
14074
14075
|
return err.status >= 500 ? 1 : 2;
|
|
14075
14076
|
}
|
|
14076
14077
|
writeLine(io.stderr, `openwop: ${err instanceof Error ? err.message : String(err)}`);
|
package/dist/openwop.js
CHANGED
|
@@ -523,7 +523,7 @@ function errText(err) {
|
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
// src/constants.ts
|
|
526
|
-
var VERSION = "0.18.
|
|
526
|
+
var VERSION = "0.18.2";
|
|
527
527
|
var DEFAULT_BASE_URL = "http://localhost:8080";
|
|
528
528
|
var DEFAULT_REGISTRY_URL = "https://packs.openwop.dev";
|
|
529
529
|
var DEFAULT_API_KEY = "sample-token";
|
|
@@ -14072,6 +14072,7 @@ Run \`openwop --help\` for usage.`);
|
|
|
14072
14072
|
const bodyMessage = err.body && typeof err.body === "object" && typeof err.body.message === "string" ? `: ${err.body.message}` : "";
|
|
14073
14073
|
writeLine(io.stderr, `openwop: HTTP ${err.status}${bodyMessage}`);
|
|
14074
14074
|
if (options.debugErrors) writeLine(io.stderr, String(err.stack ?? err));
|
|
14075
|
+
if (err.status === 401 || err.status === 403) return 4;
|
|
14075
14076
|
return err.status >= 500 ? 1 : 2;
|
|
14076
14077
|
}
|
|
14077
14078
|
writeLine(io.stderr, `openwop: ${err instanceof Error ? err.message : String(err)}`);
|