diff --git a/package.json b/package.json index 64af4089c..3b9fc42ce 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "tar": "4.4.8", "thirty-two": "1.0.2", "uglify-js": "3.4.9", - "unzip": "0.1.11", + "unzipper": "0.9.10", "util": "0.11.1", "webpack": "4.29.0", "winston": "2.4.4" diff --git a/src/controllers/debug.js b/src/controllers/debug.js index 43fe7fea6..0de8125c4 100644 --- a/src/controllers/debug.js +++ b/src/controllers/debug.js @@ -566,8 +566,8 @@ debugController.uploadPlugin = function (req, res) { // Everything Checks out lets make sure the file exists and then add it to the attachments array if (!fs.existsSync(object.filePath)) return res.status(500).send('File Failed to Save to Disk') - var unzip = require('unzip') - fs.createReadStream(object.filePath).pipe(unzip.Extract({ path: path.join(__dirname, '../../plugins') })) + var unzipper = require('unzipper') + fs.createReadStream(object.filePath).pipe(unzipper.Extract({ path: path.join(__dirname, '../../plugins') })) return res.sendStatus(200) }) diff --git a/src/settings/defaults.js b/src/settings/defaults.js index 5f7209abc..a6d9cb396 100644 --- a/src/settings/defaults.js +++ b/src/settings/defaults.js @@ -53,7 +53,7 @@ function downloadWin32MongoDBTools (callback) { ) { winston.debug('Windows platform detected. Downloading MongoDB Tools') fs.emptyDirSync(savePath) - var unzip = require('unzip') + var unzipper = require('unzipper') var file = fs.createWriteStream(path.join(savePath, filename)) http .get('http://storage.trudesk.io/tools/' + filename, function (response) { @@ -63,7 +63,7 @@ function downloadWin32MongoDBTools (callback) { }) file.on('close', function () { fs.createReadStream(path.join(savePath, filename)) - .pipe(unzip.Extract({ path: savePath })) + .pipe(unzipper.Extract({ path: savePath })) .on('close', function () { fs.unlink(path.join(savePath, filename), callback) })