fileTypeFromStream
throws an error in combination with strtok3@9.0.1
#681
Labels
fileTypeFromStream
throws an error in combination with strtok3@9.0.1
#681
Description
Release of strtok3 v9.0.1, will cause problems with file-type v19.5.0 (reason CI was failing). It exposes a the following issue:
file-type/index.js
Lines 13 to 17 in 0e91f7b
where the tokenizer is closed after return the promise, and not after resolving the promise.
Since strtok3 v9.0.1 to tokenizer is actually destroying the stream, which caused file-type to fail to read from the tokenizer.
Existing Issue Check
ESM (ECMAScript Module) Requirement Acknowledgment
package.json
contains the following entry:"type": "module"
.File-Type Scope Acknowledgment
The text was updated successfully, but these errors were encountered: