Node.js based forum software built for the modern web
chore: up archiver to 8.x
Barış Soner Uşaklı05e5a56731b7
diff --git a/install/package.json b/install/package.jsonindex 318e8b246c..5365ed95d3 100644--- a/install/package.json+++ b/install/package.json@@ -42,7 +42,7 @@"@textcomplete/textarea": "0.1.13","@xmldom/xmldom": "^0.9.10","ace-builds": "1.44.0",- "archiver": "7.0.1",+ "archiver": "8.0.0","async": "3.2.6","autoprefixer": "10.5.0","bcryptjs": "3.0.3",diff --git a/src/user/jobs/export-uploads.js b/src/user/jobs/export-uploads.jsindex 89c623211e..d095772582 100644--- a/src/user/jobs/export-uploads.js+++ b/src/user/jobs/export-uploads.js@@ -8,7 +8,7 @@ nconf.argv().env({const fs = require('fs');const path = require('path');-const archiver = require('archiver');+const { ZipArchive } = require('archiver');const winston = require('winston');process.env.NODE_ENV = process.env.NODE_ENV || 'production';@@ -33,7 +33,7 @@ process.on('message', async (msg) => {const user = require('../index');- const archive = archiver('zip', {+ const archive = new ZipArchive({zlib: { level: 9 }, // Sets the compression level.});