(sampleLastmods: Map<string, string>, sampleId: string)
| 89 | } |
| 90 | |
| 91 | function sampleLastmod(sampleLastmods: Map<string, string>, sampleId: string) { |
| 92 | const lastmod = sampleLastmods.get(sampleId); |
| 93 | |
| 94 | if (!lastmod) { |
| 95 | throw new Error(`Pattern route references missing sample detail ${sampleId}`); |
| 96 | } |
| 97 | |
| 98 | return lastmod; |
| 99 | } |
| 100 | |
| 101 | function buildRoutes() { |
| 102 | const catalog = readCatalogIndex(); |