@contrast/config
Advanced tools
Comparing version 1.40.1 to 1.40.2
@@ -44,2 +44,4 @@ /* | ||
const isValid = (opt) => opt !== undefined && opt !== null && opt !== ''; | ||
module.exports = class Config { | ||
@@ -92,3 +94,3 @@ constructor(core) { | ||
const remoteValue = mapper(msg); | ||
if (remoteValue != null) { | ||
if (isValid(remoteValue)) { | ||
this._effectiveMap.set(name, { | ||
@@ -207,6 +209,6 @@ canonical_name: name, | ||
if (envValue != null) { | ||
if (isValid(envValue)) { | ||
source = ENVIRONMENT_VARIABLE; | ||
value = envValue; | ||
} else if (fileValue != null) { | ||
} else if (isValid(fileValue)) { | ||
source = USER_CONFIGURATION_FILE; | ||
@@ -213,0 +215,0 @@ value = fileValue; |
@@ -46,3 +46,3 @@ /* | ||
abbrev?: string; | ||
env?: string; | ||
env: string; | ||
arg: string; | ||
@@ -49,0 +49,0 @@ enum?: T[]; |
{ | ||
"name": "@contrast/config", | ||
"version": "1.40.1", | ||
"version": "1.40.2", | ||
"description": "An API for discovering Contrast agent configuration data", | ||
@@ -8,3 +8,6 @@ "license": "SEE LICENSE IN LICENSE", | ||
"files": [ | ||
"lib/" | ||
"lib/", | ||
"!*.test.*", | ||
"!tsconfig.*", | ||
"!*.map" | ||
], | ||
@@ -11,0 +14,0 @@ "main": "lib/index.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
4
52330
9
1404