From 487da40c7aab2eead85ac64b8d8a7508c4a55a6a Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 27 Sep 2017 01:29:03 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 Latest report for linnovate/mean-cli: https://snyk.io/test/github/linnovate/mean-cli --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..94a07f5 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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:debug:20170905': + - mongoose > mquery > debug: + patched: '2017-09-27T01:29:03.082Z' diff --git a/package.json b/package.json index 5f53e99..a7668aa 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,8 @@ "progress": "^1.1.8", "prompt": "^1.0.0", "request": "^2.72.0", - "shelljs": "^0.7.0" + "shelljs": "^0.7.0", + "snyk": "^1.41.1" }, "devDependencies": { "jshint": "^2.5.10", @@ -66,11 +67,14 @@ "scripts": { "test": "node node_modules/.bin/mocha test/**/*.js -R spec", "lint": "jshint .", - "validate": "npm ls" + "validate": "npm ls", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "pre-commit": [ "lint", "validate", "test" - ] + ], + "snyk": true }