Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

heroku-cli-addons

Package Overview
Dependencies
Maintainers
7
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-cli-addons - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

42

commands/addons/create.js

@@ -12,10 +12,17 @@ 'use strict'

key = key.replace(/^--/, '')
let val = args.shift()
if (!val) {
config[key] = true
} else if (val.startsWith('--')) {
config[key] = true
args.unshift(val)
let val
if (key.includes('=')) {
[key, ...val] = key.split('=')
val = val.join('=')
config[key] = val
} else {
config[key] = val
val = args.shift()
if (!val) {
config[key] = true
} else if (val.startsWith('--')) {
config[key] = true
args.unshift(val)
} else {
config[key] = val
}
}

@@ -26,11 +33,2 @@ }

function expandHPG (plan) {
if (!plan) throw new Error('Missing requested service or plan')
plan = plan.replace(/^hpg:/, 'heroku-postgresql:')
plan = plan.replace(/^heroku-postgresql:s-/, 'heroku-postgresql:standard-')
plan = plan.replace(/^heroku-postgresql:p-/, 'heroku-postgresql:premium-')
plan = plan.replace(/^heroku-postgresql:e-/, 'heroku-postgresql:enterprise-')
return plan
}
function * run (context, heroku) {

@@ -41,4 +39,4 @@ const util = require('../../lib/util')

let {name, as, confirm} = flags
let plan = {name: expandHPG(args.shift())}
let config = parseConfig(args)
let plan = {name: args[0]}
let config = parseConfig(args.slice(1))

@@ -56,4 +54,8 @@ let addon

}))
let configVars = addon.config_vars.map(c => cli.color.configVar(c)).join(', ')
cli.log(`Created ${cli.color.addon(addon.name)} as ${configVars}`)
if (addon.config_vars.length) {
let configVars = addon.config_vars.map(c => cli.color.configVar(c)).join(', ')
cli.log(`Created ${cli.color.addon(addon.name)} as ${configVars}`)
} else {
cli.log(`Created ${cli.color.addon(addon.name)}`)
}
if (addon.provision_message) cli.log(addon.provision_message)

@@ -60,0 +62,0 @@ cli.log(`Use ${cli.color.cmd('heroku addons:docs ' + addon.addon_service.name)} to view documentation`)

{
"name": "heroku-cli-addons",
"description": "`heroku addons:*` commands",
"version": "1.1.2",
"version": "1.1.3",
"author": "Bo Jeanes @bjeanes",

@@ -6,0 +6,0 @@ "bugs": {

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