diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..15c8bc3 --- /dev/null +++ b/.snyk @@ -0,0 +1,23 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - html-pdf > phantomjs > request > hawk > hoek: + patched: '2022-10-05T15:48:46.576Z' + - html-pdf > phantomjs > request > hawk > boom > hoek: + patched: '2022-10-05T15:48:46.576Z' + - html-pdf > phantomjs > request > hawk > sntp > hoek: + patched: '2022-10-05T15:48:46.576Z' + - html-pdf > phantomjs > request > hawk > cryptiles > boom > hoek: + patched: '2022-10-05T15:48:46.576Z' + 'npm:request:20160119': + - html-pdf > phantomjs > request: + patched: '2022-10-05T15:48:46.576Z' + 'npm:tough-cookie:20170905': + - html-pdf > phantomjs > request > tough-cookie: + patched: '2022-10-05T15:48:46.576Z' + 'npm:tunnel-agent:20170305': + - html-pdf > phantomjs > request > tunnel-agent: + patched: '2022-10-05T15:48:46.576Z' diff --git a/package.json b/package.json index 86005c5..5264b07 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", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "keywords": [ + "pdf", + "converter" + ], + "author": "HRA-Application", + "license": "ISC", + "dependencies": { + "hapi": "^13.0.0", + "html-pdf": "^3.0.0", + "@snyk/protect": "latest" + }, + "snyk": true } \ No newline at end of file