Skip to content

Commit

Permalink
Ensure mergeArchives await async calls
Browse files Browse the repository at this point in the history
  • Loading branch information
toebeann committed Mar 24, 2024
1 parent 2d2f034 commit bf5244f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ const mergeArchives = async (...archives: JSZip[]) => {
const merged = new JSZip();

for (const archive of archives) {
for (const [path, file] of Object.entries(archive.files)) {
merged.file(path, file.async("uint8array"));
for await (const [path, file] of Object.entries(archive.files)) {
merged.file(path, await file.async("uint8array"));
}
}

Expand Down

0 comments on commit bf5244f

Please sign in to comment.