Socket
Socket
Sign inDemoInstall

heroku-cli-util

Package Overview
Dependencies
22
Maintainers
31
Versions
155
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.10 to 6.1.11

lib/vars.js

9

lib/auth.js

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

const cli = require('..')
const vars = require('./vars')

@@ -37,6 +38,6 @@ function basicAuth (username, password) {

const netrc = new Netrc()
const hosts = ['api.heroku.com', 'git.heroku.com']
const hosts = [vars.apiHost, vars.gitHost]
hosts.forEach(host => {
netrc.machines[host].login = email
netrc.machines[host].password = token
netrc.machines[vars.apiHost].login = email
netrc.machines[vars.apiHost].password = token
})

@@ -114,3 +115,3 @@ netrc.save()

if (process.env.HEROKU_API_KEY) return process.env.HEROKU_API_KEY
return netrc.machines['api.heroku.com'].password
return netrc.machines[vars.apiHost].password
}

@@ -117,0 +118,0 @@

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

const auth = require('./auth')
const vars = require('./vars')

@@ -15,3 +16,3 @@ function apiMiddleware (response, cb) {

function heroku (context) {
let host = context.apiUrl || 'https://api.heroku.com'
let host = context.apiUrl || vars.apiUrl || 'https://api.heroku.com'
let opts = {

@@ -18,0 +19,0 @@ userAgent: context.version,

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

@@ -64,2 +64,3 @@ "bugs": {

"standard": {
"env": "mocha",
"ignore": [

@@ -66,0 +67,0 @@ "lib/linewrap.js"

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