Comparing version 7.0.5 to 7.0.6
## CHANGE LOG | ||
### v7.0.6 | ||
- 修复时间戳防盗链算法中对文件名的urlencode不兼容问题 | ||
- 发布index.d.ts文件 | ||
### v7.0.5 | ||
@@ -4,0 +8,0 @@ - 修复zone获取失败时callbackFunc不存在的问题 |
@@ -197,3 +197,3 @@ /** | ||
*/ | ||
putFile(uploadToken: string, key: string | null, localFile: string, putExtra: PutExtra | null, callback: callback); | ||
putFile(uploadToken: string, key: string | null, localFile: string, putExtra: PutExtra | null, callback: callback): void; | ||
@@ -207,3 +207,3 @@ /** | ||
*/ | ||
putFileWithoutKey(uploadToken: string, localFile: string, putExtra: PutExtra | null, callback: callback); | ||
putFileWithoutKey(uploadToken: string, localFile: string, putExtra: PutExtra | null, callback: callback): void; | ||
} | ||
@@ -488,3 +488,3 @@ | ||
*/ | ||
changeMime(bucket: string, key: string, newMime: string, callback: callback); | ||
changeMime(bucket: string, key: string, newMime: string, callback: callback): void; | ||
@@ -491,0 +491,0 @@ /** |
{ | ||
"name": "qiniu", | ||
"version": "7.0.5", | ||
"version": "7.0.6", | ||
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API", | ||
@@ -43,7 +43,7 @@ "main": "index.js", | ||
}, { | ||
"name": "ikbear", | ||
"email": "sunikbear@gmail.com" | ||
"name": "guhao", | ||
"email": "guhao@qiniu.com" | ||
}, { | ||
"name": "lintianzhi", | ||
"email": "lintianzhi1992@gmail.com" | ||
"name": "jinxinxin", | ||
"email": "jinxinxin@qiniu.com" | ||
}], | ||
@@ -50,0 +50,0 @@ "engines": [ |
@@ -166,7 +166,8 @@ const url = require('url'); | ||
Object.getOwnPropertyNames(query).forEach(function(val, idx, array) { | ||
arr.push(val + "=" + urlencode(query[val])); | ||
arr.push(val + "=" + encodeURIComponent(query[val])); | ||
}); | ||
urlToSign = domain + '/' + urlencode(fileName) + '?' + arr.join('&'); | ||
urlToSign = domain + '/' + encodeURI(fileName) + '?' + arr.join( | ||
'&'); | ||
} else { | ||
urlToSign = domain + '/' + urlencode(fileName); | ||
urlToSign = domain + '/' + encodeURI(fileName); | ||
} | ||
@@ -173,0 +174,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125283
3352