From d073c3f6eaf385c1178e4e05ac022226be5d37c1 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 3 May 2019 06:56:21 +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 --- .snyk | 12 ++++++++++++ package.json | 12 ++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4a3a438 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:minimatch:20160620': + - gulp > vinyl-fs > glob-stream > minimatch: + patched: '2019-05-03T06:56:18.778Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2019-05-03T06:56:18.778Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2019-05-03T06:56:18.778Z' diff --git a/package.json b/package.json index 4bfabfd..982cd3c 100644 --- a/package.json +++ b/package.json @@ -6,17 +6,20 @@ "dependencies": { "cors": "^2.7.1", "express": "^4.13.3", - "gulp": "^3.9.0", + "gulp": "^4.0.0", "gulp-nodemon": "^2.0.4", "mongodb": "^2.0.46", "querystring": "^0.2.0", "request": "^2.65.0", - "underscore": "^1.8.3" + "underscore": "^1.8.3", + "snyk": "^1.161.1" }, "devDependencies": {}, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "node server.js" + "start": "node server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -34,5 +37,6 @@ "bugs": { "url": "https://github.com/team-photon/business-landing/issues" }, - "homepage": "https://github.com/team-photon/business-landing#readme" + "homepage": "https://github.com/team-photon/business-landing#readme", + "snyk": true }