diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..62d2eb6 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - apollo-server-express > apollo-server-core > lodash: + patched: '2019-07-04T02:13:07.356Z' + - winston > async > lodash: + patched: '2019-07-04T02:13:07.356Z' + - apollo-server-express > apollo-server-core > apollo-engine-reporting > lodash: + patched: '2019-07-04T02:13:07.356Z' diff --git a/package.json b/package.json index 4409810..21c651d 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "lodash.clonedeep": "4.5.0", "lodash.isequal": "4.5.0", "morgan": "1.9.1", - "winston": "3.1.0" + "winston": "3.1.0", + "snyk": "^1.189.0" }, "devDependencies": { "@babel/cli": "7.0.0", @@ -64,7 +65,9 @@ "scripts": { "start": "nps", "test": "nps test", - "help": "nps help" + "help": "nps help", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "config": { "cz-emoji": { @@ -88,5 +91,6 @@ "bugs": { "url": "https://github.com/Falieson/2018-typescript-module/issues" }, - "homepage": "https://github.com/Falieson/2018-typescript-module#readme" + "homepage": "https://github.com/Falieson/2018-typescript-module#readme", + "snyk": true }