From ade47b55d632d104c399c990c5b94eb5a2ae4d97 Mon Sep 17 00:00:00 2001 From: jemygraw Date: Mon, 30 Oct 2017 10:06:32 +0800 Subject: [PATCH] fix function prototype error in index.d.ts --- CHANGELOG.md | 3 +++ index.d.ts | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bdbd527..163f4181 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## CHANGE LOG +### v7.1.1 +- 修复 index.d.ts 中的函数声明错误 + ### v7.1.0 - 修复时间戳防盗链中存在特殊字符引发的签名错误 - 修复分片上传的时候最后一块小于2056字节引发的错误 diff --git a/index.d.ts b/index.d.ts index d0783b6e..8aa378fc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -345,7 +345,7 @@ export declare namespace util { * @param reqContentType 请求类型,例如 application/json 或者 application/x-www-form-urlencoded * @param reqBody 请求Body,仅当请求的 ContentType 为 application/json 或者 application/x-www-form-urlencoded 时才需要传入该参数 */ - function generateAccessTokenV2(mac: auth.digest.Mac, requestURI: string, reqMethod: string, reqContentType: string, reqBody?: string) + function generateAccessTokenV2(mac: auth.digest.Mac, requestURI: string, reqMethod: string, reqContentType: string, reqBody?: string): string; /** * 校验七牛上传回调的Authorization diff --git a/package.json b/package.json index f6ef3a29..60799b3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "qiniu", - "version": "7.1.0", + "version": "7.1.1", "description": "Node wrapper for Qiniu Resource (Cloud) Storage API", "main": "index.js", "directories": {