From 65d6fca1908efe3525a947a266949c0e62c59bc5 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 28 Sep 2017 02:00:08 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 Latest report for saran-thala/datavisualization: https://snyk.io/test/github/saran-thala/datavisualization --- .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..6a2f4c9 --- /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:debug:20170905': + - mocha > debug: + patched: '2017-09-28T02:00:08.114Z' diff --git a/package.json b/package.json index bb84e52..eca5b13 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "for visualize CSV data", "main": "dataConverter.js", "scripts": { - "test": "mocha public/test" + "test": "mocha public/test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -19,6 +21,8 @@ "dependencies": { "lodash": "^4.16.4", "mocha": "^3.1.1", - "papaparse": "^4.1.2" - } + "papaparse": "^4.1.2", + "snyk": "^1.41.1" + }, + "snyk": true }