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
33
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.6.0-beta.0 to 8.6.0-beta.1

4

commands/links/create.js

@@ -8,2 +8,3 @@ 'use strict'

const fetcher = require('../../lib/fetcher')(heroku)
const util = require('../../lib/util')
const addons = require('@heroku-cli/plugin-addons').resolve

@@ -23,2 +24,5 @@ let {app, args, flags} = context

if (util.essentialPlan(db)) throw new Error('pg:links isn’t available for Essential-tier databases.')
if (util.essentialPlan(target)) throw new Error('pg:links isn’t available for Essential-tier databases.')
await cli.action(`Adding link from ${cli.color.addon(target.name)} to ${cli.color.addon(db.name)}`, (async function () {

@@ -25,0 +29,0 @@ let link = await heroku.post(`/client/v11/databases/${db.id}/links`, {

@@ -8,2 +8,3 @@ 'use strict'

const fetcher = require('../../lib/fetcher')(heroku)
const util = require('../../lib/util')
let {app, args, flags} = context

@@ -13,2 +14,4 @@

if (util.essentialPlan(db)) throw new Error('pg:links isn’t available for Essential-tier databases.')
await cli.confirmApp(app, flags.confirm, `WARNING: Destructive action

@@ -15,0 +18,0 @@ This command will affect the database ${cli.color.addon(db.name)}

3

lib/util.js

@@ -132,2 +132,3 @@ 'use strict'

}
// eslint-disable-next-line no-implicit-coercion

@@ -140,3 +141,3 @@ exports.essentialNumPlan = a => !!a.plan.name.split(':')[1].match(/^essential/)

// eslint-disable-next-line no-implicit-coercion
exports.essentialPlan = (a) => {
exports.essentialPlan = a => {
return this.essentialNumPlan(a) || this.legacyEssentialPlan(a)

@@ -143,0 +144,0 @@ }

{
"version": "8.6.0-beta.0",
"version": "8.6.0-beta.1",
"commands": {

@@ -4,0 +4,0 @@ "pg:backups": {

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

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

},
"gitHead": "94d0001437528b8a009032dbbb94395d1fd20977"
"gitHead": "5467dbecffb4071230c5e7a99627ad88bf9abe1a"
}
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