(key: string, value: unknown, sensitive?: string)
| 42 | : formatValue(value); |
| 43 | |
| 44 | const logKeyValue = (key: string, value: unknown, sensitive?: string): void => { |
| 45 | const formattedValue = redactSensitiveData( |
| 46 | value, |
| 47 | Boolean(sensitive) && isSensitiveData(sensitive || key) |
| 48 | ); |
| 49 | console.log( |
| 50 | `\n${chalk.blue('======')} 👀 ${chalk.bold(key)} 👀 ${chalk.blue('======')}` |
| 51 | ); |
| 52 | console.log(formattedValue); |
| 53 | }; |
| 54 | |
| 55 | export const dlog = ( |
| 56 | anyKey: unknown, |
no test coverage detected