Function
buildArchiveEntry
({
name = 'image.jpg',
size = 100,
lastModified = 0,
extract = () => Promise.resolve(buildFile(name)),
}: ArchiveEntryBuilderOptions = {})
Source from the content-addressed store, hash-verified
| 532 | } |
| 533 | |
| 534 | export function buildArchiveEntry({ |
| 535 | name = 'image.jpg', |
| 536 | size = 100, |
| 537 | lastModified = 0, |
| 538 | extract = () => Promise.resolve(buildFile(name)), |
| 539 | }: ArchiveEntryBuilderOptions = {}): ArchiveEntry { |
| 540 | return { |
| 541 | name, |
| 542 | size, |
| 543 | lastModified, |
| 544 | extract, |
| 545 | }; |
| 546 | } |
| 547 | |
| 548 | export function buildArchiveReader({ |
| 549 | getFilesArray = () => Promise.resolve<ArchiveFileEntry[]>([]), |