diff --git a/packages/reaction-ui/.snyk b/packages/reaction-ui/.snyk new file mode 100644 index 00000000000..4a690aae524 --- /dev/null +++ b/packages/reaction-ui/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - react-color > lodash: + patched: '2020-05-01T01:32:33.440Z' diff --git a/packages/reaction-ui/package.json b/packages/reaction-ui/package.json index 7e5e78ebde8..5a5b1cc5915 100644 --- a/packages/reaction-ui/package.json +++ b/packages/reaction-ui/package.json @@ -11,7 +11,9 @@ }, "main": "main.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Reaction Commerce", "license": "GPL-3.0", @@ -23,12 +25,13 @@ "react-textarea-autosize": "3.3.0", "react-color": "1.3.6", "sortablejs": "1.4.2", - "react-dom": "0.14.7", "postcss": "5.0.14", "postcss-js": "0.1.1", "autoprefixer": "6.3.1", "css-annotation": "0.6.2", "tether-drop": "1.4.2", - "tether-tooltip": "1.2.0" - } + "tether-tooltip": "1.2.0", + "snyk": "^1.316.1" + }, + "snyk": true }