@keywaysh/cli 0.0.17 → 0.0.19

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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -69,7 +69,7 @@ var INTERNAL_POSTHOG_HOST = "https://eu.i.posthog.com";
69
69
  // package.json
70
70
  var package_default = {
71
71
  name: "@keywaysh/cli",
72
- version: "0.0.17",
72
+ version: "0.0.19",
73
73
  description: "One link to all your secrets",
74
74
  type: "module",
75
75
  bin: {
@@ -216,13 +216,13 @@ async function handleResponse(response) {
216
216
  if (contentType.includes("application/json")) {
217
217
  try {
218
218
  const error = JSON.parse(text);
219
- throw new APIError(response.status, error.error, error.message, error.upgrade_url);
219
+ throw new APIError(response.status, error.title || "Error", error.detail || `HTTP ${response.status}`, error.upgradeUrl);
220
220
  } catch (e) {
221
221
  if (e instanceof APIError) throw e;
222
- throw new APIError(response.status, "http_error", text || `HTTP ${response.status}`);
222
+ throw new APIError(response.status, "Error", text || `HTTP ${response.status}`);
223
223
  }
224
224
  }
225
- throw new APIError(response.status, "http_error", text || `HTTP ${response.status}`);
225
+ throw new APIError(response.status, "Error", text || `HTTP ${response.status}`);
226
226
  }
227
227
  if (!text) {
228
228
  return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keywaysh/cli",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "One link to all your secrets",
5
5
  "type": "module",
6
6
  "bin": {