wavespeed 0.0.7 → 0.0.8
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -102,7 +102,7 @@ class WaveSpeed {
|
|
|
102
102
|
async fetchWithTimeout(path, options = {}) {
|
|
103
103
|
const { timeout = this.timeout * 1000, ...fetchOptions } = options;
|
|
104
104
|
// Ensure headers exist
|
|
105
|
-
if (
|
|
105
|
+
if (options.isUpload) {
|
|
106
106
|
fetchOptions.headers = {
|
|
107
107
|
'Authorization': `Bearer ${this.apiKey}`,
|
|
108
108
|
...(fetchOptions.headers || {}),
|