heroku-cli-util
Advanced tools
Comparing version 6.1.10 to 6.1.11
@@ -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" |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
79196
25
2704
37