diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..dd3caef --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-05-01T03:53:02.691Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-05-01T03:53:02.691Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-05-01T03:53:02.691Z' diff --git a/package.json b/package.json index 465736a..da6880a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "private": true, "scripts": { "start": "node ./bin/www", - "test": "echo ok" + "test": "echo ok", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "dependencies": { "body-parser": "~1.18.3", @@ -15,10 +17,12 @@ "pug": "^2.0.0-rc.2", "serve-favicon": "~2.5.0", "shortid": "^2.2.8", - "socket.io": "^2.0.3" + "socket.io": "^2.0.3", + "snyk": "^1.316.1" }, "description": "Collaborative online notepad", "main": "app.js", "author": "Peter Cunha", - "license": "MIT" + "license": "MIT", + "snyk": true }