From bf2fab45f650d64dfa9fc07f8d9277788a3c2482 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 27 Jun 2018 08:55:23 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 8 ++++++++ package.json | 38 +++++++++++++++++++++----------------- 2 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..8e5a76c --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:tunnel-agent:20170305': + - html-pdf > phantomjs > request > tunnel-agent: + patched: '2018-06-27T08:55:22.034Z' diff --git a/package.json b/package.json index 86005c5..0cdd2d3 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,23 @@ { - "name": "pdfconverter", - "version": "1.0.0", - "description": "pdf converter, html to pdf etc", - "main": "app.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "keywords": [ - "pdf", - "converter" - ], - "author": "HRA-Application", - "license": "ISC", - "dependencies": { - "hapi": "^13.0.0", - "html-pdf": "^1.5.0" - } + "name": "pdfconverter", + "version": "1.0.0", + "description": "pdf converter, html to pdf etc", + "main": "app.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "keywords": [ + "pdf", + "converter" + ], + "author": "HRA-Application", + "license": "ISC", + "dependencies": { + "hapi": "^13.0.0", + "html-pdf": "^1.5.0", + "snyk": "^1.85.0" + }, + "snyk": true } \ No newline at end of file