( items: ReadonlyArray<Record<string, unknown>>, )
| 158 | } |
| 159 | |
| 160 | function stripCacheControl( |
| 161 | items: ReadonlyArray<Record<string, unknown>>, |
| 162 | ): unknown[] { |
| 163 | return items.map(item => { |
| 164 | if (!('cache_control' in item)) return item |
| 165 | const { cache_control: _, ...rest } = item |
| 166 | return rest |
| 167 | }) |
| 168 | } |
| 169 | |
| 170 | function computeHash(data: unknown): number { |
| 171 | const str = jsonStringify(data) |