diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..cc3ceac --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - lodash: + patched: '2020-05-07T02:45:29.395Z' diff --git a/package.json b/package.json index ae8f03d..09275a5 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": "^5.0.3", - "papaparse": "^4.1.2" - } + "papaparse": "^4.1.2", + "snyk": "^1.319.1" + }, + "snyk": true }