Skip to content

Commit e3b31ac

Browse files
committed
fix: Node file checks
1 parent 1b5b314 commit e3b31ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/files/NodeFilesHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ export class NodeFilesHandler extends BaseFilesHandler {
2222
async prepareFormDataRequest(file: FilePathOrFileObject): Promise<FormDataRequest> {
2323
console.log('Preparing form data request for Node.js');
2424
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);
2626
console.log('Successfully imported form-data module');
27-
27+
2828
const formData = new FormData();
2929
console.log('Created new FormData instance');
3030

3131
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);
3333
if (!fs.existsSync(file)) {
3434
throw new Error(`File not found: ${file}`);
3535
}

0 commit comments

Comments
 (0)