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 }