From 52b91ee0190a56116669d809c38b81f06ee77c9c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 4 Jun 2020 04:41:51 +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 0000000..7e5477d --- /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-04T04:41:49.971Z' diff --git a/package.json b/package.json index 1fa55ef..9c43baf 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "desktop": "meteor-desktop", "lint": "eslint .", "pretest": "npm run lint --silent", - "fix": "eslint imports/ --fix" + "fix": "eslint imports/ --fix", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "eslintConfig": { "extends": "@meteorjs/eslint-config-meteor", @@ -65,7 +67,8 @@ "markdown-it": "^10.0.0", "meteor-node-stubs": "^1.0.0", "sanitize-html": "^1.20.0", - "simpl-schema": "^1.5.5" + "simpl-schema": "^1.5.5", + "snyk": "^1.335.0" }, "repository": { "type": "git", @@ -97,5 +100,6 @@ "client": "client/main.js", "server": "server/main.js" } - } + }, + "snyk": true }