diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..0d952c60 --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# 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: + - eslint > lodash: + patched: '2019-07-04T22:04:58.099Z' + - eslint-plugin-import > lodash: + patched: '2019-07-04T22:04:58.099Z' + - eslint > inquirer > lodash: + patched: '2019-07-04T22:04:58.099Z' + - eslint > table > lodash: + patched: '2019-07-04T22:04:58.099Z' + - eslint-plugin-ava > enhance-visitors > lodash: + patched: '2019-07-04T22:04:58.099Z' diff --git a/package.json b/package.json index e1bf27f2..eb50cc6d 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,9 @@ }, "scripts": { "test": "xo && nyc ava", - "coveralls": "nyc report --reporter=text-lcov | coveralls" + "coveralls": "nyc report --reporter=text-lcov | coveralls", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "files": [ "index.js", @@ -89,7 +91,8 @@ "resolve-cwd": "^1.0.0", "resolve-from": "^2.0.0", "update-notifier": "^1.0.0", - "xo-init": "^0.4.0" + "xo-init": "^0.4.0", + "snyk": "^1.192.0" }, "devDependencies": { "ava": "*", @@ -105,5 +108,6 @@ }, "xo": { "esnext": true - } + }, + "snyk": true }