diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..efdaae3 --- /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: + - lodash: + patched: '2020-05-01T01:16:26.905Z' + - lowdb > lodash: + patched: '2020-05-01T01:16:26.905Z' + - mongoose > async > lodash: + patched: '2020-05-01T01:16:26.905Z' diff --git a/package.json b/package.json index a4f2355..d4ec01f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Starter project for learning gomix", "main": "server.js", "scripts": { - "start": "node server.js" + "start": "node server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "body-parser": "^1.18.2", @@ -14,9 +16,10 @@ "lowdb": "^0.14.0", "uuid": "^3.0.1", "winston": "^2.3.0", - "http-auth":"^3.2.3", + "http-auth": "^3.2.3", "shortid": "^2.2.8", - "mongoose": "^4.13.1" + "mongoose": "^4.13.1", + "snyk": "^1.316.1" }, "engines": { "node": "8.x" @@ -28,5 +31,6 @@ "node", "gomix", "express" - ] + ], + "snyk": true }