heroku-cli-util
Advanced tools
Comparing version 6.1.11 to 6.1.12
@@ -37,6 +37,6 @@ 'use strict' | ||
const netrc = new Netrc() | ||
const hosts = [vars.apiHost, vars.gitHost] | ||
const hosts = [vars.apiHost, vars.httpGitHost] | ||
hosts.forEach(host => { | ||
netrc.machines[vars.apiHost].login = email | ||
netrc.machines[vars.apiHost].password = token | ||
netrc.machines[host].login = email | ||
netrc.machines[host].password = token | ||
}) | ||
@@ -43,0 +43,0 @@ netrc.save() |
@@ -19,4 +19,12 @@ 'use strict' | ||
} | ||
get httpGitHost () { | ||
if (this.env.HEROKU_GIT_HOST) return this.env.HEROKU_GIT_HOST | ||
if (this.host.startsWith('http')) { | ||
const u = url.parse(this.host) | ||
if (u.host) return u.host | ||
} | ||
return `git.${this.host}` | ||
} | ||
} | ||
module.exports = new Vars(process.env) |
{ | ||
"name": "heroku-cli-util", | ||
"description": "Set of helpful CLI utilities", | ||
"version": "6.1.11", | ||
"version": "6.1.12", | ||
"author": "Jeff Dickey (@dickeyxxx)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
79422
2712
36