diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..8c239f8 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - async > lodash: + patched: '2019-07-09T07:55:01.134Z' diff --git a/package.json b/package.json index c7bbe71..8fa321a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "node ./bin/www" + "start": "node ./bin/www", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -33,6 +35,8 @@ "request": "^2.78.0", "rethinkdb": "^2.3.3", "simple-service-registry": "^0.1.1", - "socket.io": "^1.4.8" - } + "socket.io": "^1.4.8", + "snyk": "^1.192.4" + }, + "snyk": true }