@heroku/heroku-cli-util 9.1.2-beta.0 → 9.1.3-beta.0

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
@@ -13,6 +13,8 @@ import { table } from './ux/table';
13
13
  import { wait } from './ux/wait';
14
14
  export type { AddOnWithRelatedData, ExtendedAddonAttachment, Link, } from './types/pg/data-api';
15
15
  export type { ConnectionDetails, ConnectionDetailsWithAttachment, TunnelConfig, } from './types/pg/tunnel';
16
+ export { default as DatabaseResolver } from './utils/pg/databases';
17
+ export { default as PsqlService } from './utils/pg/psql';
16
18
  /** @deprecated Use direct type imports instead */
17
19
  export declare const types: {
18
20
  pg: {
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 = void 0;
3
+ exports.hux = exports.utils = exports.types = exports.PsqlService = exports.DatabaseResolver = 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,6 +14,11 @@ 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 psql_2 = require("./utils/pg/psql");
21
+ Object.defineProperty(exports, "PsqlService", { enumerable: true, get: function () { return tslib_1.__importDefault(psql_2).default; } });
17
22
  // Keep const types for backward compatibility (deprecated)
18
23
  /** @deprecated Use direct type imports instead */
19
24
  exports.types = {
@@ -87,7 +87,7 @@ export default class PsqlService {
87
87
  * @param options - The options for spawning the psql process
88
88
  * @returns Promise that resolves to the query result as a string
89
89
  */
90
- private runWithTunnel;
90
+ runWithTunnel(tunnelConfig: TunnelConfig, options: Parameters<typeof this.spawnPsql>[0]): Promise<string>;
91
91
  /**
92
92
  * Spawns the psql process with the given options.
93
93
  *
@@ -163,6 +163,7 @@ class PsqlService {
163
163
  * @param options - The options for spawning the psql process
164
164
  * @returns Promise that resolves to the query result as a string
165
165
  */
166
+ // eslint-disable-next-line perfectionist/sort-classes
166
167
  async runWithTunnel(tunnelConfig, options) {
167
168
  const tunnel = await Tunnel.connect(this.connectionDetails, tunnelConfig, this.tunnelFn);
168
169
  pgDebug('after create tunnel');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroku/heroku-cli-util",
3
- "version": "9.1.2-beta.0",
3
+ "version": "9.1.3-beta.0",
4
4
  "description": "Set of helpful CLI utilities",
5
5
  "author": "Heroku",
6
6
  "license": "ISC",