(value: unknown, isSensitive: boolean)
| 37 | SENSITIVE_WORDS.some(word => key.toLowerCase().includes(word)); |
| 38 | |
| 39 | const redactSensitiveData = (value: unknown, isSensitive: boolean): string => |
| 40 | isSensitive && !LOG_SENSITIVE_DATA |
| 41 | ? chalk.red('======REDACTED======') |
| 42 | : formatValue(value); |
| 43 | |
| 44 | const logKeyValue = (key: string, value: unknown, sensitive?: string): void => { |
| 45 | const formattedValue = redactSensitiveData( |
no test coverage detected