UNPKG

redis-smq

Version:

A high-performance, reliable, and scalable message queue for Node.js.

12 lines 385 B
import _ from 'lodash'; import { defaultConfig } from './default-config.js'; export function parseLoggerConfig(userConfig) { if (typeof userConfig === 'boolean') { return { ...defaultConfig.logger, enabled: userConfig, }; } return _.merge({}, defaultConfig.logger, userConfig ?? {}); } //# sourceMappingURL=parse-logger-config.js.map