Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,011 changes: 488 additions & 1,523 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"got": "^14.0.0",
"https-proxy-agent": "^7.0.6",
"inquirer": "^8.2.6",
"ip-address": "^10.7.2",
"keypair": "^1.0.4",
"lodash": "^4.17.21",
"marked": "^15.0.12",
Expand All @@ -72,8 +73,9 @@
"tldts": "^7.0.27",
"tmp": "^0.2.5",
"true-myth": "4.1.1",
"tsheredoc": "^1.0.1",
"tsheredoc": "^2.0.0",
"tslib": "^2.8.1",
"undici": "^7.30.0",
"urijs": "^1.19.11",
"word-wrap": "^1.2.5",
"ws": "^6.2.2",
Expand Down Expand Up @@ -112,13 +114,13 @@
"@types/write-json-file": "^3.2.1",
"@types/ws": "^6.0.1",
"@types/yargs-parser": "^21.0.3",
"@typescript-eslint/eslint-plugin": "^8.58.1",
"@typescript-eslint/parser": "^8.58.1",
"@typescript-eslint/eslint-plugin": "^8.70.1",
"@typescript-eslint/parser": "^8.70.1",
"bats": "^1.1.0",
"c8": "^11.0.0",
"chai": "^5.3.3",
"chai-as-promised": "^7.1.1",
"commit-and-tag-version": "^12.5.0",
"commit-and-tag-version": "^13.2.1",
"cspell": "9.8.0",
"eslint": "^9.39.4",
"eslint-config-oclif": "^6.0.157",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/addons/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import createAddon from '../../lib/addons/create-addon.js'
import * as util from '../../lib/addons/util.js'
import notify from '../../lib/notify.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Create extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/apps/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {lazyModuleLoader} from '../../lib/lazy-module-loader.js'
import {getOwner, isTeamApp, isValidEmail} from '../../lib/team-utils.js'
import AppsLock from './lock.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class AppsTransfer extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/certs/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CertAndKeyManager} from '../../lib/certs/get-cert-and-key.js'
import {lazyModuleLoader} from '../../lib/lazy-module-loader.js'
import {SniEndpoint} from '../../lib/types/sni-endpoint.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Add extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/certs/auto/disable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import tsheredoc from 'tsheredoc'

import ConfirmCommand from '../../../lib/confirm-command.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Disable extends Command {
static description = 'disable ACM for an app'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/certs/auto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {lazyModuleLoader} from '../../../lib/lazy-module-loader.js'
import {Domain} from '../../../lib/types/domain.js'
import {SniEndpoint} from '../../../lib/types/sni-endpoint.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

