From 47e405069b6f8bf32f6e6fd94e8f50c81a8f3ad0 Mon Sep 17 00:00:00 2001 From: Justin Mayfield Date: Wed, 3 Apr 2024 14:58:58 -0600 Subject: [PATCH] Include size in validatePackedMod --- src/mods.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mods.mjs b/src/mods.mjs index b1bc2d53..4b539713 100644 --- a/src/mods.mjs +++ b/src/mods.mjs @@ -419,9 +419,8 @@ export async function validatePackedMod(zipUrl) { fs.writeFileSync(tmpFile, data); try { const {manifest, zip, hash} = await parsePackedMod(tmpFile); - debugger; zip.close(); - return {manifest, hash}; + return {manifest, hash, size: data.byteLength}; } finally { fs.rmSync(tmpFile, {maxRetries: 5}); }