From d8ff320173aad02e4d49bab098da45900ac36034 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 08:26:17 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 14 ++++++++++++++ package.json | 10 +++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4a4cae6 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - lodash: + patched: '2019-07-04T08:26:15.778Z' + - async > lodash: + patched: '2019-07-04T08:26:15.778Z' + - mongodb-extended-json > async > lodash: + patched: '2019-07-04T08:26:15.778Z' + - hbs > handlebars > async > lodash: + patched: '2019-07-04T08:26:15.778Z' diff --git a/package.json b/package.json index 6861ea9..62c7861 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,9 @@ "packageOsx": "electron-packager ./ adminMongo --out=releases/ --platform=darwin --arch=x64 --prune --overwrite --ignore=releases/* --icon=public/logo.icns", "packageWin32": "electron-packager ./ adminMongo --out=releases/ --platform=win32 --arch=ia32 --prune --overwrite --ignore=releases/* --icon=public/logo.ico", "packageWin64": "electron-packager ./ adminMongo --out=releases/ --platform=win32 --arch=x64 --prune --overwrite --ignore=releases/* --icon=public/logo.ico", - "packageLinux": "electron-packager ./ adminMongo --out=releases/ --platform=linux --arch=ia32 --prune --overwrite --ignore=releases/* --icon=public/logo.ico" + "packageLinux": "electron-packager ./ adminMongo --out=releases/ --platform=linux --arch=ia32 --prune --overwrite --ignore=releases/* --icon=public/logo.ico", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "mongo", @@ -71,7 +73,8 @@ "ncp": "^2.0.0", "nedb": "^1.8.0", "node-delete": "^0.1.2", - "serve-favicon": "~2.4.3" + "serve-favicon": "~2.4.3", + "snyk": "^1.189.0" }, "license": "MIT", "devDependencies": { @@ -86,5 +89,6 @@ "mocha": "^2.5.3", "mocha-jsdom": "^1.1.0", "supertest": "^1.2.0" - } + }, + "snyk": true }