From c6fdf977f5ec78faa045f06a398e9ecef3286e16 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 2 Nov 2017 04:36:02 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:marked:20170907 Latest report for snyk/goof: https://snyk.io/test/github/snyk/goof --- .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 0000000000..a000b9b3cf --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.8.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:marked:20170907': + - marked: + patched: '2017-11-02T04:36:02.837Z' diff --git a/package.json b/package.json index f367c6babc..16582ec826 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "scripts": { "start": "node app.js", "build": "browserify -r jquery > public/js/bundle.js", - "cleanup": "mongo express-todo --eval 'db.todos.remove({});'" + "cleanup": "mongo express-todo --eval 'db.todos.remove({});'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "body-parser": "1.9.0", @@ -36,9 +38,11 @@ "optional": "^0.1.3", "st": "0.2.4", "stream-buffers": "^3.0.1", - "tap": "^5.7.0" + "tap": "^5.7.0", + "snyk": "^1.47.0" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }