Skip to content

Commit

Permalink
Fix passing options to fileTypeStream in default entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Aug 14, 2024
1 parent 94db173 commit b9969c3
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 b9969c3

Please sign in to comment.