Skip to content

Commit

Permalink
Pass options to NodeFileTypeParser constructor in fileTypeStream
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Jul 30, 2024
1 parent 499b985 commit 27d0dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function fileTypeFromStream(stream, fileTypeOptions) {
}

export async function fileTypeStream(readableStream, options = {}) {
return new NodeFileTypeParser().toDetectionStream(readableStream, options);
return new NodeFileTypeParser(options).toDetectionStream(readableStream, options);
}

export {fileTypeFromTokenizer, fileTypeFromBuffer, fileTypeFromBlob, FileTypeParser, supportedMimeTypes, supportedExtensions} from './core.js';

0 comments on commit 27d0dba

Please sign in to comment.