(before: readonly IndexJob[], after: readonly IndexJob[])
| 90 | * after a reload of the page. |
| 91 | */ |
| 92 | export function finishedSince(before: readonly IndexJob[], after: readonly IndexJob[]): string[] { |
| 93 | const wasRunning = new Set(before.filter((job) => job.status === 'indexing').map((job) => job.slot)); |
| 94 | return after |
| 95 | .filter((job) => wasRunning.has(job.slot) && job.status !== 'indexing') |
| 96 | .map((job) => job.path); |
| 97 | } |
| 98 | |
| 99 | // ---------------------------------------------------------------- browse -- |
| 100 |
no outgoing calls
no test coverage detected