(file: JSZipObject)
| 43 | } |
| 44 | |
| 45 | function readUncompressedSize(file: JSZipObject): number | undefined { |
| 46 | const data = (file as JSZipObject & { _data?: { uncompressedSize?: number } })._data |
| 47 | const size = data?.uncompressedSize |
| 48 | return typeof size === 'number' && Number.isFinite(size) ? size : undefined |
| 49 | } |
| 50 | |
| 51 | async function mapWithConcurrency<T>( |
| 52 | items: T[], |