cos-nodejs-sdk-v5
Advanced tools
Comparing version 2.11.13 to 2.11.14
{ | ||
"name": "cos-nodejs-sdk-v5", | ||
"version": "2.11.13", | ||
"version": "2.11.14", | ||
"description": "cos nodejs sdk v5", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -500,4 +500,3 @@ 'use strict'; | ||
var errMsg = checkParams(); | ||
var isSync = apiName === 'getAuth' || apiName === 'getV4Auth' | ||
|| apiName.indexOf('Stream') > -1; | ||
var isSync = ['getAuth', 'getV4Auth', 'getObjectUrl'].includes(apiName) || apiName.indexOf('Stream') > -1; | ||
if (Promise && !isSync && !callback) { | ||
@@ -504,0 +503,0 @@ return new Promise(function (resolve, reject) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
804720
16697