Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function normalizeConfiguration(cfg) {
return Util.withSnakeCaseKeys(
formatObject(compact(pick(cfg, configuration)), {
secure: v => (typeof v === "boolean" ? v : v === "true")
})
);
}
export function normalizeConfiguration(cfg) {
return Util.withSnakeCaseKeys(
formatObject(normalizeObject(pick(cfg, configuration)), {
secure: v => (typeof v === "boolean" ? v : v === "true")
})
);
}
export function normalizeTransformation(cfg) {
return Util.withSnakeCaseKeys(normalizeObject(pick(cfg, transformation)));
}
export function normalizeTransformation(cfg) {
return Util.withSnakeCaseKeys(compact(pick(cfg, transformation)));
}