From 83b12e667e80d56198afd163318f36b4d62b908b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 4 Jul 2018 02:37:23 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d8450e2 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - npm > cli-table2 > lodash: + patched: '2018-07-04T02:37:21.647Z' + - npm > npm-audit-report > cli-table2 > lodash: + patched: '2018-07-04T02:37:21.647Z' diff --git a/package.json b/package.json index c5bd4f7..e36f293 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", + "prepare": "npm run snyk-protect" }, "eslintConfig": { "extends": "@meteorjs/eslint-config-meteor", @@ -66,7 +68,8 @@ "install": "^0.10.1", "meteor-node-stubs": "~0.2.0", "npm": "^5.3.0", - "sanitize-html": "^1.14.1" + "sanitize-html": "^1.14.1", + "snyk": "^1.88.1" }, "repository": { "type": "git", @@ -89,5 +92,6 @@ "eslint-plugin-meteor": "^4.1.0", "eslint-plugin-react": "^7.1.0", "meteor-desktop": "^0.12.0" - } + }, + "snyk": true }