From 80cc478b656d012f9c6430596f8ef7b1eedde725 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 22:22:35 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .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..5a6e24d --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - inquirer > lodash: + patched: '2019-07-03T22:22:34.160Z' + - merge-config > lodash: + patched: '2019-07-03T22:22:34.160Z' diff --git a/package.json b/package.json index 85910de..6ecca2f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ }, "main": "lib", "scripts": { - "test": "mocha test/lib/bin/*.* --compilers coffee:coffee-script/register && mocha test/lib/building/*.* --compilers coffee:coffee-script/register && mocha test/lib/packaging/*.* --compilers coffee:coffee-script/register && mocha test/lib/scaffolding/*.* --compilers coffee:coffee-script/register && mocha test/lib/testing/*.* --compilers coffee:coffee-script/register && mocha test/lib/utils/*.* --compilers coffee:coffee-script/register" + "test": "mocha test/lib/bin/*.* --compilers coffee:coffee-script/register && mocha test/lib/building/*.* --compilers coffee:coffee-script/register && mocha test/lib/packaging/*.* --compilers coffee:coffee-script/register && mocha test/lib/scaffolding/*.* --compilers coffee:coffee-script/register && mocha test/lib/testing/*.* --compilers coffee:coffee-script/register && mocha test/lib/utils/*.* --compilers coffee:coffee-script/register", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "electron", @@ -27,7 +29,8 @@ "gulp-json-editor": "^2.2.1", "inquirer": "^3.0.1", "merge-config": "^2.0.0", - "underscore.string": "^3.3.4" + "underscore.string": "^3.3.4", + "snyk": "^1.189.0" }, "preferGlobal": "true", "bin": { @@ -51,5 +54,6 @@ "mocha": "^3.2.0", "spectron": "^3.6.0", "webpack-stream": "^3.2.0" - } + }, + "snyk": true }