From bf5244f374c6fbbbdbe4b61989b04f7a75c81b23 Mon Sep 17 00:00:00 2001 From: Tobey Blaber Date: Sun, 24 Mar 2024 14:00:03 +0000 Subject: [PATCH] Ensure mergeArchives await async calls --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index a6a6cff..ce01dc9 100644 --- a/main.ts +++ b/main.ts @@ -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")); } }