@incanta/config
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -5,2 +5,3 @@ import Config from "./config"; | ||
parentNames?: string[]; | ||
loadedNames?: string[]; | ||
} | ||
@@ -7,0 +8,0 @@ export declare class Loader { |
@@ -127,2 +127,5 @@ "use strict"; | ||
if (parentFolder) { | ||
if (options.loadedNames?.includes(parentName)) { | ||
continue; | ||
} | ||
const parentOptions = Loader.readConfigSettings(parentFolder); | ||
@@ -132,2 +135,5 @@ (0, lodash_merge_1.default)(baseObj, Loader.loadRoot(parentFolder, { | ||
parentNames: parentOptions.parentNames, | ||
loadedNames: options.loadedNames | ||
? [...options.loadedNames, parentName] | ||
: [parentName], | ||
}, config)); | ||
@@ -134,0 +140,0 @@ } |
{ | ||
"name": "@incanta/config", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -12,2 +12,3 @@ import fs from "fs"; | ||
parentNames?: string[]; | ||
loadedNames?: string[]; | ||
} | ||
@@ -166,2 +167,6 @@ | ||
if (parentFolder) { | ||
if (options.loadedNames?.includes(parentName)) { | ||
continue; | ||
} | ||
const parentOptions = Loader.readConfigSettings(parentFolder); | ||
@@ -175,2 +180,5 @@ merge( | ||
parentNames: parentOptions.parentNames, | ||
loadedNames: options.loadedNames | ||
? [...options.loadedNames, parentName] | ||
: [parentName], | ||
}, | ||
@@ -177,0 +185,0 @@ config |
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
78438
1429