()
| 35 | const DEFAULT_WINDOW_MS = 24 * 60 * 60 * 1000; |
| 36 | |
| 37 | function emptyFile(): ReportedFingerprintsFile { |
| 38 | return { schemaVersion: 1, entries: [] }; |
| 39 | } |
| 40 | |
| 41 | export function readReported(filePath: string): ReportedFingerprintsFile { |
| 42 | if (!existsSync(filePath)) return emptyFile(); |