Skip to content

Commit ade47b5

Browse files
committed
fix function prototype error in index.d.ts
1 parent 5da9c53 commit ade47b5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## CHANGE LOG
22

3+
### v7.1.1
4+
- 修复 index.d.ts 中的函数声明错误
5+
36
### v7.1.0
47
- 修复时间戳防盗链中存在特殊字符引发的签名错误
58
- 修复分片上传的时候最后一块小于2056字节引发的错误

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export declare namespace util {
345345
* @param reqContentType 请求类型,例如 application/json 或者 application/x-www-form-urlencoded
346346
* @param reqBody 请求Body,仅当请求的 ContentType 为 application/json 或者 application/x-www-form-urlencoded 时才需要传入该参数
347347
*/
348-
function generateAccessTokenV2(mac: auth.digest.Mac, requestURI: string, reqMethod: string, reqContentType: string, reqBody?: string)
348+
function generateAccessTokenV2(mac: auth.digest.Mac, requestURI: string, reqMethod: string, reqContentType: string, reqBody?: string): string;
349349

350350
/**
351351
* 校验七牛上传回调的Authorization

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qiniu",
3-
"version": "7.1.0",
3+
"version": "7.1.1",
44
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)