We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4f9f07 commit e5e0b99Copy full SHA for e5e0b99
1 file changed
lib/CloudConvert.ts
@@ -1,4 +1,4 @@
1
-import path from 'node:path';
+import { basename } from 'node:path';
2
import { Readable } from 'node:stream';
3
import { io, type Socket } from 'socket.io-client';
4
import { version } from '../package.json';
@@ -20,7 +20,7 @@ export type UploadFileSource =
20
21
function guessFilename(source: UploadFileSource): string | undefined {
22
return 'path' in source && typeof source.path === 'string'
23
- ? path.basename(source.path)
+ ? basename(source.path)
24
: undefined;
25
}
26
0 commit comments