diff --git a/config/index.js b/config/index.js index 174f0da..0c0d79d 100644 --- a/config/index.js +++ b/config/index.js @@ -15,7 +15,7 @@ module.exports = (workdir, filter) => { }; let configs = []; enabled.forEach((config) => configs.push(require(fs.pathResolve(workdir, 'available', config)))); - fn.replaceDeep(configs, 'include', sources); + fn.replaceDeepKey('include', sources, configs); const filtered = configs.filter((config) => { return filter(config); }); diff --git a/package.json b/package.json index 7184acf..c391548 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webaccess", - "version": "1.6.1", + "version": "1.6.2", "description": "Access Management Reverse Proxy based on JWT.", "main": "index.js", "scripts": { @@ -23,7 +23,7 @@ "webaccess-actions": "1.6.0", "webaccess-middlewares": "1.6.0", "webaccess-servers": "1.6.0", - "zerodep": "1.3.0" + "zerodep": "1.4.0" }, "devDependencies": { "commander": "^8.2.0",