Skip to content

Commit

Permalink
Include size in validatePackedMod
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Apr 3, 2024
1 parent 558790a commit 47e4050
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mods.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
Expand Down

0 comments on commit 47e4050

Please sign in to comment.