( anyKey: unknown, anyValue?: unknown, sensitive?: string )
| 53 | }; |
| 54 | |
| 55 | export const dlog = ( |
| 56 | anyKey: unknown, |
| 57 | anyValue?: unknown, |
| 58 | sensitive?: string |
| 59 | ): void => { |
| 60 | if (!DEBUG) return; |
| 61 | |
| 62 | if ( |
| 63 | typeof anyKey === 'object' && |
| 64 | anyKey !== null && |
| 65 | anyValue === undefined |
| 66 | ) { |
| 67 | Object.entries(anyKey).forEach(([key, value]) => |
| 68 | logKeyValue(key, value, sensitive || key) |
| 69 | ); |
| 70 | } else { |
| 71 | logKeyValue(String(anyKey), anyValue, sensitive); |
| 72 | } |
| 73 | }; |
no test coverage detected