diff --git a/packages/frontend/.snyk b/packages/frontend/.snyk new file mode 100644 index 0000000..52cf69f --- /dev/null +++ b/packages/frontend/.snyk @@ -0,0 +1,18 @@ +# 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: + - antd > lodash: + patched: '2019-07-04T07:04:07.495Z' + - antd > rc-form > lodash: + patched: '2019-07-04T07:04:07.495Z' + - antd > rc-steps > lodash: + patched: '2019-07-04T07:04:07.495Z' + - antd > rc-table > lodash: + patched: '2019-07-04T07:04:07.495Z' + - antd > rc-tabs > lodash: + patched: '2019-07-04T07:04:07.495Z' + - antd > rc-editor-mention > rc-editor-core > lodash: + patched: '2019-07-04T07:04:07.495Z' diff --git a/packages/frontend/package.json b/packages/frontend/package.json index f1fe71e..8da1e77 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -34,7 +34,8 @@ "react-router-dom": "^4.3.1", "uuid": "^3.2.1", "vega-lib": "^4.2.0", - "whatwg-fetch": "3.0.0" + "whatwg-fetch": "3.0.0", + "snyk": "^1.189.0" }, "author": { "name": "Florian Richter" @@ -43,7 +44,9 @@ "start": "parcel public/index.html --no-hmr --log-level 2", "lint": "tslint -p . --fix", "build": "parcel build public/index.html --no-cache --log-level 1", - "clean": "rm -rf build node_modules dist .cache" + "clean": "rm -rf build node_modules dist .cache", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "@babel/core": "^7.0.0-0", @@ -71,5 +74,6 @@ }, "sw-precache": { "maximumFileSizeToCacheInBytes": 10485760 - } + }, + "snyk": true }