From a22dc435d73d69dc79eee94f837fc69e3e644780 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 24 Oct 2018 03:15:57 +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 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:minimatch:20160620 - https://snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 25 +++++++++++++++++++++++++ package.json | 12 +++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..15dd10a --- /dev/null +++ b/.snyk @@ -0,0 +1,25 @@ +# 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-24T03:15:55.739Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2018-10-24T03:15:55.739Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2018-10-24T03:15:55.739Z' + 'npm:tunnel-agent:20170305': + - gulp-imagemin > imagemin-gifsicle > gifsicle > bin-build > download > caw > tunnel-agent: + patched: '2018-10-24T03:15:55.739Z' + - gulp-imagemin > imagemin-jpegtran > jpegtran-bin > bin-build > download > caw > tunnel-agent: + patched: '2018-10-24T03:15:55.739Z' + - gulp-imagemin > imagemin-optipng > optipng-bin > bin-build > download > caw > tunnel-agent: + patched: '2018-10-24T03:15:55.739Z' + - gulp-imagemin > imagemin-gifsicle > gifsicle > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-10-24T03:15:55.739Z' + - gulp-imagemin > imagemin-jpegtran > jpegtran-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-10-24T03:15:55.739Z' + - gulp-imagemin > imagemin-optipng > optipng-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-10-24T03:15:55.739Z' diff --git a/package.json b/package.json index 2f39bc4..9e08a67 100644 --- a/package.json +++ b/package.json @@ -3,16 +3,22 @@ "version": "1.0.0", "main": "gulpfile.js", "dependencies": { - "gulp": "^3.9.1", + "gulp": "^4.0.0", "gulp-csso": "^3.0.0", "gulp-sass": "^3.1.0", "gulp-uglify": "^2.1.2", "gulp-livereload": "^3.8.1", "gulp-imagemin": "^3.1.1", - "pump": "^1.0.2" + "pump": "^1.0.2", + "snyk": "^1.104.2" }, "devDependencies": { "gulp-imagemin": "^3.1.1", "gulp-livereload": "^3.8.1" - } + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }