wavespeed 0.0.11 → 0.0.13
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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -105,7 +105,6 @@ class WaveSpeed {
|
|
|
105
105
|
if (options.isUpload) {
|
|
106
106
|
fetchOptions.headers = {
|
|
107
107
|
'Authorization': `Bearer ${this.apiKey}`,
|
|
108
|
-
...(fetchOptions.headers || {}),
|
|
109
108
|
};
|
|
110
109
|
}
|
|
111
110
|
else {
|
|
@@ -248,6 +247,9 @@ class WaveSpeed {
|
|
|
248
247
|
if (options == null) {
|
|
249
248
|
options = { isUpload: true };
|
|
250
249
|
}
|
|
250
|
+
else {
|
|
251
|
+
options.isUpload = true;
|
|
252
|
+
}
|
|
251
253
|
const response = await this.fetchWithTimeout('media/upload/binary', {
|
|
252
254
|
method: 'POST',
|
|
253
255
|
body: form,
|