heroku 9.0.0-beta.1 → 9.0.0-beta.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.
@@ -19,6 +19,7 @@ export declare namespace resolveAddon {
19
19
  }
20
20
  export declare class NotFound extends Error {
21
21
  readonly statusCode = 404;
22
+ readonly id = "not_found";
22
23
  readonly message = "Couldn't find that addon.";
23
24
  }
24
25
  export declare class AmbiguousError extends Error {
@@ -143,6 +143,7 @@ class NotFound extends Error {
143
143
  constructor() {
144
144
  super(...arguments);
145
145
  this.statusCode = 404;
146
+ this.id = 'not_found';
146
147
  this.message = 'Couldn\'t find that addon.';
147
148
  }
148
149
  }
@@ -7,6 +7,7 @@ const bastion_1 = require("./bastion");
7
7
  const config_1 = require("./config");
8
8
  const color_1 = require("@heroku-cli/color");
9
9
  const util_1 = require("./util");
10
+ const http_call_1 = require("http-call");
10
11
  const pgDebug = (0, debug_1.default)('pg');
11
12
  async function arbitraryAppDB(heroku, app) {
12
13
  // Since Postgres backups are tied to the app and not the add-on, but
@@ -53,7 +54,7 @@ async function matchesHelper(heroku, app, db, namespace) {
53
54
  if (error instanceof resolve_1.AmbiguousError && ((_a = error.body) === null || _a === void 0 ? void 0 : _a.id) === 'multiple_matches' && error.matches) {
54
55
  return { matches: error.matches, error };
55
56
  }
56
- if (error instanceof resolve_1.NotFound) {
57
+ if (error instanceof http_call_1.HTTPError && error.statusCode === 404 && error.body && error.body.id === 'not_found') {
57
58
  return { matches: null, error };
58
59
  }
59
60
  throw error;
@@ -13763,5 +13763,5 @@
13763
13763
  ]
13764
13764
  }
13765
13765
  },
13766
- "version": "9.0.0-beta.1"
13766
+ "version": "9.0.0-beta.2"
13767
13767
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "heroku",
3
3
  "description": "CLI to interact with Heroku",
4
- "version": "9.0.0-beta.1",
4
+ "version": "9.0.0-beta.2",
5
5
  "author": "Jeff Dickey @jdxcode",
6
6
  "bin": "./bin/run",
7
7
  "bugs": "https://github.com/heroku/cli/issues",
@@ -388,5 +388,5 @@
388
388
  "version": "oclif readme --multi && git add README.md ../../docs"
389
389
  },
390
390
  "types": "lib/index.d.ts",
391
- "gitHead": "ecf6f90d54c0060ff169475611a92c3fedec3faa"
391
+ "gitHead": "141dc18e917425a506df7eb6757fd03c0896a454"
392
392
  }