diff --git a/goof-yarn/.snyk b/goof-yarn/.snyk new file mode 100644 index 00000000..657263f3 --- /dev/null +++ b/goof-yarn/.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: + - tap > nyc > istanbul > handlebars > async > lodash: + patched: '2019-07-03T23:23:11.332Z' diff --git a/goof-yarn/package.json b/goof-yarn/package.json index 2300e7e8..62429c80 100644 --- a/goof-yarn/package.json +++ b/goof-yarn/package.json @@ -10,7 +10,9 @@ "scripts": { "start": "node app.js", "build": "browserify -r jquery > public/js/bundle.js", - "cleanup": "mongo express-todo --eval 'db.todos.remove({});'" + "cleanup": "mongo express-todo --eval 'db.todos.remove({});'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": "6.14.1" @@ -41,9 +43,11 @@ "stream-buffers": "^3.0.1", "tap": "^5.7.0", "adm-zip": "0.4.7", - "file-type": "^8.1.0" + "file-type": "^8.1.0", + "snyk": "^1.189.0" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }