From f0e7ca1146d4103831a93bf553ec33567dcba4fb Mon Sep 17 00:00:00 2001 From: snyk-test Date: Mon, 8 Jul 2019 03:09:42 +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 | 8 ++++++++ package.json | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..25f3713 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - lodash: + patched: '2019-07-08T03:09:40.561Z' diff --git a/package.json b/package.json index 33b8bc1..3ba20d0 100644 --- a/package.json +++ b/package.json @@ -29,15 +29,17 @@ "node": ">= 0.10.0" }, "scripts": { - "prepublish": "npm run build", + "prepublish": "npm run snyk-protect; npm run build", "test": "babel-node ./node_modules/gulp/bin/gulp.js test", "build": "babel-node ./node_modules/gulp/bin/gulp.js build", - "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx ." + "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx .", + "snyk-protect": "snyk protect" }, "main": "./dist/index.js", "dependencies": { "lodash": "^4.13.1", - "events": "^1.1.0" + "events": "^1.1.0", + "snyk": "^1.192.3" }, "devDependencies": { "angular": "^1.5.6", @@ -64,5 +66,6 @@ }, "peerDependencies": { "angular": "^1.2.0" - } + }, + "snyk": true }