(filePath: string, data: ReportedFingerprintsFile)
| 113 | } |
| 114 | |
| 115 | function writeFile(filePath: string, data: ReportedFingerprintsFile): void { |
| 116 | try { |
| 117 | mkdirSync(dirname(filePath), { recursive: true }); |
| 118 | writeAtomic(filePath, JSON.stringify(data, null, 2)); |
| 119 | } catch { |
| 120 | // Best-effort — a missing dedup file just reverts us to "show the |
| 121 | // warning never" behavior. Not worth crashing the report flow. |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | export function recordReported( |
| 126 | filePath: string, |