From 00a5499a49dd791c09196dd28ef4001d8229274f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 4 May 2020 07:22:57 +0300 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c9cd2d7..bddfe14 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.317.0" }, "devDependencies": { "babel-cli": "^6.26.0", @@ -84,5 +86,6 @@ "react.js", "react-component", "react component" - ] + ], + "snyk": true }