From a27765add799fab0c4e20f91ebae77f4e17e90eb Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 22 May 2017 08:22:15 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for thenoim/thinky-docset: https://snyk.io/test/github/thenoim/thinky-docset --- .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..ea0be18 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - mocha > debug > ms: + patched: '2017-05-22T08:22:14.963Z' diff --git a/package.json b/package.json index b6b4539..4fbba56 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "start": "node server", "build": "rimraf dist && cross-env NODE_ENV=production webpack --config ./webpack.production.config.js --progress --profile --colors", "eslint": "eslint .", - "jscs": "jscs ." + "jscs": "jscs .", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "angular": "^1.6.4", @@ -55,6 +57,8 @@ "style-loader": "^0.12.4", "webpack": "^1.12.2", "webpack-dev-middleware": "^1.2.0", - "webpack-hot-middleware": "^2.2.0" - } + "webpack-hot-middleware": "^2.2.0", + "snyk": "^1.30.1" + }, + "snyk": true }