Repository URL to install this package:
|
Version:
7.0.2 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const exotic_1 = require("exotic");
const config = new Map();
exports.config = config;
/**
* @todo maybe could scope configs for isolated tests
*/
const setConfig = (x) => {
Object.keys(x).forEach((key) => {
config.set(key, x[key]);
});
const pathParams = config.get('pathParams');
const routePathsList = exotic_1.isObj(pathParams)
? Object.values(pathParams)
: exotic_1.EMPTY_ARRAY;
config.set('routePathsList', routePathsList);
};
exports.setConfig = setConfig;
setConfig({
pathParams: {},
routePathsList: [],
});
//# sourceMappingURL=config.js.map