Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static load(config: CrudGlobalConfig = {}) {
if (isObjectFull(config.queryParser)) {
RequestQueryBuilder.setOptions(config.queryParser);
}
const auth = isObjectFull(config.auth) ? config.auth : {};
const query = isObjectFull(config.query) ? config.query : {};
const routes = isObjectFull(config.routes) ? config.routes : {};
const params = isObjectFull(config.params) ? config.params : {};
const serialize = isObjectFull(config.serialize) ? config.serialize : {};
CrudConfigService.config = deepmerge(
CrudConfigService.config,
{ auth, query, routes, params, serialize },
{ arrayMerge: (a, b, c) => b },
);
}
}