Compare commits
2 Commits
2a1078a3a2
...
e11e94c61c
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | e11e94c61c | |
Derrick Hammer | 8875bdd2a7 |
|
@ -63,7 +63,7 @@ class Config {
|
|||
(0, bsert_1.default)(typeof json === "object", `Config file ${file} must be an object`);
|
||||
const settings = (0, deep_to_flat_object_1.default)(json);
|
||||
for (const key of Object.keys(settings)) {
|
||||
const value = json[key];
|
||||
const value = settings[key];
|
||||
let keyPath = key.split(".");
|
||||
let isArray = key.includes(".") &&
|
||||
keyPath.length > 1 &&
|
||||
|
|
|
@ -74,7 +74,7 @@ export default class Config {
|
|||
const settings = deepToFlatObject(json);
|
||||
|
||||
for (const key of Object.keys(settings)) {
|
||||
const value = json[key];
|
||||
const value = settings[key];
|
||||
|
||||
let keyPath = key.split(".");
|
||||
let isArray =
|
||||
|
|
Loading…
Reference in New Issue