diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..51d3e55 --- /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: + - http-server > portfinder > async > lodash: + patched: '2020-05-01T00:07:20.586Z' diff --git a/package.json b/package.json index bfd4682..4f11cc6 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,17 @@ "description": "", "main": "index.js", "dependencies": { - "http-server": "^0.12.0" + "http-server": "^0.12.0", + "snyk": "^1.316.1" }, "devDependencies": { "http-server": "0.12.1" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "http-server ." + "start": "http-server .", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -22,5 +25,6 @@ "bugs": { "url": "https://github.com/educodar/newsletter/issues" }, - "homepage": "https://github.com/educodar/newsletter" + "homepage": "https://github.com/educodar/newsletter", + "snyk": true }