diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..76adea1 --- /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: + - urllib > proxy-agent > https-proxy-agent: + patched: '2019-10-04T07:36:23.500Z' + - urllib > proxy-agent > pac-proxy-agent > https-proxy-agent: + patched: '2019-10-04T07:36:23.500Z' diff --git a/package.json b/package.json old mode 100755 new mode 100644 index e03554a..ca167c9 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "author": "fengmk2 (http://fengmk2.github.com)", "main": "index", "scripts": { - "test": "make test-g G='tqq API'" + "test": "make test-g G='tqq API'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "browserify": ">=1.16.1", @@ -21,13 +23,28 @@ "dependencies": { "eventproxy": "0.2.6", "emoji": ">=0.2.1", - "urllib": ">=0.5.5" + "urllib": ">=0.5.5", + "snyk": "^1.230.5" }, "keywords": [ - "framework", "web", "rest", "restful", - "weibo", "qq", "open", "github", "twitter", "facebook", - "sohu", "163", "sina", "oauth", + "framework", + "web", + "rest", + "restful", + "weibo", + "qq", + "open", + "github", + "twitter", + "facebook", + "sohu", + "163", + "sina", + "oauth", "sdk" ], - "engines": { "node": ">= 0.8.0" } + "engines": { + "node": ">= 0.8.0" + }, + "snyk": true }