function humanize(value: null | string) {
if (!value) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/certs/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsheredoc from 'tsheredoc'
import getEndpoint from '../../lib/certs/flags.js'
import ConfirmCommand from '../../lib/confirm-command.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Remove extends Command {
static description = 'remove an SSL certificate from an app'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/certs/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {CertAndKeyManager} from '../../lib/certs/get-cert-and-key.js'
import ConfirmCommand from '../../lib/confirm-command.js'
import {SniEndpoint} from '../../lib/types/sni-endpoint.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Update extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/ci/config/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {setPipelineConfigVars} from '../../../lib/api.js'
import {getPipeline} from '../../../lib/ci/pipelines.js'
import {validateArgvPresent} from '../../../lib/ci/validate.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class CiConfigSet extends Command {
static description = 'set CI config vars'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {color, hux} from '@heroku/heroku-cli-util'
import {ux} from '@oclif/core/ux'
import tsheredoc from 'tsheredoc'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

const lastRelease = async (client: APIClient, app: string) => {
const {body: releases} = await client.get<Heroku.Release[]>(`/apps/${app}/releases`, {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/unset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as color from '@heroku/heroku-cli-util/color'
import {ux} from '@oclif/core/ux'
import tsheredoc from 'tsheredoc'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export class ConfigUnset extends Command {
static aliases = [
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/attachments/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from '../../../../lib/data/types.js'

const {prompt} = inquirer
const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class DataPgAttachmentsCreate extends BaseCommand {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {ExtendedPostgresLevelInfo} from '../../../lib/data/types.js'
import {fetchLevelsAndPricing} from '../../../lib/data/utils.js'
import notify from '../../../lib/notify.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc
const {prompt} = inquirer

export default class DataPgCreate extends BaseCommand {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/credentials/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import tsheredoc from 'tsheredoc'

import BaseCommand from '../../../../lib/data/base-command.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class DataPgCredentialsCreate extends BaseCommand {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/credentials/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type {
import BaseCommand from '../../../../lib/data/base-command.js'
import {isAdvancedCredentialInfo} from '../../../../lib/data/types.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Url extends BaseCommand {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/fork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {InfoResponse} from '../../../lib/data/types.js'
import {lazyModuleLoader} from '../../../lib/lazy-module-loader.js'
import notify from '../../../lib/notify.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Fork extends BaseCommand {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {formatQuotaStatus} from '../../../lib/data/display-quota.js'
import {parseAttachmentFactors} from '../../../lib/data/parse-attachment-factors.js'
import {InfoResponse, PoolInfoResponse, Quota} from '../../../lib/data/types.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

const poolStatusRenderMap: Record<PoolInfoResponse['status'], string> = {
available: color.success('✓ Available'),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {fetchLevelsAndPricing} from '../../../lib/data/utils.js'
import {getAttachmentNamesByAddon} from '../../../lib/pg/util.js'
import {huxTableNoWrapOptions} from '../../../lib/utils/table-utils.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

const {prompt, Separator} = inquirer

Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/psql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import tsheredoc from 'tsheredoc'

import {runPsqlThroughOneOffDyno} from '../../../lib/pg/one-off-dyno.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class DataPgPsql extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/quotas/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type QuotaUpdate = {
warning_gb?: null | number,
}

const heredoc = tsheredoc.default
const heredoc = tsheredoc
const validateQuotaSetting = function (flagName: string, settingAmt: string | undefined) {
if (settingAmt && settingAmt !== 'none' && !Number.parseInt(settingAmt, 10)) {
ux.error(heredoc(`
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsheredoc from 'tsheredoc'
import BaseCommand from '../../../lib/data/base-command.js'
import {SettingsChangeResponse, SettingsResponse} from '../../../lib/data/types.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

const settingsChangeHeaders = {
Settings: {},
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import {fetchLevelsAndPricing, renderPricingInfo} from '../../../lib/data/utils.js'
import {getAllAdvancedDatabases} from '../../../lib/pg/util.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

const {prompt, Separator} = inquirer

Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/upgrade/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsheredoc from 'tsheredoc'
import BaseCommand from '../../../../lib/data/base-command.js'
import {InfoResponse, UpgradeResponse} from '../../../../lib/data/types.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class DataPgUpgradeRun extends BaseCommand {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/upgrade/wait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import tsheredoc from 'tsheredoc'

import DataPgWait from '../wait.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class DataPgUpgradeWait extends DataPgWait {
static description = 'shows status of an upgrade until it\'s complete'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/data/pg/wait.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import BaseCommand from '../../../lib/data/base-command.js'
import {WaitStatus} from '../../../lib/data/types.js'
import notify from '../../../lib/notify.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class DataPgWait extends BaseCommand {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsheredoc from 'tsheredoc'

import {LogDisplayer} from '../lib/run/log-displayer.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Logs extends Command {
static description = heredoc`
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/backups/capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import backupsApi from '../../../lib/pg/backups.js'
import {BackupTransfer, PgDatabase} from '../../../lib/pg/types.js'
import {nls} from '../../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Capture extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/backups/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ConfirmCommand from '../../../lib/confirm-command.js'
import backupsFactory from '../../../lib/pg/backups.js'
import {nls} from '../../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Restore extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/blocking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import tsheredoc from 'tsheredoc'

import {nls} from '../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Blocking extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/cache-hit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import tsheredoc from 'tsheredoc'

import {nls} from '../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export const generateCacheHitQuery = (): string => `
SELECT
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsheredoc from 'tsheredoc'
import {ensurePGStatStatement, newBlkTimeFields, newTotalExecTimeField} from '../../lib/pg/extras.js'
import {nls} from '../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export async function generateCallsQuery(db: pg.ConnectionDetails, flags: {truncate?: boolean}): Promise<string> {
const schema = await ensurePGStatStatement(db)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/connection-pooling/attach.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import tsheredoc from 'tsheredoc'
import {essentialPlan} from '../../../lib/pg/util.js'
import {nls} from '../../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Attach extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/credentials/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsheredoc from 'tsheredoc'
import {essentialPlan} from '../../../lib/pg/util.js'
import {nls} from '../../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Create extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/credentials/repair-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ConfirmCommand from '../../../lib/confirm-command.js'
import {essentialPlan} from '../../../lib/pg/util.js'
import {nls} from '../../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class RepairDefault extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/credentials/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {NonAdvancedCredentialInfo} from '../../../lib/data/types.js'

import {nls} from '../../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Url extends Command {
static args = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/diagnose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type {
import {essentialPlan} from '../../lib/pg/util.js'
import {uuidValidate} from '../../lib/utils/uuid-validate.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc
const PGDIAGNOSE_HOST = process.env.PGDIAGNOSE_URL || 'pgdiagnose.herokai.com'

export default class Diagnose extends Command {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsheredoc from 'tsheredoc'
import {essentialNumPlan} from '../../lib/pg/extras.js'
import {nls} from '../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export function generateExtensionsQuery(db: pg.ConnectionDetails): string {
return essentialNumPlan(db.attachment!.addon)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/fdwsql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsheredoc from 'tsheredoc'
import {ensureEssentialTierPlan} from '../../lib/pg/extras.js'
import {nls} from '../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export const generateFdwsqlQuery = (prefix: string): string => `
SELECT
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/index-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import tsheredoc from 'tsheredoc'

import {nls} from '../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export const generateIndexSizeQuery = (): string => `
SELECT c.relname AS name,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/index-usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import tsheredoc from 'tsheredoc'

import {nls} from '../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export const generateIndexUsageQuery = (): string => `
SELECT relname,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pg/kill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import tsheredoc from 'tsheredoc'

import {nls} from '../../nls.js'

const heredoc = tsheredoc.default
const heredoc = tsheredoc

export default class Kill extends Command {
/* eslint-disable perfectionist/sort-objects */
Expand Down
Loading
Loading