File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1506,9 +1506,7 @@ function downloadFile() {
1506
1506
ChunkSize : 1024 * 1024 * 8 , // 文件大于 8MB 用分片下载
1507
1507
ParallelLimit : 5 , // 分片并发数
1508
1508
RetryTimes : 3 , // 分片失败重试次数
1509
- onTaskReady : function ( taskId ) {
1510
- console . log ( taskId ) ;
1511
- } ,
1509
+ TaskId : '123' ,
1512
1510
onProgress : function ( progressData ) {
1513
1511
console . log ( JSON . stringify ( progressData ) ) ;
1514
1512
} ,
Original file line number Diff line number Diff line change @@ -1696,6 +1696,8 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
1696
1696
FilePath : string ,
1697
1697
/** 分块上传时,每片的字节数大小,默认值1048576(1MB) */
1698
1698
ChunkSize ?: number ,
1699
+ /** 分块上传时,每片的字节数大小,默认值1048576(1MB) */
1700
+ SliceSize ?: number ,
1699
1701
/** 请求里的 Url Query 参数 */
1700
1702
Query ?: string ,
1701
1703
/** RFC 2616 中定义的缓存指令,将作为对象元数据保存 */
@@ -1928,6 +1930,7 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
1928
1930
ChunkSize ?: number ,
1929
1931
ParallelLimit ?: number ,
1930
1932
RetryTimes ?: number ,
1933
+ TaskId ?: string ,
1931
1934
onTaskReady ?: ( TaskId : COS . TaskId ) => void ,
1932
1935
onProgress ?: onProgress ,
1933
1936
}
Original file line number Diff line number Diff line change 9
9
"demo-sts" : " node demo/demo-sts.js" ,
10
10
"demo-sts-scope" : " node demo/demo-sts-scope.js" ,
11
11
"test" : " mocha test/test.js" ,
12
+ "cov" : " istanbul cover _mocha -- -u exports 'test/test.js'" ,
12
13
"nyc" : " nyc --reporter=clover --reporter=cobertura mocha --reporter xunit --reporter-options output=mocha.xml test/test.js" ,
13
14
"csp" : " mocha test/csp.js"
14
15
},
You can’t perform that action at this time.
0 commit comments