From d5f27c24e5600ff99928b6751553a09158c42e04 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 11 May 2021 02:11:59 +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..dbd0796 --- /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: '2021-05-11T02:11:56.953Z' + - rsj > feedparser > request > form-data > mime: + patched: '2021-05-11T02:11:56.953Z' + 'npm:qs:20140806-1': + - rsj > feedparser > request > qs: + patched: '2021-05-11T02:11:56.953Z' + 'npm:request:20160119': + - rsj > feedparser > request: + patched: '2021-05-11T02:11:56.953Z' + 'npm:validator:20130705-1': + - rsj > feedparser > resanitize > validator: + patched: '2021-05-11T02:11:56.953Z' diff --git a/package.json b/package.json index 254f921..ee6efe2 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.590.0" + }, + "snyk": true }