From b1a3a55081e450ade89fa1646d5dc852ef9c9eae Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 14 Nov 2020 04:37:38 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:deep-extend:20180409 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 | 12 ++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..5b9b6dc --- /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-11-14T04:37:34.488Z' + - rsj > feedparser > request > form-data > mime: + patched: '2020-11-14T04:37:34.488Z' + 'npm:qs:20140806-1': + - rsj > feedparser > request > qs: + patched: '2020-11-14T04:37:34.488Z' + 'npm:request:20160119': + - rsj > feedparser > request: + patched: '2020-11-14T04:37:34.488Z' + 'npm:validator:20130705-1': + - rsj > feedparser > resanitize > validator: + patched: '2020-11-14T04:37:34.488Z' diff --git a/package.json b/package.json index 254f921..a847761 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": [ @@ -26,7 +28,9 @@ "sentiment-spanish": "0.0.8", "slack-node": "0.2.0", "socket.io": "1.4.8", - "twitter": "1.3.0", - "x-ray": "2.3.0" - } + "twitter": "1.7.1", + "x-ray": "2.3.0", + "snyk": "^1.426.0" + }, + "snyk": true }