config-mapper-env
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -7,2 +7,11 @@ const _ = require('lodash'); | ||
// array get converted to objects when mapped, which may lead to hard-to-discover bugs | ||
if (Array.isArray(value)) { | ||
if (value.some(item => _.isObject(item))) { | ||
console.warn(`Warning: Mapping individual array items to environment variables is not supported. You may override the whole array via ${key} or use an object with numeric keys instead.`); | ||
} | ||
return key; | ||
} | ||
// nested object | ||
@@ -9,0 +18,0 @@ if (_.isObject(value)) { |
{ | ||
"name": "config-mapper-env", | ||
"description": "Maps configuration from config module files to environment variables.", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"homepage": "https://github.com/MartinKolarik/config-mapper-env/", | ||
@@ -6,0 +6,0 @@ "github": "https://github.com/MartinKolarik/config-mapper-env/", |
3095
26