diff --git a/packages/web/.snyk b/packages/web/.snyk new file mode 100644 index 00000000000..f393854fbe8 --- /dev/null +++ b/packages/web/.snyk @@ -0,0 +1,14 @@ +# 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-450202: + - next > @babel/preset-env > @babel/plugin-transform-classes > @babel/helper-define-map > lodash: + patched: '2020-04-20T21:48:53.159Z' + - next > @babel/preset-env > @babel/plugin-transform-parameters > @babel/helper-call-delegate > @babel/traverse > lodash: + patched: '2020-04-20T21:48:53.159Z' + - next > @babel/preset-env > @babel/plugin-transform-parameters > @babel/helper-call-delegate > @babel/traverse > @babel/generator > lodash: + patched: '2020-04-20T21:48:53.159Z' + - next > @babel/preset-env > @babel/plugin-transform-parameters > @babel/helper-call-delegate > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash: + patched: '2020-04-20T21:48:53.159Z' diff --git a/packages/web/package.json b/packages/web/package.json index 646a5295775..38be17f3b0e 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -17,7 +17,9 @@ "lint": "tslint -c tslint.json --project tsconfig.json", "kill-dev": "kill -9 $(lsof -ti :3000)", "test": "jest --runInBand", - "test-licenses": "yarn licenses list --prod | grep '\\(─ GPL\\|─ (GPL-[1-9]\\.[0-9]\\+ OR GPL-[1-9]\\.[0-9]\\+)\\)' && echo 'Found GPL license(s). Use 'yarn licenses list --prod' to look up the offending package' || echo 'No GPL licenses found'" + "test-licenses": "yarn licenses list --prod | grep '\\(─ GPL\\|─ (GPL-[1-9]\\.[0-9]\\+ OR GPL-[1-9]\\.[0-9]\\+)\\)' && echo 'Found GPL license(s). Use 'yarn licenses list --prod' to look up the offending package' || echo 'No GPL licenses found'", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "dependencies": { "@segment/in-eu": "^0.2.1", @@ -67,7 +69,8 @@ "stickyfilljs": "^2.0.5", "svgs": "^4.1.0", "tabletop": "^1.5.2", - "tls": "^0.0.1" + "tls": "^0.0.1", + "snyk": "^1.306.0" }, "devDependencies": { "@firebase/app-types": "^0.3.7", @@ -97,5 +100,6 @@ }, "engines": { "node": "8.x.x" - } + }, + "snyk": true }