(input: T)
| 7 | const URL_RE = /https?:\/\/[^\s"'<>]+/gi; |
| 8 | |
| 9 | export function redactDiagnosticData<T>(input: T): T { |
| 10 | return redactValue(input, new WeakSet<object>()) as T; |
| 11 | } |
| 12 | |
| 13 | function redactValue(value: unknown, seen: WeakSet<object>, keyHint?: string): unknown { |
| 14 | if (value === null || value === undefined) return value; |
no test coverage detected