From 88e6a3e05b021b816605f6c9662af9c7d55a8433 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 12 Oct 2017 16:17:09 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:uglify-js:20151024 Latest report for itmoh/node-mentoring-express-mongo: https://snyk.io/test/github/itmoh/node-mentoring-express-mongo Some vulnerabilities weren't fixed or ignored, and so will still fail the Snyk test report. --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0aab60d --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:uglify-js:20151024': + - jade > transformers > uglify-js: + patched: '2017-10-12T16:17:09.077Z' diff --git a/package.json b/package.json index 692ad63..c2039c5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "express.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "", "license": "ISC", @@ -15,6 +17,8 @@ "jade": "^1.11.0", "lodash": "^4.0.1", "mongoose": "^4.4.6", - "q": "^1.4.1" - } + "q": "^1.4.1", + "snyk": "^1.42.6" + }, + "snyk": true }