From 59e31bc38d6e3e75eed1c21e644a5cd835314d11 Mon Sep 17 00:00:00 2001 From: Justin Griffith Date: Thu, 8 Nov 2018 06:40:26 -0600 Subject: [PATCH] Upgrading packages to remove vulnerabilities from audit. Updated legacy _.contains function to _.includes. --- package.json | 6 +++--- test/unit/util/FileHeap.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index cb3684f5..d2b4a91d 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "cross-spawn": "4.0.2", "flaverr": "^1.0.0", "fs-extra": "0.30.0", - "lodash": "3.10.1", - "machinepack-process": "^2.0.2", + "lodash": "^4.17.11", + "machinepack-process": "^4.0.0", "parasails": "^0.7.1", "read": "1.0.7", "reportback": "^2.0.1", @@ -22,7 +22,7 @@ "devDependencies": { "checksum": "0.1.1", "eslint": "4.11.0", - "mocha": "3.0.2" + "mocha": "^5.2.0" }, "scripts": { "test": "npm run lint && npm run custom-tests", diff --git a/test/unit/util/FileHeap.js b/test/unit/util/FileHeap.js index 8639b41c..12ca3ed5 100755 --- a/test/unit/util/FileHeap.js +++ b/test/unit/util/FileHeap.js @@ -166,7 +166,7 @@ module.exports = function FileHeap(options) { * @returns whether the pathToNewFile has been allocated */ this.contains = function(pathToNewFile) { - return _.contains(_files, pathToNewFile); + return _.includes(_files, pathToNewFile); }; };