gemini-configparser
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -31,2 +31,10 @@ const _ = require('lodash'); | ||
function getEnvPrefix(prefixes, envSubKey) { | ||
if (typeof prefixes === 'string') { | ||
return prefixes + envSubKey + '_'; | ||
} | ||
return prefixes.map(prefix => prefix + envSubKey + '_'); | ||
} | ||
function getNested(option, {namePrefix, envPrefix, cliPrefix}) { | ||
@@ -52,3 +60,3 @@ return (subKey) => { | ||
namePrefix: newName, | ||
envPrefix: `${envName}_`, | ||
envPrefix: getEnvPrefix(envPrefix, envSubKey), | ||
cliPrefix: `${cliFlag}-` | ||
@@ -55,0 +63,0 @@ } |
{ | ||
"name": "gemini-configparser", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Config parser module for gemini", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
16493
276