resolve-vars
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "resolve-vars", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simplified interface for resolving variables via Consul.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -31,4 +31,8 @@ /** | ||
*/ | ||
constructor() { | ||
this._consul = consul(); | ||
constructor(options = {}) { | ||
this._consul = consul(Object.assign({ | ||
host: process.env.RESOLVE_VARS_HOST || '127.0.0.1', | ||
port: process.env.RESOLVE_VARS_PORT || '8500' | ||
}, options)); | ||
this._vars = {}; | ||
@@ -121,2 +125,2 @@ } | ||
module.exports = Resolver; | ||
module.exports = Resolver; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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 2 instances 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
116
6556
2
1