@aliyun-obv/api 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +1 -0
- package/dist/api.es.js +5 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
package/dist/api.es.js
CHANGED
|
@@ -60,8 +60,12 @@ class BaseFetch {
|
|
|
60
60
|
}
|
|
61
61
|
callFetch(_0, _1) {
|
|
62
62
|
return __async$1(this, arguments, function* (api, init, options = {}) {
|
|
63
|
+
let headers = init == null ? void 0 : init.headers;
|
|
63
64
|
if (this.fetchApi != null) {
|
|
64
|
-
|
|
65
|
+
if (options.headers) {
|
|
66
|
+
headers = Object.assign({}, init == null ? void 0 : init.headers, options.headers);
|
|
67
|
+
}
|
|
68
|
+
return this.fetchApi(api, Object.assign({}, init, { headers }), options);
|
|
65
69
|
}
|
|
66
70
|
return fetch(api, init);
|
|
67
71
|
});
|
package/package.json
CHANGED