From 8f50eecc7c1ec7dda3363093b3b3e7f17ca9a692 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 14 Jun 2017 10:21:56 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:ms:20170412 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for meanjs/mean: https://snyk.io/test/github/meanjs/mean --- .snyk | 12 ++++++++++++ package.json | 12 ++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..9d92721e --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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': + - compression > debug > ms: + patched: '2017-06-14T10:21:56.484Z' + - mocha > debug > ms: + patched: '2017-06-14T10:21:56.484Z' + - socket.io > socket.io-adapter > debug > ms: + patched: '2017-06-14T10:21:56.484Z' diff --git a/package.json b/package.json index c6394e54..c4f0f9b5 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,9 @@ "test:e2e": "gulp test:e2e", "test:coverage": "gulp test:coverage", "postinstall": "npm run bower", - "generate-ssl-certs": "scripts/generate-ssl-certs.sh" + "generate-ssl-certs": "scripts/generate-ssl-certs.sh", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "acl": "~0.4.10", @@ -49,7 +51,7 @@ "express-session": "~1.15.2", "generate-password": "~1.3.0", "glob": "~7.1.1", - "helmet": "~2.3.0", + "helmet": "~3.6.1", "jasmine-core": "~2.5.2", "lodash": "~4.17.4", "lusca": "~1.4.1", @@ -72,7 +74,8 @@ "socket.io": "^2.0.2", "validator": "~7.0.0", "winston": "^2.3.1", - "wiredep": "~4.0.0" + "wiredep": "~4.0.0", + "snyk": "^1.34.3" }, "devDependencies": { "coveralls": "~2.13.0", @@ -115,5 +118,6 @@ "semver": "~5.3.0", "should": "~11.2.1", "supertest": "~2.0.0" - } + }, + "snyk": true }