From a6021da2848c33ebce1cd3d23404a17120423b0d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 29 Oct 2018 09:04:50 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:minimatch:20160620 - https://snyk.io/vuln/npm:tunnel-agent:20170305 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:minimatch:20160620 --- .snyk | 12 ++++++++++++ package.json | 14 +++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..9a31f43b4 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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:minimatch:20160620': + - yeoman-generator > file-utils > glob > minimatch: + patched: '2018-10-29T09:04:48.544Z' + - yeoman-generator > file-utils > findup-sync > glob > minimatch: + patched: '2018-10-29T09:04:48.544Z' + - yeoman-generator > file-utils > minimatch: + patched: '2018-10-29T09:04:48.544Z' diff --git a/package.json b/package.json index 25d39f7e1..065a9a001 100644 --- a/package.json +++ b/package.json @@ -34,13 +34,16 @@ ], "repository": "yeoman/generator-angular", "scripts": { - "test": "mocha" + "test": "mocha", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "dependencies": { - "wiredep": "^1.0.0", - "yeoman-generator": "^0.16.0", + "wiredep": "^3.0.1", + "yeoman-generator": "^0.21.0", "yosay": "^0.2.0", - "chalk": "^0.4.0" + "chalk": "^0.4.0", + "snyk": "^1.105.0" }, "peerDependencies": { "generator-karma": ">=0.8.2", @@ -64,5 +67,6 @@ { "type": "BSD" } - ] + ], + "snyk": true }