File tree Expand file tree Collapse file tree 3 files changed +30
-297
lines changed Expand file tree Collapse file tree 3 files changed +30
-297
lines changed Original file line number Diff line number Diff line change @@ -1939,6 +1939,13 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
1939
1939
onProgress ?: onProgress ,
1940
1940
}
1941
1941
1942
+ interface DownloadFileResult extends GeneralResult {
1943
+ /** 对象的实体标签(Entity Tag),是对象被创建时标识对象内容的信息标签,可用于检查对象的内容是否发生变化,例如"8e0b617ca298a564c3331da28dcb50df"。此头部并不一定返回对象的 MD5 值,而是根据对象上传和加密方式而有所不同 */
1944
+ ETag : ETag ,
1945
+ /** 对象的版本 ID */
1946
+ VersionId ?: string ,
1947
+ }
1948
+
1942
1949
// getV4Auth
1943
1950
interface GetV4AuthParams {
1944
1951
/** 计算签名用的密钥 SecretId,如果不传会用实例本身的凭证,可选 */
@@ -2330,8 +2337,8 @@ declare class COS {
2330
2337
appendObject ( params : COS . AppendObjectParams ) : Promise < COS . GeneralResult > ;
2331
2338
2332
2339
/** 分块下载 @see https://cloud.tencent.com/document/product/436/64981#.E5.88.86.E5.9D.97.E4.B8.8B.E8.BD.BD.E5.AF.B9.E8.B1.A1 */
2333
- downloadFile ( params : COS . DownloadFileParams , callback : ( err : COS . CosError , data : COS . GetObjectResult ) => void ) : void ;
2334
- downloadFile ( params : COS . DownloadFileParams ) : Promise < COS . GetObjectResult > ;
2340
+ downloadFile ( params : COS . DownloadFileParams , callback : ( err : COS . CosError , data : COS . DownloadFileResult ) => void ) : void ;
2341
+ downloadFile ( params : COS . DownloadFileParams ) : Promise < COS . DownloadFileResult > ;
2335
2342
2336
2343
/** 获取 COS JSON API (v4) 签名 @see https://cloud.tencent.com/document/product/436/6054 */
2337
2344
getV4Auth ( params : COS . GetV4AuthParams ) : COS . Authorization ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cos-nodejs-sdk-v5" ,
3
- "version" : " 2.12.1 " ,
3
+ "version" : " 2.12.2 " ,
4
4
"description" : " cos nodejs sdk v5" ,
5
5
"main" : " index.js" ,
6
6
"types" : " index.d.ts" ,
32
32
"homepage" : " https://github.com/tencentyun/cos-nodejs-sdk-v5#readme" ,
33
33
"dependencies" : {
34
34
"conf" : " ^9.0.0" ,
35
- "fast-xml-parser" : " ^ 4.2.2 " ,
35
+ "fast-xml-parser" : " 4.2.5 " ,
36
36
"mime-types" : " ^2.1.24" ,
37
37
"request" : " ^2.88.2"
38
38
},
You can’t perform that action at this time.
0 commit comments