diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c65cefb --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - mongoose > async > lodash: + patched: '2020-04-30T22:26:11.786Z' diff --git a/package.json b/package.json index 20609aa..3666a92 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "test": "node scripts/test.js", "test:watch": "nodemon --watch . --exec 'yarn test'", "start:watch": "nodemon --watch . --exec 'yarn start'", - "lint": "eslint ." + "lint": "eslint .", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "author": "", "license": "ISC", @@ -37,7 +39,8 @@ "mongoose": "^5.1.4", "morgan": "^1.9.0", "pluralize": "^7.0.0", - "swagger-ui-express": "^3.0.9" + "swagger-ui-express": "^3.0.9", + "snyk": "^1.316.1" }, "devDependencies": { "chai": "^4.1.2", @@ -51,5 +54,6 @@ "sinon": "^5.0.0", "sinon-chai": "^3.1.0", "supertest": "^3.1.0" - } + }, + "snyk": true }