New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wild-config

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wild-config - npm Package Compare versions

Comparing version 1.6.1 to 1.7.0

14

index.js

@@ -226,3 +226,3 @@ /* eslint no-console: 0, global-require: 0 */

}
if (eParent[key] === 'object') {
if (typeof eParent[key] === 'object') {
if (!eParent[key]) {

@@ -232,12 +232,8 @@ // null

}
if (Array.isArray(cParent[key])) {
if (Array.isArray(eParent[key])) {
return;
}
// convert to array
eParent[key] = eParent[key].trim().split(/\s*,\s*/);
return;
}
return walkConfig(cParent[key], eParent[key]);
}
if (typeof eParent[key] === 'string' && Array.isArray(cParent[key])) {
eParent[key] = eParent[key].trim().split(/\s*,\s*/);
return;
}
}

@@ -244,0 +240,0 @@

{
"name": "wild-config",
"version": "1.6.1",
"version": "1.7.0",
"description": "Configuration management module",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,3 +26,3 @@ # wild-config

When using environment variables to provide config values, only such keys are merged that already exist in the configuration object, so you have to define a default value in the config file. Use underscores instead of dots for subkeys.
When using environment variables to provide config values, only such keys are merged that already exist in the configuration object, so you have to define a default value in the config file. Use underscores instead of dots for subkeys. Note that all underscores are interpreted as dots when parsing, which means keys with underscores can't be overriden with environment variables.

@@ -103,2 +103,3 @@ Example _config/default.toml_:

- If the config file returns an array, then the array value will become the value of the parent key of the directive only if there are no other subkeys at the same level as the directive
- In case of duplicate keys, included file will always override the values regardless if `@include` is placed before or after the declaration
- Special value `{ENV}` is replaced in all file paths by the NODE_ENV value

@@ -105,0 +106,0 @@

Sorry, the diff of this file is not supported yet

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