From 5f120535b124d054134c13e52dd1a9760d461fc7 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 05:22:57 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 12 ++++++++++++ package.json | 10 +++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..308c7b8 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - lodash: + patched: '2019-07-04T05:22:55.673Z' + - react-jsonschema > lodash: + patched: '2019-07-04T05:22:55.673Z' + - react-jsonschema > material-ui > lodash: + patched: '2019-07-04T05:22:55.673Z' diff --git a/package.json b/package.json index 69bfdf0..8d1199d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "1.0.0", "description": "Boilerplate for MobX + React project with Typescript, ES6 compilation and hot code reloading", "scripts": { - "start": "node server.js" + "start": "node server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -37,6 +39,8 @@ "react-dom": "^15.1.0", "react-json-table": "^0.1.1", "react-jsonschema": "^0.4.1", - "react-jsonschema-form": "^0.38.0" - } + "react-jsonschema-form": "^0.38.0", + "snyk": "^1.189.0" + }, + "snyk": true }