(line: string)
| 31 | let pending = ''; |
| 32 | |
| 33 | const writeLine = (line: string): void => { |
| 34 | if (includeTokens.length > 0) { |
| 35 | const shouldInclude = includeTokens.some((token) => line.includes(token)); |
| 36 | if (!shouldInclude) return; |
| 37 | } |
| 38 | stream.write(redactChunk(line, options.redactionPatterns)); |
| 39 | }; |
| 40 | |
| 41 | return { |
| 42 | onChunk: (chunk: string) => { |
no test coverage detected