We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
globalThis.fetch
1 parent 4dddc1c commit 9d6c4a0Copy full SHA for 9d6c4a0
index.js
@@ -37,7 +37,7 @@ class Replicate {
37
this.userAgent =
38
options.userAgent || `replicate-javascript/${packageJSON.version}`;
39
this.baseUrl = options.baseUrl || 'https://api.replicate.com/v1';
40
- this.fetch = options.fetch || fetch;
+ this.fetch = options.fetch || globalThis.fetch;
41
42
this.collections = {
43
get: collections.get.bind(this),
0 commit comments