File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ export class NodeFilesHandler extends BaseFilesHandler {
22
22
async prepareFormDataRequest ( file : FilePathOrFileObject ) : Promise < FormDataRequest > {
23
23
console . log ( 'Preparing form data request for Node.js' ) ;
24
24
try {
25
- const FormData = await import ( 'form-data' ) . then ( m => m . default || m ) ;
25
+ const FormData = await import ( 'form-data' ) . then ( ( m ) => m . default || m ) ;
26
26
console . log ( 'Successfully imported form-data module' ) ;
27
-
27
+
28
28
const formData = new FormData ( ) ;
29
29
console . log ( 'Created new FormData instance' ) ;
30
30
31
31
if ( typeof file === 'string' ) {
32
- const fs = await import ( 'fs' ) . then ( m => m . default || m ) ;
32
+ const fs = await import ( 'fs' ) . then ( ( m ) => m . default || m ) ;
33
33
if ( ! fs . existsSync ( file ) ) {
34
34
throw new Error ( `File not found: ${ file } ` ) ;
35
35
}
You can’t perform that action at this time.
0 commit comments