diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..2e5fef26b --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - lodash: + patched: '2019-07-08T04:05:47.857Z' + - lowdb > lodash: + patched: '2019-07-08T04:05:47.857Z' diff --git a/package.json b/package.json index 5781fd0bd..c7b5ec147 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "shortid": "^2.2.6", "underscore-db": "^0.12.1", "update-notifier": "^1.0.2", - "yargs": "^6.0.0" + "yargs": "^6.0.0", + "snyk": "^1.192.3" }, "devDependencies": { "babel-cli": "^6.10.1", @@ -52,7 +53,8 @@ "prepush": "npm t", "build": "babel src -d lib --copy-files", "toc": "markdown-toc -i README.md", - "prepublish": "npm run build" + "prepublish": "npm run snyk-protect; npm run build", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -88,5 +90,6 @@ }, "engines": { "node": ">= 0.12" - } + }, + "snyk": true }