From 51c76f52bec5553aa18db8522052faf728b6e72f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 23 Oct 2018 21:04:30 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:deep-extend:20180409 - https://snyk.io/vuln/npm:minimatch:20160620 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 0000000000..4155c5390e --- /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': + - gulp > vinyl-fs > glob-stream > minimatch: + patched: '2018-10-23T21:04:28.416Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2018-10-23T21:04:28.416Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2018-10-23T21:04:28.416Z' diff --git a/package.json b/package.json index b33e491b2c..bd232932e7 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "scripts": { "dev": "gulp", "dist": "gulp prep", - "build": "gulp build" + "build": "gulp build", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "devDependencies": { "angular": "^1.6.2", @@ -46,7 +48,7 @@ "babel-preset-es2015": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "babelify": "^7.3.0", - "gulp": "^3.9.1", + "gulp": "^4.0.0", "gulp-autoprefixer": "^4.0.0", "gulp-bump": "^2.7.0", "gulp-clean": "^0.3.2", @@ -61,9 +63,11 @@ "gulp-template": "^4.0.0", "gulp-uglify": "^2.0.1", "gulp-zip": "^4.0.0", - "npm": "^4.5.0", + "npm": "^4.6.1", "run-sequence": "^1.2.2", "vinyl-buffer": "^1.0.0", - "vinyl-source-stream": "^1.1.0" - } + "vinyl-source-stream": "^1.1.0", + "snyk": "^1.104.2" + }, + "snyk": true }