@incanta/config
Advanced tools
Comparing version
@@ -92,2 +92,13 @@ "use strict"; | ||
applyBases(this.values); | ||
const removeIncantaConfigBase = (obj) => { | ||
for (const key of Object.keys(obj)) { | ||
if (key === "incantaConfigBase") { | ||
delete obj[key]; | ||
} | ||
else if (typeof obj[key] === "object" && obj[key] !== null) { | ||
removeIncantaConfigBase(obj[key]); | ||
} | ||
} | ||
}; | ||
removeIncantaConfigBase(this.values); | ||
this.values = loader_1.Loader.convertKebabToCamelCase(this.values, configFolderOptions); | ||
@@ -94,0 +105,0 @@ this.normalizedValues = this.normalizeObject(this.values, []); |
{ | ||
"name": "@incanta/config", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -146,2 +146,14 @@ import mergeWith from "lodash.mergewith"; | ||
const removeIncantaConfigBase = (obj: any): void => { | ||
for (const key of Object.keys(obj)) { | ||
if (key === "incantaConfigBase") { | ||
delete obj[key]; | ||
} else if (typeof obj[key] === "object" && obj[key] !== null) { | ||
removeIncantaConfigBase(obj[key]); | ||
} | ||
} | ||
}; | ||
removeIncantaConfigBase(this.values); | ||
this.values = Loader.convertKebabToCamelCase( | ||
@@ -148,0 +160,0 @@ this.values, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
89701
1.33%1616
1.32%