From 5d3d794322294bffde619a024f9ee9847c275c57 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 13 Aug 2020 02:11:50 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:debug:20170905 - https://snyk.io/vuln/npm:ms:20170412 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:mime:20170907 - https://snyk.io/vuln/npm:qs:20140806-1 - https://snyk.io/vuln/npm:request:20160119 - https://snyk.io/vuln/npm:validator:20130705-1 --- .snyk | 19 +++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d413fae --- /dev/null +++ b/.snyk @@ -0,0 +1,19 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.19.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:mime:20170907': + - rsj > feedparser > request > mime: + patched: '2020-08-13T02:11:47.679Z' + - rsj > feedparser > request > form-data > mime: + patched: '2020-08-13T02:11:47.679Z' + 'npm:qs:20140806-1': + - rsj > feedparser > request > qs: + patched: '2020-08-13T02:11:47.679Z' + 'npm:request:20160119': + - rsj > feedparser > request: + patched: '2020-08-13T02:11:47.679Z' + 'npm:validator:20130705-1': + - rsj > feedparser > resanitize > validator: + patched: '2020-08-13T02:11:47.679Z' diff --git a/package.json b/package.json index 254f921..bb821be 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Ofertas de empleo de calidad para desarrolladores de calidad", "main": "server.js", "scripts": { - "start": "node server.js" + "start": "node server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Ulises Gascón", "contributors": [ @@ -27,6 +29,8 @@ "slack-node": "0.2.0", "socket.io": "1.4.8", "twitter": "1.3.0", - "x-ray": "2.3.0" - } + "x-ray": "2.3.4", + "snyk": "^1.373.1" + }, + "snyk": true }