From 676e79e3e2278906b20ec9c9b82e479ef089fb7d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 2 Jul 2018 23:13:29 +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 | 14 ++++++++++++++ package.json | 10 +++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..52a27b083 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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': + - coffee-fmt > lodash: + patched: '2018-07-02T23:13:27.499Z' + - jscs > lodash: + patched: '2018-07-02T23:13:27.499Z' + - jscs > jscs-jsdoc > jsdoctypeparser > lodash: + patched: '2018-07-02T23:13:27.499Z' + - jscs > xmlbuilder > lodash: + patched: '2018-07-02T23:13:27.499Z' diff --git a/package.json b/package.json index bdb74b1e4..f8182155c 100644 --- a/package.json +++ b/package.json @@ -199,7 +199,8 @@ "universal-analytics": "^0.4.16", "which": "^1.3.0", "winston": "^2.4.0", - "yaml-front-matter": "3.4.0" + "yaml-front-matter": "3.4.0", + "snyk": "^1.88.0" }, "activationHooks": [ "core:loaded-shell-environment" @@ -425,7 +426,9 @@ "prepublish": "npm run docs", "lint": "coffeelint src/ spec/", "code-docs": "codo && open docs/code/index.html", - "test": "atom --test spec" + "test": "atom --test spec", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "config": { "next-update": { @@ -450,5 +453,6 @@ "underscore-plus", "prettydiff2" ] - } + }, + "snyk": true } \ No newline at end of file