Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

config

Package Overview
Dependencies
Maintainers
2
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config - npm Package Compare versions

Comparing version 3.3.6 to 3.3.7

6

History.md

@@ -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 @@ ==================

4

lib/config.js

@@ -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 {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc