diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..0a23b1d0a5 --- /dev/null +++ b/.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: + - lodash: + patched: '2020-05-01T03:43:05.616Z' diff --git a/package.json b/package.json index aa7dc1a015..8610b38d35 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,9 @@ "pretest": "yarn satisfied && gulp build:docs:docgen", "test": "cross-env NODE_ENV=test jest --coverage", "test:watch": "yarn test --watchAll", - "generate:component": "gulp generate:component" + "generate:component": "gulp generate:component", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "lint-staged": { "**/*.{ts,tsx}": [ @@ -89,7 +91,8 @@ "lodash": "^4.17.10", "normalize.css": "^8.0.0", "prop-types": "^15.6.1", - "react-fela": "^7.2.0" + "react-fela": "^7.2.0", + "snyk": "^1.316.1" }, "devDependencies": { "@types/classnames": "^2.2.4", @@ -156,5 +159,6 @@ "peerDependencies": { "react": ">=0.14.0 <= 16", "react-dom": ">=0.14.0 <= 16" - } + }, + "snyk": true }