Comparing version 3.3.6 to 3.3.7
@@ -0,1 +1,7 @@ | ||
3.3.7 / 2022-01-11 | ||
================== | ||
* No new changes. 3.3.6 was not published to NPM in versioning mix-up. | ||
* Release notes are moving to Github Releas page going forward. | ||
3.3.6 / 2021-03-08 | ||
@@ -2,0 +8,0 @@ ================== |
@@ -1087,3 +1087,3 @@ // config.js (c) 2010-2020 Loren West and other contributors | ||
if (typeof(value) === 'string') { // We found a leaf variable name | ||
if (vars[value] !== undefined) { // if the vars provide a value set the value in the result map | ||
if (vars[value] !== undefined && vars[value] !== '') { // if the vars provide a value set the value in the result map | ||
util.setPath(result, pathTo.concat(prop), vars[value]); | ||
@@ -1093,3 +1093,3 @@ } | ||
else if (util.isObject(value)) { // work on the subtree, giving it a clone of the pathTo | ||
if ('__name' in value && '__format' in value && vars[value.__name] !== undefined) { | ||
if ('__name' in value && '__format' in value && vars[value.__name] !== undefined && vars[value.__name] !== '') { | ||
try { | ||
@@ -1096,0 +1096,0 @@ var parsedValue = util.parseString(vars[value.__name], value.__format); |
{ | ||
"name": "config", | ||
"version": "3.3.6", | ||
"version": "3.3.7", | ||
"main": "./lib/config.js", | ||
"description": "Configuration control for production node deployments", | ||
"author": "Loren West <open_source@lorenwest.com>", | ||
"homepage": "http://lorenwest.github.com/node-config", | ||
"homepage": "http://github.com/lorenwest/node-config.git", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "registry": "https://registry.npmjs.org/" |
@@ -58,2 +58,3 @@ // External libraries are lazy-loaded only if these file types exist. | ||
lazy: true, | ||
transpileOnly: true, | ||
compilerOptions: { | ||
@@ -140,3 +141,6 @@ allowJs: true, | ||
content += '\n'; | ||
return VisionmediaYaml.eval(Parser.stripYamlComments(content)); | ||
if (typeof VisionmediaYaml.eval === 'function') { | ||
return VisionmediaYaml.eval(Parser.stripYamlComments(content)); | ||
} | ||
return VisionmediaYaml.parse(Parser.stripYamlComments(content)); | ||
} | ||
@@ -143,0 +147,0 @@ else { |
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
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
92781
1778
0
1