diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..46d9b49 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - apollo-server-express > apollo-server-core > lodash: + patched: '2020-05-01T02:14:01.314Z' + - winston > async > lodash: + patched: '2020-05-01T02:14:01.314Z' + - apollo-server-express > apollo-server-core > apollo-engine-reporting > lodash: + patched: '2020-05-01T02:14:01.314Z' diff --git a/package.json b/package.json index 4409810..ac9c306 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.316.1" }, "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 }