File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ class Replicate {
59
59
options . userAgent || `replicate-javascript/${ packageJSON . version } ` ;
60
60
this . baseUrl = options . baseUrl || "https://api.replicate.com/v1" ;
61
61
this . fetch = options . fetch || globalThis . fetch ;
62
- this . fileEncodingStrategy = options . fileEncodingStrategy ?? "default" ;
63
- this . useFileOutput = options . useFileOutput ?? false ;
62
+ this . fileEncodingStrategy = options . fileEncodingStrategy || "default" ;
63
+ this . useFileOutput = options . useFileOutput || false ;
64
64
65
65
this . accounts = {
66
66
current : accounts . current . bind ( this ) ,
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ async function transformFileInputsToBase64EncodedDataURIs(inputs) {
318
318
}
319
319
320
320
const data = bytesToBase64 ( buffer ) ;
321
- mime = mime ?? "application/octet-stream" ;
321
+ mime = mime || "application/octet-stream" ;
322
322
323
323
return `data:${ mime } ;base64,${ data } ` ;
324
324
} ) ;
You can’t perform that action at this time.
0 commit comments