@aliyun-obv/api
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -64,9 +64,9 @@ import _ from 'lodash'; | ||
let headers = init == null ? void 0 : init.headers; | ||
if (options.headers) { | ||
headers = Object.assign({}, init == null ? void 0 : init.headers, options.headers); | ||
} | ||
if (this.fetchApi != null) { | ||
if (options.headers) { | ||
headers = Object.assign({}, init == null ? void 0 : init.headers, options.headers); | ||
} | ||
return this.fetchApi(api, Object.assign({}, init, { headers }), options); | ||
} | ||
return fetch(api, init); | ||
return fetch(api, Object.assign({}, init, { headers })); | ||
}); | ||
@@ -73,0 +73,0 @@ } |
@@ -14,3 +14,3 @@ { | ||
"devDependencies": {}, | ||
"version": "0.0.29" | ||
"version": "0.0.30" | ||
} |
6735