wavespeed 0.0.13 → 0.0.14
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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,6 @@ export declare class WaveSpeed {
|
|
|
116
116
|
* @param file Blob to upload
|
|
117
117
|
* @returns The API response JSON
|
|
118
118
|
*/
|
|
119
|
-
upload(file: Blob, options?: RequestOptions): Promise<string>;
|
|
119
|
+
upload(file: File | Blob, options?: RequestOptions): Promise<string>;
|
|
120
120
|
}
|
|
121
121
|
export default WaveSpeed;
|
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ class WaveSpeed {
|
|
|
74
74
|
* @param options Additional client options
|
|
75
75
|
*/
|
|
76
76
|
constructor(apiKey, options = {}) {
|
|
77
|
-
this.baseUrl = 'https://api.wavespeed.ai/api/
|
|
77
|
+
this.baseUrl = 'https://api.wavespeed.ai/api/v2/';
|
|
78
78
|
// Browser-friendly environment variable handling
|
|
79
79
|
const getEnvVar = (name) => {
|
|
80
80
|
// Try to get from process.env for Node.js environments
|