@men-mvc/config
Advanced tools
Comparing version 0.55.0 to 0.56.0
@@ -109,2 +109,10 @@ "use strict"; | ||
} | ||
case types_1.EnvVarDataType.BOOLEAN: { | ||
let booleanValue = envVarValue.toLowerCase() === 'false' || | ||
envVarValue.toLowerCase() === '0' | ||
? false | ||
: !!envVarValue; | ||
lodash_1.default.set(appProjectConfig, key, booleanValue); | ||
break; | ||
} | ||
default: { | ||
@@ -111,0 +119,0 @@ // string |
@@ -5,3 +5,4 @@ export declare enum EnvVarDataType { | ||
STRING_ARRAY = "string_array", | ||
NUMBER_ARRAY = "number_array" | ||
NUMBER_ARRAY = "number_array", | ||
BOOLEAN = "boolean" | ||
} |
@@ -10,2 +10,3 @@ "use strict"; | ||
EnvVarDataType["NUMBER_ARRAY"] = "number_array"; | ||
EnvVarDataType["BOOLEAN"] = "boolean"; | ||
})(EnvVarDataType = exports.EnvVarDataType || (exports.EnvVarDataType = {})); |
{ | ||
"name": "@men-mvc/config", | ||
"version": "0.55.0", | ||
"version": "0.56.0", | ||
"description": "Config package for Men MVC framework.", | ||
@@ -49,3 +49,3 @@ "private": false, | ||
"license": "MIT", | ||
"gitHead": "2541fc2ba8aef89123358467a46186f2daa63640" | ||
"gitHead": "ac4b4350e014886cc304aaf30a2b0bf8c4fae954" | ||
} |
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
27877
669