Skip to content

Commit ddb7391

Browse files
author
zhangheng
committed
update version
1 parent 1d851a4 commit ddb7391

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "qiniu-js",
33
"jsName": "qiniu",
4-
"version": "2.5.2",
4+
"version": "2.5.4",
55
"private": false,
66
"description": "Javascript SDK for Qiniu Resource (Cloud) Storage AP",
77
"main": "dist/qiniu.min.js",

src/statisticsLog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class StatisticsLogger{
1919
if (xhr.readyState === 4) {
2020
if (xhr.status !== 200) {
2121
count++;
22-
count <= 3 ? self.send(logString) : "";
22+
count <= 3 ? self.send(logString, token) : "";
2323
}
2424
}
2525
};

src/upload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class UploadManager {
202202
let shouldCheckMD5 = this.config.checkByMD5;
203203
let reuseSaved = () => {
204204
this.updateChunkProgress(chunk.size, index);
205-
this.ctxList[index] = {ctx: info.ctx, size: info.size, time: info.time, md5: info.md5};
205+
this.ctxList[index] = { ctx: info.ctx, time: info.time, md5: info.md5 };
206206
return Promise.resolve(null);
207207
};
208208

@@ -274,7 +274,7 @@ export class UploadManager {
274274
}
275275

276276
finishDirectProgress(){
277-
// 对于低版本安卓浏览器,progress 为 null, 这里 fake 下
277+
// 在某些浏览器环境下,xhr 的 progress 事件无法被触发,progress 为 null, 这里 fake 下
278278
if (!this.progress) {
279279
this.progress = { total: this.getProgressInfoItem(this.file.size, this.file.size) };
280280
this.onData(this.progress);

test/demo2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"babel-runtime": "^6.26.0",
1818
"es3ify-loader": "^0.2.0",
1919
"open-browser-webpack-plugin": "0.0.5",
20-
"qiniu-js": "^2.5.1",
20+
"qiniu-js": "^2.0.2",
2121
"uglifyjs-webpack-plugin": "^1.1.6",
2222
"webpack": "^3.6.0",
2323
"webpack-dev-server": "^2.9.1"

0 commit comments

Comments
 (0)