(data: unknown, parsed: ParsedRules, currentPath = "")
| 254 | } |
| 255 | |
| 256 | function redactWithParsed(data: unknown, parsed: ParsedRules, currentPath = ""): unknown { |
| 257 | return redactValue(data, makeContext(parsed), currentPath) |
| 258 | } |
| 259 | |
| 260 | function redactValue(data: unknown, ctx: RedactionContext, currentPath: string): unknown { |
| 261 | if (data === null || data === undefined) return data |
no test coverage detected