From cff72780b33612eb1e772e883d6bf959388399c0 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 9 Jul 2018 06:45:51 +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..5e65e95 --- /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': + - slack-client > lodash: + patched: '2018-07-09T06:45:50.096Z' + - google-sheets-api > lodash: + patched: '2018-07-09T06:45:50.096Z' diff --git a/package.json b/package.json index 9fa1987..d9eaa4f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "private": "node dist/privateReminder.js", "preprivate": "babel src --out-dir dist", "pregeneral": "babel src --out-dir dist", - "postinstall": "mkdir -p dist && babel src --out-dir dist" + "postinstall": "mkdir -p dist && babel src --out-dir dist", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "babel": { "presets": [ @@ -32,7 +34,8 @@ "google-sheets-api": "^0.4.1", "lodash": "^4.5.0", "pg": "^7.4.1", - "slack-client": "^2.0.2" + "slack-client": "^2.0.2", + "snyk": "^1.88.2" }, "devDependencies": { "eslint": "^3.7.1", @@ -41,5 +44,6 @@ "eslint-plugin-flowtype": "^2.20.0", "eslint-plugin-import": "^2.0.1", "eslint-plugin-react": "^6.4.1" - } + }, + "snyk": true }