Socket
Socket
Sign inDemoInstall

heroku-cli-util

Package Overview
Dependencies
26
Maintainers
4
Versions
155
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.2 to 8.0.0

24

lib/auth.js

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

let auth = [username, password].join(':')
auth = new Buffer(auth).toString('base64')
auth = Buffer.from(auth).toString('base64')
return `Basic ${auth}`

@@ -36,4 +36,4 @@ }

function saveToken ({email, token}) {
const Netrc = require('netrc-parser')
const netrc = new Netrc()
const netrc = require('netrc-parser').default
netrc.loadSync()
const hosts = [vars.apiHost, vars.httpGitHost]

@@ -156,9 +156,9 @@ hosts.forEach(host => {

const Netrc = require('netrc-parser')
const netrc = new Netrc()
if (netrc.machines.hasOwnProperty('api.heroku.com')) {
delete netrc.machines['api.heroku.com']
const netrc = require('netrc-parser').default
netrc.loadSync()
if (netrc.machines[vars.apiHost]) {
netrc.machines[vars.apiHost] = undefined
}
if (netrc.machines.hasOwnProperty('git.heroku.com')) {
delete netrc.machines['git.heroku.com']
if (netrc.machines[vars.httpGitHost]) {
netrc.machines[vars.httpGitHost] = undefined
}

@@ -193,6 +193,6 @@ netrc.save()

function token () {
const Netrc = require('netrc-parser')
const netrc = new Netrc()
const netrc = require('netrc-parser').default
netrc.loadSync()
if (process.env.HEROKU_API_KEY) return process.env.HEROKU_API_KEY
return netrc.machines[vars.apiHost].password
return netrc.machines[vars.apiHost] && netrc.machines[vars.apiHost].password
}

@@ -199,0 +199,0 @@

@@ -136,2 +136,6 @@ 'use strict'

const errors = [
'CacheError',
'CancelError',
'GotError',
'UnsupportedProtocolError',
'HTTPError',

@@ -138,0 +142,0 @@ 'MaxRedirectsError',

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

function ctrlc () {
reject('')
reject(new Error(''))
stop()

@@ -132,3 +132,3 @@ }

if (confirm === app) return resolve()
return reject(`Confirmation ${cli.color.bold.red(confirm)} did not match ${cli.color.bold.red(app)}. Aborted.`)
return reject(new Error(`Confirmation ${cli.color.bold.red(confirm)} did not match ${cli.color.bold.red(app)}. Aborted.`))
}

@@ -146,3 +146,3 @@ if (!message) {

}
return reject(`Confirmation did not match ${cli.color.bold.red(app)}. Aborted.`)
return reject(new Error(`Confirmation did not match ${cli.color.bold.red(app)}. Aborted.`))
})

@@ -149,0 +149,0 @@ })

{
"name": "heroku-cli-util",
"description": "Set of helpful CLI utilities",
"version": "7.0.2",
"version": "8.0.0",
"author": "Jeff Dickey (@dickeyxxx)",

@@ -16,4 +16,4 @@ "bugs": {

"co": "^4.6.0",
"got": "^6.3.0",
"heroku-client": "^3.0.5",
"got": "^8.0.3",
"heroku-client": "^3.0.6",
"lodash.ary": "^4.1.1",

@@ -31,22 +31,23 @@ "lodash.defaults": "^4.2.0",

"lodash.result": "^4.5.2",
"netrc-parser": "^2.0.5",
"netrc-parser": "^3.1.0",
"opn": "^3.0.3",
"strip-ansi": "^4.0.0",
"supports-color": "^5.1.0",
"tslib": "^1.9.0",
"tunnel-agent": "^0.6.0"
},
"devDependencies": {
"chai": "^3.0.0",
"codeclimate-test-reporter": "^0.4.0",
"hook-std": "^0.2.0",
"jsdoc": "*",
"mocha": "^3.2.0",
"mocha-junit-reporter": "^1.13.0",
"chai": "^4.1.2",
"codeclimate-test-reporter": "^0.5.0",
"hook-std": "^0.4.0",
"jsdoc": "3.5.5",
"mocha": "^5.0.0",
"mocha-junit-reporter": "^1.17.0",
"nock": "^9.0.4",
"nyc": "^10.1.2",
"nyc": "^11.4.1",
"proxyquire": "^1.7.11",
"sinon": "^1.17.7",
"standard": "^8.6.0",
"tmp": "^0.0.31",
"unexpected": "^10.25.0"
"standard": "^10.0.3",
"tmp": "^0.0.33",
"unexpected": "^10.37.0"
},

@@ -53,0 +54,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc