wild-config
Advanced tools
Comparing version 1.3.4 to 1.3.5
11
index.js
@@ -232,5 +232,5 @@ /* eslint no-console: 0, global-require: 0 */ | ||
if (typeof eParent[key] === 'number') { | ||
cParent[key] = Number(cParent[key]); | ||
} else if (typeof eParent[key] === 'boolean') { | ||
if (typeof cParent[key] === 'number') { | ||
eParent[key] = Number(eParent[key]); | ||
} else if (typeof cParent[key] === 'boolean') { | ||
if (!isNaN(value)) { | ||
@@ -242,8 +242,7 @@ value = Number(value); | ||
let falsy = ['false', 'null', 'undefined', 'no', '0', '', 0]; | ||
cParent[key] = falsy.includes(value) ? false : !!value; | ||
} else { | ||
cParent[key] = eParent[key]; | ||
eParent[key] = falsy.includes(value) ? false : !!value; | ||
} | ||
}); | ||
}; | ||
if (Object.keys(argv || {}).length) { | ||
@@ -250,0 +249,0 @@ walkConfig(data, argv); |
{ | ||
"name": "wild-config", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Configuration management module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
15218
273