From 5f057a4a433ca4292f8de882d049732732476291 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 21:48:16 +0000 Subject: [PATCH] fix: packages/react-jsx-highstock/.snyk & packages/react-jsx-highstock/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- packages/react-jsx-highstock/.snyk | 8 ++++++++ packages/react-jsx-highstock/package.json | 25 +++++++++++++++++------ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 packages/react-jsx-highstock/.snyk diff --git a/packages/react-jsx-highstock/.snyk b/packages/react-jsx-highstock/.snyk new file mode 100644 index 00000000..ee999b97 --- /dev/null +++ b/packages/react-jsx-highstock/.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: + - react-jsx-highcharts > lodash: + patched: '2019-07-03T21:48:14.312Z' diff --git a/packages/react-jsx-highstock/package.json b/packages/react-jsx-highstock/package.json index 659d7fa1..a168a4e9 100644 --- a/packages/react-jsx-highstock/package.json +++ b/packages/react-jsx-highstock/package.json @@ -11,13 +11,24 @@ "build": "cross-env NODE_ENV=development ./node_modules/.bin/webpack", "build:prod": "cross-env NODE_ENV=production ./node_modules/.bin/webpack -p", "lint": "./node_modules/.bin/eslint src", - "test": "cross-env NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel-core/register --require test/test-helper.js test/**/*.spec.js" + "test": "cross-env NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel-core/register --require test/test-helper.js test/**/*.spec.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Will Hawker", "contributors": [ - { "name": "Alex Mayants", "url": "https://github.com/AlexMayants" }, - { "name": "mrawdon", "url": "https://github.com/mrawdon" }, - { "name": "Ercan Akyürek", "url": "https://github.com/geforcefan" } + { + "name": "Alex Mayants", + "url": "https://github.com/AlexMayants" + }, + { + "name": "mrawdon", + "url": "https://github.com/mrawdon" + }, + { + "name": "Ercan Akyürek", + "url": "https://github.com/geforcefan" + } ], "license": "MIT", "repository": { @@ -39,7 +50,8 @@ "data" ], "dependencies": { - "react-jsx-highcharts": "^2.2.1" + "react-jsx-highcharts": "^2.2.1", + "snyk": "^1.189.0" }, "devDependencies": { "babel-cli": "^6.24.1", @@ -85,5 +97,6 @@ "prop-types": "^15.0.0", "react": "^15.0.0 || ^16.0.0", "react-dom": "^15.0.0 || ^16.0.0" - } + }, + "snyk": true }