We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a046c1c commit 0846faeCopy full SHA for 0846fae
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "cos-nodejs-sdk-v5",
3
- "version": "2.11.13",
+ "version": "2.11.14",
4
"description": "cos nodejs sdk v5",
5
"main": "index.js",
6
"types": "index.d.ts",
sdk/util.js
@@ -497,8 +497,7 @@ var apiWrapper = function (apiName, apiFn) {
497
};
498
499
var errMsg = checkParams();
500
- var isSync = apiName === 'getAuth' || apiName === 'getV4Auth'
501
- || apiName.indexOf('Stream') > -1;
+ var isSync = ['getAuth', 'getV4Auth', 'getObjectUrl'].includes(apiName) || apiName.indexOf('Stream') > -1;
502
if (Promise && !isSync && !callback) {
503
return new Promise(function (resolve, reject) {
504
callback = function (err, data) {
0 commit comments