Comparing version 7.0.2 to 7.0.4
## CHANGE LOG | ||
### v7.0.4 | ||
- 增加http&https代理功能 | ||
### v7.0.2 | ||
@@ -4,0 +7,0 @@ - 修复cdn刷新文件和目录中方法引用错误 |
{ | ||
"name": "qiniu", | ||
"version": "7.0.2", | ||
"version": "7.0.4", | ||
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API", | ||
@@ -36,20 +36,15 @@ "main": "index.js", | ||
"author": "sdk@qiniu.com", | ||
"contributors": [ | ||
{ | ||
"name": "Xu Shiwei", | ||
"email": "xushiweizh@gmail.com" | ||
}, | ||
{ | ||
"name": "why404", | ||
"email": "awhy.xu@gmail.com" | ||
}, | ||
{ | ||
"name": "ikbear", | ||
"email": "sunikbear@gmail.com" | ||
}, | ||
{ | ||
"name": "lintianzhi", | ||
"email": "lintianzhi1992@gmail.com" | ||
} | ||
], | ||
"contributors": [{ | ||
"name": "Xu Shiwei", | ||
"email": "xushiweizh@gmail.com" | ||
}, { | ||
"name": "why404", | ||
"email": "awhy.xu@gmail.com" | ||
}, { | ||
"name": "ikbear", | ||
"email": "sunikbear@gmail.com" | ||
}, { | ||
"name": "lintianzhi", | ||
"email": "lintianzhi1992@gmail.com" | ||
}], | ||
"engines": [ | ||
@@ -64,2 +59,3 @@ "node >= 0.4.7" | ||
"agentkeepalive": "3.3.0", | ||
"tunnel-agent": "0.6.0", | ||
"urlencode": "1.1.0" | ||
@@ -66,0 +62,0 @@ }, |
@@ -24,2 +24,6 @@ const fs = require('fs'); | ||
//proxy | ||
exports.RPC_HTTP_AGENT = null; | ||
exports.RPC_HTTPS_AGENT = null; | ||
exports.Config = function Config(options) { | ||
@@ -26,0 +30,0 @@ options = options || {}; |
@@ -49,2 +49,10 @@ var urllib = require('urllib'); | ||
if (conf.RPC_HTTP_AGENT) { | ||
data['agent'] = conf.RPC_HTTP_AGENT; | ||
} | ||
if (conf.RPC_HTTPS_AGENT) { | ||
data['httpsAgent'] = conf.RPC_HTTPS_AGENT; | ||
} | ||
if (Buffer.isBuffer(requestForm) || typeof requestForm === 'string') { | ||
@@ -51,0 +59,0 @@ data.content = requestForm; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102862
48
2732
7
+ Addedtunnel-agent@0.6.0
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedtunnel-agent@0.6.0(transitive)