diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..2cbb0a1 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - mongoose > async > lodash: + patched: '2019-07-03T23:32:48.418Z' diff --git a/package.json b/package.json index 6a7ea9f..902b692 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "scripts": { "test": "mocha", "dev": "./node_modules/.bin/nodemon bin/server.js", - "start": "node bin/server.js --env=production" + "start": "node bin/server.js --env=production", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -54,7 +56,8 @@ "request": "^2.75.0", "statuses": "^1.3.0", "strip-json-comments": "^2.0.1", - "swiger": "0.0.2" + "swiger": "0.0.2", + "snyk": "^1.189.0" }, "devDependencies": { "mm": "^2.0.0", @@ -63,5 +66,6 @@ "should": "^11.1.0", "supertest": "^2.0.0" }, - "license": "MIT" + "license": "MIT", + "snyk": true }