From 320f39eba369ab7ce0bd77690bd350a8d71febc1 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 3 Sep 2021 21:25:22 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:hawk:20160119 - https://snyk.io/vuln/npm:hoek:20180212 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hawk:20160119 --- .snyk | 8 ++++++++ package.json | 20 +++++++++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..818d2b3 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - gig.fs > request > hawk: + patched: '2021-09-03T21:25:21.596Z' diff --git a/package.json b/package.json index 81c1653..a29382d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "author": { "name": "Stanislas Polu", "email": "polu.stanislas@gmail.com", - "url": "http://github.com/spolu" + "url": "http://github.com/spolu" }, "version": "0.3.20-alpha.5", "dependencies": { @@ -17,17 +17,18 @@ "npm": "1.4.x", "semver": "2.2.x", "tar": "0.1.x", - "request": "2.36.x", + "request": "2.82.0", "express": "4.0.x", "body-parser": "1.0.x", "method-override": "1.0.x", "socket.io": "1.0.x", "openpgp": "0.6.x", - "tail": "0.3.x" + "tail": "0.3.x", + "@snyk/protect": "latest" }, - "repository" : { - "type" : "git", - "url" : "http://github.com/breach/breach_core.git" + "repository": { + "type": "git", + "url": "http://github.com/breach/breach_core.git" }, "bugs": { "url": "https://github.com/breach/breach_core/issues" @@ -44,5 +45,10 @@ }, "auto_update": { "url": "https://data.breach.cc/update" - } + }, + "scripts": { + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }