From 004fa050bb0bfe6ed0cc4be22700ab3927ef2219 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 26 Jun 2018 00:36:27 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:tunnel-agent:20170305 --- .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..a796ab1 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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:tunnel-agent:20170305': + - node-sass-chokidar > node-sass > request > tunnel-agent: + patched: '2018-06-26T00:36:24.967Z' diff --git a/package.json b/package.json index a85f90e..4f12b6e 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "react-slick": "^0.15.4", "react-toastr": "^3.0.0", "socket.io-client": "^2.0.4", - "toastr": "^2.1.2" + "toastr": "^2.1.2", + "snyk": "^1.85.0" }, "scripts": { "start-js": "react-scripts start", @@ -26,6 +27,9 @@ "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", "build-css": "node-sass-chokidar src/ -o src/", - "watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive" - } + "watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }