@heroku/heroku-cli-util 9.1.3-beta.1 → 9.1.3-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/dist/index.d.ts CHANGED
@@ -3,7 +3,9 @@ import { AmbiguousError } from './errors/ambiguous';
3
3
  import { NotFound } from './errors/not-found';
4
4
  import { AddOnWithRelatedData, ExtendedAddonAttachment, Link } from './types/pg/data-api';
5
5
  import { ConnectionDetails, ConnectionDetailsWithAttachment, TunnelConfig } from './types/pg/tunnel';
6
+ import DatabaseResolver from './utils/pg/databases';
6
7
  import getHost from './utils/pg/host';
8
+ import PsqlService from './utils/pg/psql';
7
9
  import { confirm } from './ux/confirm';
8
10
  import { prompt } from './ux/prompt';
9
11
  import { styledHeader } from './ux/styled-header';
@@ -13,9 +15,6 @@ import { table } from './ux/table';
13
15
  import { wait } from './ux/wait';
14
16
  export type { AddOnWithRelatedData, ExtendedAddonAttachment, Link, } from './types/pg/data-api';
15
17
  export type { ConnectionDetails, ConnectionDetailsWithAttachment, TunnelConfig, } from './types/pg/tunnel';
16
- export { default as DatabaseResolver } from './utils/pg/databases';
17
- export { default as getHost } from './utils/pg/host';
18
- export { default as PsqlService } from './utils/pg/psql';
19
18
  /** @deprecated Use direct type imports instead */
20
19
  export declare const types: {
21
20
  pg: {
@@ -33,6 +32,8 @@ export declare const utils: {
33
32
  NotFound: typeof NotFound;
34
33
  };
35
34
  pg: {
35
+ DatabaseResolver: typeof DatabaseResolver;
36
+ PsqlService: typeof PsqlService;
36
37
  fetcher: {
37
38
  database(heroku: APIClient, appId: string, attachmentId?: string, namespace?: string): Promise<ConnectionDetailsWithAttachment>;
38
39
  };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hux = exports.utils = exports.types = exports.PsqlService = exports.getHost = exports.DatabaseResolver = void 0;
3
+ exports.hux = exports.utils = exports.types = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ambiguous_1 = require("./errors/ambiguous");
6
6
  const not_found_1 = require("./errors/not-found");
@@ -14,13 +14,6 @@ const styled_json_1 = require("./ux/styled-json");
14
14
  const styled_object_1 = require("./ux/styled-object");
15
15
  const table_1 = require("./ux/table");
16
16
  const wait_1 = require("./ux/wait");
17
- // Export PG classes for direct import
18
- var databases_2 = require("./utils/pg/databases");
19
- Object.defineProperty(exports, "DatabaseResolver", { enumerable: true, get: function () { return tslib_1.__importDefault(databases_2).default; } });
20
- var host_2 = require("./utils/pg/host");
21
- Object.defineProperty(exports, "getHost", { enumerable: true, get: function () { return tslib_1.__importDefault(host_2).default; } });
22
- var psql_2 = require("./utils/pg/psql");
23
- Object.defineProperty(exports, "PsqlService", { enumerable: true, get: function () { return tslib_1.__importDefault(psql_2).default; } });
24
17
  // Keep const types for backward compatibility (deprecated)
25
18
  /** @deprecated Use direct type imports instead */
26
19
  exports.types = {
@@ -39,6 +32,8 @@ exports.utils = {
39
32
  NotFound: not_found_1.NotFound, // This should be NotFoundError for consistency, but we're keeping it for backwards compatibility
40
33
  },
41
34
  pg: {
35
+ DatabaseResolver: databases_1.default,
36
+ PsqlService: psql_1.default,
42
37
  fetcher: {
43
38
  database(heroku, appId, attachmentId, namespace) {
44
39
  const databaseResolver = new databases_1.default(heroku);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroku/heroku-cli-util",
3
- "version": "9.1.3-beta.1",
3
+ "version": "9.1.3-beta.3",
4
4
  "description": "Set of helpful CLI utilities",
5
5
  "author": "Heroku",
6
6
  "license": "ISC",