From d7545bcf41944c852ac8b57a9bf0c797630a07db Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 8 Jun 2018 07:02:12 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:ms:20170412 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:ms:20170412 Latest report for enterstudio/rtail: https://snyk.io/test/github/enterstudio/rtail --- .snyk | 11 +++++++++++ package.json | 12 ++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0a70a03 --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - socket.io > socket.io-adapter > socket.io-parser > debug: + patched: '2018-06-08T07:02:11.566Z' + 'npm:ms:20170412': + - socket.io > socket.io-adapter > socket.io-parser > debug > ms: + patched: '2018-06-08T07:02:11.566Z' diff --git a/package.json b/package.json index a56e722..b738dae 100644 --- a/package.json +++ b/package.json @@ -25,12 +25,13 @@ "json5": "^0.4.0", "moniker": "^0.1.2", "request": "^2.58.0", - "socket.io": "^1.1.0", + "socket.io": "2.0.2", "split": "^1.0.0", "strip-ansi": "^3.0.0", "through2-map": "^2.0.0", "update-notifier": "^0.5.0", - "yargs": "^3.14.0" + "yargs": "^3.14.0", + "snyk": "^1.82.1" }, "devDependencies": { "angular": "^1.3.15", @@ -70,8 +71,11 @@ "scripts": { "app": "DEBUG=rtail:*,api:* gulp app", "test": "NODE_ENV=test node --harmony test/runner.js", - "test:watch": "NODE_ENV=test nodemon --harmony test/runner.js" + "test:watch": "NODE_ENV=test nodemon --harmony test/runner.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Kilian Ciuffolo ", - "license": "MIT" + "license": "MIT", + "snyk": true }