heroku 9.0.0-beta.2 → 9.0.0-beta.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/lib/lib/pg/fetcher.js +2 -2
- package/oclif.manifest.json +671 -671
- package/package.json +2 -2
package/lib/lib/pg/fetcher.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRelease = exports.database = exports.getAddon = exports.getAttachment = exports.all = exports.arbitraryAppDB = void 0;
|
|
4
|
+
const api_client_1 = require("@heroku-cli/command/lib/api-client");
|
|
4
5
|
const debug_1 = require("debug");
|
|
5
6
|
const resolve_1 = require("../addons/resolve");
|
|
6
7
|
const bastion_1 = require("./bastion");
|
|
7
8
|
const config_1 = require("./config");
|
|
8
9
|
const color_1 = require("@heroku-cli/color");
|
|
9
10
|
const util_1 = require("./util");
|
|
10
|
-
const http_call_1 = require("http-call");
|
|
11
11
|
const pgDebug = (0, debug_1.default)('pg');
|
|
12
12
|
async function arbitraryAppDB(heroku, app) {
|
|
13
13
|
// Since Postgres backups are tied to the app and not the add-on, but
|
|
@@ -54,7 +54,7 @@ async function matchesHelper(heroku, app, db, namespace) {
|
|
|
54
54
|
if (error instanceof resolve_1.AmbiguousError && ((_a = error.body) === null || _a === void 0 ? void 0 : _a.id) === 'multiple_matches' && error.matches) {
|
|
55
55
|
return { matches: error.matches, error };
|
|
56
56
|
}
|
|
57
|
-
if (error instanceof
|
|
57
|
+
if (error instanceof api_client_1.HerokuAPIError && error.http.statusCode === 404 && error.body && error.body.id === 'not_found') {
|
|
58
58
|
return { matches: null, error };
|
|
59
59
|
}
|
|
60
60
|
throw error;
|