@incanta/config
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -23,2 +23,14 @@ "use strict"; | ||
} | ||
else if (Array.isArray(obj[key])) { | ||
newObj[key] = obj[key].map((item) => { | ||
if (typeof item === "object" && | ||
!Array.isArray(item) && | ||
item !== null) { | ||
return Loader.convertKebabToCamelCase(item); | ||
} | ||
else { | ||
return item; | ||
} | ||
}); | ||
} | ||
else { | ||
@@ -25,0 +37,0 @@ newObj[key] = obj[key]; |
{ | ||
"name": "@incanta/config", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -24,2 +24,14 @@ import fs from "fs"; | ||
newObj[key] = Loader.convertKebabToCamelCase(obj[key]); | ||
} else if (Array.isArray(obj[key])) { | ||
newObj[key] = obj[key].map((item: any) => { | ||
if ( | ||
typeof item === "object" && | ||
!Array.isArray(item) && | ||
item !== null | ||
) { | ||
return Loader.convertKebabToCamelCase(item); | ||
} else { | ||
return item; | ||
} | ||
}); | ||
} else { | ||
@@ -26,0 +38,0 @@ newObj[key] = obj[key]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
41162
741