From b40996fce229f78d7adc39d9e3aad8ff46dce70e Mon Sep 17 00:00:00 2001 From: snyk-test Date: Mon, 8 Jul 2019 04:22:42 +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 | 9 ++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..d41a618e --- /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: + - lodash: + patched: '2019-07-08T04:22:40.727Z' diff --git a/package.json b/package.json index c9cd2d7d..d9180d28 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "buildwp": "webpack --config webpack-production.config.js --progress --profile --colors", "babel": "rm -rf dist && babel src/ --out-dir dist", "all": "npm run lint && npm run test", - "prepublish": "npm run babel" + "prepublish": "npm run snyk-protect; npm run babel", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -45,7 +46,8 @@ "lodash": "^4.17.10", "normalize-html-whitespace": "^0.2.0", "optionator": "^0.8.2", - "text-table": "^0.2.0" + "text-table": "^0.2.0", + "snyk": "^1.192.3" }, "devDependencies": { "babel-cli": "^6.26.0", @@ -84,5 +86,6 @@ "react.js", "react-component", "react component" - ] + ], + "snyk": true }