From ea681383b5c95cdb263acba9184d864c77100495 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 30 May 2020 08:28:53 +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 00000000000000..d79265f4802a9f --- /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-05-30T08:28:51.541Z' diff --git a/package.json b/package.json index 39634a58553502..a0f2ab233da127 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,9 @@ "lint-json": "npm run lint-server && npm run lint-challenges && npm run lint-resources && npm run lint-utils", "test-challenges": "babel-node seed/test-challenges.js | tap-spec", "pretest": "npm run lint", - "test": "npm run test-challenges" + "test": "npm run test-challenges", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "license": "(BSD-3-Clause AND CC-BY-SA-4.0)", "dependencies": { @@ -132,7 +134,8 @@ "webpack": "^1.9.12", "webpack-stream": "^3.1.0", "xss-filters": "^1.2.6", - "yargs": "^4.1.0" + "yargs": "^4.1.0", + "snyk": "^1.332.1" }, "devDependencies": { "browser-sync": "^2.9.12", @@ -144,5 +147,6 @@ "sinon": "^1.17.3", "tap-spec": "^4.1.1", "tape": "^4.2.2" - } + }, + "snyk": true }