diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4880c67 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.22.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:negotiator:20160616': + - karma > connect > compression > accepts > negotiator: + patched: '2021-10-07T20:26:37.508Z' diff --git a/package.json b/package.json index 1161ced..74965be 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "dist/mentio.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "coveralls": "gulp coveralls" + "coveralls": "gulp coveralls", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -49,5 +51,9 @@ "karma-script-launcher": "^0.1.0", "karma-threshold-reporter": "~0.1.7", "open": "0.0.5" + }, + "snyk": true, + "dependencies": { + "@snyk/protect": "latest" } }