Merge pull request #1236 from bbassie/chore/web-bundle-zip-zlib

Keep yauzl, browserify-zlib and assert out of the web interface
This commit is contained in:
Cooldude2606 authored and GitHub committed 2026-11-20 20:55:12 +00:00
commit e9a11013a4
16 files changed
+146 -74

No files matched your search

+1 -1
View File
@@ -828,7 +828,7 @@ async function uploadMod(req: Request, res: Response) {
// Pipe does not pass on an upload that was cut short.
await Promise.all([finished(file.stream), finished(writeStream)]);
const modInfo = await lib.ModInfo.fromModFile(tempFilePath);
const modInfo = await lib.ModStore.readModInfo(tempFilePath);
checkModName(modInfo.filename);
await fs.rename(tempFilePath, path.join(modsDirectory, modInfo.filename));
req.app.locals.controller.modStore.addMod(modInfo);