From ea314a4227faeb7445a48867b47f888c9302ea10 Mon Sep 17 00:00:00 2001 From: Borewit Date: Wed, 14 Aug 2024 13:54:44 +0200 Subject: [PATCH] Fix passing options to `fileTypeStream` in default entry point (#653) --- core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core.js b/core.js index 50809027..9444b66a 100644 --- a/core.js +++ b/core.js @@ -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 {