diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..76e9ceb --- /dev/null +++ b/.snyk @@ -0,0 +1,20 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - express > debug > ms: + patched: '2017-05-25T06:18:02.301Z' + - express > send > debug > ms: + patched: '2017-05-25T06:18:02.301Z' + - express > serve-static > send > debug > ms: + patched: '2017-05-25T06:18:02.301Z' + - express > send > ms: + patched: '2017-05-25T06:18:02.301Z' + - express > serve-static > send > ms: + patched: '2017-05-25T06:18:02.301Z' + - socket.io > socket.io-adapter > debug > ms: + patched: '2017-05-25T06:18:02.301Z' + - socket.io > socket.io-client > debug > ms: + patched: '2017-05-25T06:18:02.301Z' diff --git a/package.json b/package.json index 86a89ab..865b5e7 100644 --- a/package.json +++ b/package.json @@ -3,23 +3,26 @@ "version": "0.0.1", "description": " Glome Notification Broker is a simple notification broker for Glome enabled services.", "scripts": { - "start": "node index.js" + "start": "node index.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", "url": "git@github.com:glome/gnb.git" }, - "scripts": { - "start": "node index.js" - }, "dependencies": { "debug": ">=2.1.0", "socket.io": ">=1.1.0", "redis": ">=0.12.1", - "express": ">=4.9.3" + "express": ">=4.9.3", + "snyk": "^1.30.1" }, - "maintainers": [{ - "name": "ferenc", - "email": "ferenc@glome.me" - }] + "maintainers": [ + { + "name": "ferenc", + "email": "ferenc@glome.me" + } + ], + "snyk": true }