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.4 to 7.0.5

index.d.ts

4

CHANGELOG.md
## CHANGE LOG
### v7.0.5
- 修复zone获取失败时callbackFunc不存在的问题
- 增加分片上传的时候的progressCallback
### v7.0.4

@@ -4,0 +8,0 @@ - 增加http&https代理功能

4

examples/http_https_proxy.js

@@ -1,2 +0,2 @@

const qiniu = require("../index.js");
const qiniu = require("qiniu");
const proc = require("process");

@@ -17,3 +17,3 @@ const tunnel = require('tunnel-agent');

//config.zone = qiniu.zone.Zone_z0;
config.useHttpsDomain = true;
//config.useHttpsDomain = true;
var formUploader = new qiniu.form_up.FormUploader(config);

@@ -20,0 +20,0 @@ var putExtra = new qiniu.form_up.PutExtra();

@@ -26,2 +26,5 @@ const qiniu = require("qiniu");

putExtra.resumeRecordFile = 'progress.log';
putExtra.progressCallback = function(uploadBytes, totalBytes) {
console.log("progress:" + uploadBytes + "(" + totalBytes + ")");
}

@@ -28,0 +31,0 @@ //file

{
"name": "qiniu",
"version": "7.0.4",
"version": "7.0.5",
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API",

@@ -62,6 +62,7 @@ "main": "index.js",

"devDependencies": {
"@types/node": "^8.0.3",
"blanket": "*",
"mocha": "*",
"pedding": "*",
"should": "1.2.2",
"pedding": "*",
"mocha": "*",
"blanket": "*",
"travis-cov": "*"

@@ -68,0 +69,0 @@ },

@@ -21,3 +21,3 @@ const conf = require('../conf');

// @param resumeRecordFile 断点续传的已上传的部分信息记录文件
// @param progressCallback(BlkputRet) 上传进度回调
// @param progressCallback(uploadBytes, totalBytes) 上传进度回调
function PutExtra(fname, params, mimeType, resumeRecordFile, progressCallback) {

@@ -171,3 +171,3 @@ this.fname = fname || '';

if (putExtra.progressCallback) {
putExtra.progressCallback(blkputRet);
putExtra.progressCallback(readLen, fileSize);
}

@@ -174,0 +174,0 @@ if (putExtra.resumeRecordFile) {

@@ -56,7 +56,7 @@ const urllib = require('urllib')

exports.getZoneInfo = function(accessKey, bucket, callbackFunc) {
var apiAddr = util.format('http://uc.qbox.me/v2/query?ak=%s&bucket=%s',
var apiAddr = util.format('https://uc.qbox.me/v2/query?ak=%s&bucket=%s',
accessKey, bucket);
urllib.request(apiAddr, function(respErr, respData, respInfo) {
if (respErr) {
callback(respErr, null, null);
callbackFunc(respErr, null, null);
return;

@@ -63,0 +63,0 @@ }

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