From 8d6c50f5d19db31e25a3355a9161a04ea5fe32e4 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 4 Jun 2020 00:40:05 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000000..f08b7aa3813 --- /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: + - sanitize-html > lodash: + patched: '2020-06-04T00:40:03.322Z' diff --git a/package.json b/package.json index 0d36e669a29..379d19c8882 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,9 @@ "test": "npm run lint-errors && npm run just-test-in-node", "test-in-node": "npm run lint-errors && npm run just-test-in-node", "just-test": "karma start --config karma.conf.js", - "just-test-in-node": "mocha --recursive --compilers js:babel-core/register test/core test/components test/bugs test/swagger-ui-dist-package" + "just-test-in-node": "mocha --recursive --compilers js:babel-core/register test/core test/components test/bugs test/swagger-ui-dist-package", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "base64-js": "^1.2.0", @@ -74,7 +76,8 @@ "whatwg-fetch": "0.11.1", "worker-loader": "^0.7.1", "xml": "1.0.1", - "yaml-js": "0.2.0" + "yaml-js": "0.2.0", + "snyk": "^1.335.0" }, "devDependencies": { "autoprefixer": "6.6.1", @@ -136,5 +139,6 @@ ], "optionalDependencies": { "webpack-dev-server": "1.14.0" - } + }, + "snyk": true }