diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..adf3da0b --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - lru-diskcache > lodash: + patched: '2019-03-30T06:52:14.835Z' diff --git a/package.json b/package.json index 48eae3bd..f64ace14 100644 --- a/package.json +++ b/package.json @@ -8,23 +8,24 @@ "dependencies": { "analytics-node": "2.1.1", "basic-auth": "1.0.3", - "body-parser": "1.12.3", + "body-parser": "1.18.2", "destroy": "1.0.3", "express": "^4.13.3", "express-useragent": "0.1.9", "feed": "^0.3.0", "github-webhook-handler": "0.5.0", - "lodash": "3.7.0", + "lodash": "4.17.11", "lru-diskcache": "1.1.1", - "octocat": "0.10.2", + "octocat": "1.0.0", "q": "1.2.0", - "request": "2.60.0", + "request": "2.82.0", "semver": "5.0.1", "stream-res": "1.0.1", "strip-bom": "2.0.0", "understudy": "4.1.0", "urljoin.js": "0.1.0", - "uuid": "2.0.1" + "uuid": "2.0.1", + "snyk": "^1.143.5" }, "devDependencies": { "mocha": "1.18.2", @@ -45,6 +46,9 @@ }, "scripts": { "start": "node bin/web.js", - "test": "mocha --reporter list" - } + "test": "mocha --reporter list", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }