From 5b069dbb890cce26cbbff48f149815433f85fa52 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 29 Apr 2017 00:22:21 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:minimatch:20160620 Latest report for coer-portal/coer-webapp: https://snyk.io/test/github/coer-portal/coer-webapp --- .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..22e7d54 --- /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:minimatch:20160620': + - node-sass > sass-graph > scss-tokenizer > babel-core > minimatch: + patched: '2017-04-29T00:22:19.951Z' diff --git a/package.json b/package.json index 9a2a340..b53955f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "build:client": "./node_modules/.bin/webpack --progress --config webpack.client.config.babel.js", "watch:server": "./node_modules/.bin/webpack --progress --watch --config webpack.server.config.babel.js", "watch:client": "./node_modules/.bin/webpack --progress --watch --config webpack.client.config.babel.js", - "start": "node dist/server.bundle.js" + "start": "node dist/server.bundle.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -51,10 +53,12 @@ "style-loader": "^0.13.1", "webpack": "^2.2.1", "webpack-node-externals": "^1.5.4", - "whatwg-fetch": "^2.0.2" + "whatwg-fetch": "^2.0.2", + "snyk": "^1.29.0" }, "devDependencies": { "eslint": "^3.15.0", "eslint-plugin-react": "^6.9.0" - } + }, + "snyk": true }