New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@heroku-cli/plugin-pg-v5

Package Overview
Dependencies
Maintainers
47
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heroku-cli/plugin-pg-v5 - npm Package Compare versions

Comparing version 8.10.0 to 8.10.1-beta.0

4

commands/credentials.js

@@ -29,7 +29,7 @@ 'use strict'

credentials = await heroku.get(`/postgres/v0/databases/${addon.name}/credentials`,
credentials = await heroku.get(`/postgres/v0/databases/${addon.id}/credentials`,
{host: host(addon)})
let isDefaultCredential = cred => cred.name !== 'default'
credentials = sortBy(credentials, isDefaultCredential, 'name')
attachments = await heroku.get(`/addons/${addon.name}/addon-attachments`)
attachments = await heroku.get(`/addons/${addon.id}/addon-attachments`)

@@ -36,0 +36,0 @@ cli.warn(`${cli.color.cmd('pg:credentials')} has recently changed. Please use ${cli.color.cmd('pg:credentials:url')} for the previous output.`)

@@ -47,3 +47,3 @@ 'use strict'

args: [{name: 'database', optional: true}],
flags: [{name: 'truncate', char: 't', description: 'truncates queries to 40 charaters'}],
flags: [{name: 'truncate', char: 't', description: 'truncates queries to 40 characters'}],
run: cli.command({preauth: true}, run),

@@ -50,0 +50,0 @@ }

@@ -12,22 +12,20 @@ 'use strict'

if (util.essentialPlan(db)) throw new Error('pg:upgrade is only available for follower databases on at least the Standard tier.')
if (util.legacyEssentialPlan(db)) throw new Error('pg:upgrade is only available for Essential-* databases and follower databases on Standard-tier and higher plans.')
let [replica, status] = await Promise.all([
heroku.get(`/client/v11/databases/${db.id}`, {host: host(db)}),
heroku.get(`/client/v11/databases/${db.id}/upgrade_status`, {host: host(db)}),
])
const replica = await heroku.get(`/client/v11/databases/${db.id}`, {host: host(db)})
if (status.error) throw new Error(status.error)
if (replica.following) {
let origin = util.databaseNameFromUrl(replica.following, await heroku.get(`/apps/${app}/config-vars`))
if (!replica.following) {
throw new Error('pg:upgrade is only available for follower databases on at least the Standard tier.')
}
await cli.confirmApp(app, flags.confirm, `WARNING: Destructive action
${cli.color.addon(db.name)} will be upgraded to a newer PostgreSQL version, stop following ${origin}, and become writable.
let origin = util.databaseNameFromUrl(replica.following, await heroku.get(`/apps/${app}/config-vars`))
This cannot be undone.`)
} else {
await cli.confirmApp(app, flags.confirm, `WARNING: Destructive action
${cli.color.addon(db.name)} will be upgraded to a newer PostgreSQL version.
await cli.confirmApp(app, flags.confirm, `WARNING: Destructive action
${cli.color.addon(db.name)} will be upgraded to a newer PostgreSQL version, stop following ${origin}, and become writable.
This cannot be undone.`)
}
This cannot be undone.`)
let data = {version: flags.version}

@@ -44,3 +42,3 @@

command: 'upgrade',
description: 'unfollow a database and upgrade it to the latest stable PostgreSQL version',
description: 'For an Essential-* plan, this command upgrades the database to the latest stable PostgreSQL version. For a Standard-tier and higher plan, this command unfollows the parent database before upgrading to the latest stable PostgreSQL version.',
help: 'to upgrade to another PostgreSQL version, use pg:copy instead',

@@ -47,0 +45,0 @@ needsApp: true,

@@ -145,4 +145,4 @@ 'use strict'

// Since Postgres backups are tied to the app and not the add-on, but
// we require *an* add-on to interact with, make sure that that add-on
// is attached to the right app.
// we require *an* add-on to interact with, make sure that add-on is
// attached to the right app.

@@ -149,0 +149,0 @@ debug(`fetching arbitrary app db on ${app}`)

{
"version": "8.10.0",
"version": "8.10.1-beta.0",
"commands": {

@@ -1162,3 +1162,3 @@ "pg:backups": {

"char": "t",
"description": "truncates queries to 40 charaters",
"description": "truncates queries to 40 characters",
"required": false,

@@ -2097,3 +2097,3 @@ "allowNo": false

"id": "pg:upgrade",
"description": "unfollow a database and upgrade it to the latest stable PostgreSQL version\nto upgrade to another PostgreSQL version, use pg:copy instead",
"description": "For an Essential-* plan, this command upgrades the database to the latest stable PostgreSQL version. For a Standard-tier and higher plan, this command unfollows the parent database before upgrading to the latest stable PostgreSQL version.\nto upgrade to another PostgreSQL version, use pg:copy instead",
"pluginName": "@heroku-cli/plugin-pg-v5",

@@ -2100,0 +2100,0 @@ "pluginType": "core",

{
"name": "@heroku-cli/plugin-pg-v5",
"description": "Heroku CLI plugin to manage Postgres.",
"version": "8.10.0",
"version": "8.10.1-beta.0",
"author": "Jeff Dickey (@dickeyxxx)",

@@ -36,3 +36,3 @@ "bugs": "https://github.com/heroku/cli/issues",

"heroku-client": "^3.0.7",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "^10.0.6",

@@ -60,2 +60,9 @@ "nyc": "^15.1.0",

"main": "index.js",
"mocha": {
"recursive": true,
"require": [
"./test/init.js"
],
"timeout": 180000
},
"repository": "heroku/cli",

@@ -70,3 +77,3 @@ "scripts": {

},
"gitHead": "25f094848d2296071835e4c3a5221fce0bd50d3e"
"gitHead": "13cd6605308d12380e1ac564a7812436bf70b29f"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc