(id: string, value: { value: string; start: number; end: number })
| 18 | } |
| 19 | |
| 20 | function span(id: string, value: { value: string; start: number; end: number }) { |
| 21 | return { |
| 22 | ...value, |
| 23 | value: redact("file-text", id, value.value), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | function diff(kind: string, diffs: { file?: string; patch?: string }[] | undefined) { |
| 28 | return diffs?.map((item, i) => ({ |