Skip to content

Commit

Permalink
Fix passing options to fileTypeStream in default entry point (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit authored Aug 14, 2024
1 parent 0cfd0be commit ea314a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export async function fileTypeFromTokenizer(tokenizer) {
return new FileTypeParser().fromTokenizer(tokenizer);
}

export async function fileTypeStream(webStream) {
return new FileTypeParser().toDetectionStream(webStream);
export async function fileTypeStream(webStream, options) {
return new FileTypeParser(options).toDetectionStream(webStream, options);
}

export class FileTypeParser {
Expand Down

0 comments on commit ea314a4

Please # to comment.