Comparing version 2.12.6 to 2.12.7
{ | ||
"name": "tiged", | ||
"version": "2.12.6", | ||
"version": "2.12.7", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=8.0.0" |
@@ -42,5 +42,6 @@ const fs = require('fs-extra'); | ||
this.verbose = opts.verbose; | ||
this.proxy = process.env.https_proxy; // TODO allow setting via --proxy | ||
this.proxy = this._getHttpsProxy(); // TODO allow setting via --proxy | ||
this.subgroup = opts.subgroup; | ||
this.subdir = opts['sub-directory']; | ||
this.repo = parse(src); | ||
@@ -100,2 +101,14 @@ if (this.subgroup) { | ||
// Return the HTTPS proxy address. Try to get the value by environment | ||
// variable `https_proxy` or `HTTPS_PROXY`. | ||
// | ||
// TODO allow setting via --proxy | ||
_getHttpsProxy() { | ||
let result = process.env.https_proxy; | ||
if (!result) { | ||
result = process.env.HTTPS_PROXY; | ||
} | ||
return result | ||
} | ||
async _getDirectives(dest) { | ||
@@ -102,0 +115,0 @@ const directivesPath = path.resolve(dest, degitConfigName); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31738
725
7