From 9c77bd12c18d32683d4bd64722bf5a8d03be9fa9 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 22:18:51 +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 | 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..7facb11 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - css-modules-require-hook > lodash: + patched: '2019-07-03T22:18:49.811Z' diff --git a/package.json b/package.json index 14daf29..816dacc 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,9 @@ "package": "cross-env NODE_ENV=production node -r babel-register package.js", "package-all": "npm run package -- --all", "postinstall": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json", - "dev": "concurrently --kill-others \"npm run hot-server\" \"npm run start-hot\"" + "dev": "concurrently --kill-others \"npm run hot-server\" \"npm run start-hot\"", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "bin": { "electron": "./node_modules/.bin/electron" @@ -110,10 +112,12 @@ "react-dom": "^15.3.0", "react-input-range": "^0.9.1", "react-sortable": "^1.0.3", - "source-map-support": "^0.4.2" + "source-map-support": "^0.4.2", + "snyk": "^1.189.0" }, "devEngines": { "node": "4.x || 5.x || 6.x", "npm": "2.x || 3.x" - } + }, + "snyk": true }