diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..9c3641c --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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-01T05:23:15.658Z' + - react-jsonschema > lodash: + patched: '2020-05-01T05:23:15.658Z' + - react-jsonschema > material-ui > lodash: + patched: '2020-05-01T05:23:15.658Z' diff --git a/package.json b/package.json index 69bfdf0..47a2a09 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "1.0.0", "description": "Boilerplate for MobX + React project with Typescript, ES6 compilation and hot code reloading", "scripts": { - "start": "node server.js" + "start": "node server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -37,6 +39,8 @@ "react-dom": "^15.1.0", "react-json-table": "^0.1.1", "react-jsonschema": "^0.4.1", - "react-jsonschema-form": "^0.38.0" - } + "react-jsonschema-form": "^0.38.0", + "snyk": "^1.316.1" + }, + "snyk": true }