From 0b41fe1cc3f246643006eed90eae9c212c64945d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 6 Oct 2019 00:20:29 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-HTTPSPROXYAGENT-469131 --- .snyk | 10 ++++++++++ package.json | 48 ++++++++++++++++++++++++++++++------------------ 2 files changed, 40 insertions(+), 18 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..86ef0a4 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-HTTPSPROXYAGENT-469131: + - weibo > urllib > proxy-agent > https-proxy-agent: + patched: '2019-10-06T00:20:27.518Z' + - weibo > urllib > proxy-agent > pac-proxy-agent > https-proxy-agent: + patched: '2019-10-06T00:20:27.518Z' diff --git a/package.json b/package.json index 194057e..853e1a7 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,31 @@ -{ - "name": "nodeblog", - "version": "0.2.3", - "description": "Node Blog Engine, a simple blog system.", - "keywords": ["blog", "wordpress", "blogengine", "博客", "部落格"], - "author": [ - "fengmk2 (http://fengmk2.cnblogs.com)", - "@zolunx10 (https://github.com/zolunx10)" - ], - "main": "app.js", - "dependencies": { - "connect": ">= 1.5.2", - "connect-render": ">=0.1.0", - "ejs": ">=0.6.1", - "weibo": ">=0.3.0", - "metaweblog": ">=0.2.0", - "mongoskin": ">=0.2.2" - } +{ + "name": "nodeblog", + "version": "0.2.3", + "description": "Node Blog Engine, a simple blog system.", + "keywords": [ + "blog", + "wordpress", + "blogengine", + "博客", + "部落格" + ], + "author": [ + "fengmk2 (http://fengmk2.cnblogs.com)", + "@zolunx10 (https://github.com/zolunx10)" + ], + "main": "app.js", + "dependencies": { + "connect": ">= 1.5.2", + "connect-render": ">=0.1.0", + "ejs": ">=0.6.1", + "weibo": ">=0.3.0", + "metaweblog": ">=0.2.0", + "mongoskin": ">=0.2.2", + "snyk": "^1.231.0" + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }