Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qiniu

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qiniu - npm Package Compare versions

Comparing version 7.0.2 to 7.0.4

examples/http_https_proxy.js

3

CHANGELOG.md
## CHANGE LOG
### v7.0.4
- 增加http&https代理功能
### v7.0.2

@@ -4,0 +7,0 @@ - 修复cdn刷新文件和目录中方法引用错误

34

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc