Skip to content

Commit

Permalink
Dev/2.12.2 (#179)
Browse files Browse the repository at this point in the history
* feat: 新增cov命令

* fix: 补充d.ts

* feat: 补充ci智能语音和云查毒接口

* fix: 修复Body类型

* fix: 更新依赖库版本

* upd: version

* fix: 恢复版本

* upd: 新增单测

* upd: 新增单测

* upd: 新增单测

* upd: 新增单测

* upd: 补充单测

* upd: 补充单测

* upd: 补充单测

* feat: uploadSliceItem透传headers

* upd: 补充单测

* upd: 补充单测

* upd: 更好xml2js

* feat: 默认关闭FollowRedirect

* upd: 补充图片处理、存储桶配置、文档处理、文件处理nodejs sdk (merge request !3)

Squash merge branch 'dev/xueyunzhou' into 'master'
upd: 补充图片处理、存储桶配置、文档处理、文件处理nodejs sdk

* fix: 更新XMLParser配置

* fix: 更新XMLParser配置

* fix: 优化d.ts

* feat: 更新依赖

* fix: 优化单测

---------

Co-authored-by: zhouxueyun <[email protected]>
  • Loading branch information
livehigh and zhouxueyun authored Jul 26, 2023
1 parent 1ebfa29 commit 8491f0e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 297 deletions.
11 changes: 9 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,13 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
onProgress?: onProgress,
}

interface DownloadFileResult extends GeneralResult {
/** 对象的实体标签(Entity Tag),是对象被创建时标识对象内容的信息标签,可用于检查对象的内容是否发生变化,例如"8e0b617ca298a564c3331da28dcb50df"。此头部并不一定返回对象的 MD5 值,而是根据对象上传和加密方式而有所不同 */
ETag: ETag,
/** 对象的版本 ID */
VersionId?: string,
}

// getV4Auth
interface GetV4AuthParams {
/** 计算签名用的密钥 SecretId,如果不传会用实例本身的凭证,可选 */
Expand Down Expand Up @@ -2330,8 +2337,8 @@ declare class COS {
appendObject(params: COS.AppendObjectParams): Promise<COS.GeneralResult>;

/** 分块下载 @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 */
downloadFile(params: COS.DownloadFileParams, callback: (err: COS.CosError, data: COS.GetObjectResult) => void): void;
downloadFile(params: COS.DownloadFileParams): Promise<COS.GetObjectResult>;
downloadFile(params: COS.DownloadFileParams, callback: (err: COS.CosError, data: COS.DownloadFileResult) => void): void;
downloadFile(params: COS.DownloadFileParams): Promise<COS.DownloadFileResult>;

/** 获取 COS JSON API (v4) 签名 @see https://cloud.tencent.com/document/product/436/6054 */
getV4Auth(params: COS.GetV4AuthParams): COS.Authorization;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cos-nodejs-sdk-v5",
"version": "2.12.1",
"version": "2.12.2",
"description": "cos nodejs sdk v5",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -32,7 +32,7 @@
"homepage": "https://github.com/tencentyun/cos-nodejs-sdk-v5#readme",
"dependencies": {
"conf": "^9.0.0",
"fast-xml-parser": "^4.2.2",
"fast-xml-parser": "4.2.5",
"mime-types": "^2.1.24",
"request": "^2.88.2"
},
Expand Down
Loading

0 comments on commit 8491f0e

Please sign in to comment.