diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..692d342 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - lodash: + patched: '2020-05-06T04:47:33.671Z' + - html-to-text > lodash: + patched: '2020-05-06T04:47:33.671Z' diff --git a/package.json b/package.json index bf935d0..0ee9313 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "lodash": "~4.17.11", "mongoose": "~5.7.7", "mongoose-simple-random": "~0.4.1", - "vision": "~5.4.4" + "vision": "~5.4.4", + "snyk": "^1.319.0" }, "devDependencies": { "code": "~5.2.0", @@ -75,6 +76,9 @@ "setup": "npm run pumpitup", "pumpitup": "node ./data/load-sample-data.js", "test": "cross-env NODE_ENV=test lab --assert code --leaks --coverage --lint", - "lint": "./node_modules/eslint/bin/eslint.js . --fix --ext .js" - } + "lint": "./node_modules/eslint/bin/eslint.js . --fix --ext .js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }