heroku 9.0.0-beta.0 → 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.
- package/lib/lib/addons/resolve.d.ts +1 -0
- package/lib/lib/addons/resolve.js +1 -0
- package/lib/lib/pg/fetcher.js +2 -1
- package/oclif.manifest.json +671 -671
- package/package.json +4 -3
|
@@ -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 {
|
package/lib/lib/pg/fetcher.js
CHANGED
|
@@ -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
|
|
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;
|