Skip to content

Commit

Permalink
Update strtok3 dependency to version ^10.2.0 (#727)
Browse files Browse the repository at this point in the history
Co-authored-by: Borewit <Borewit@users.noreply.github.com>
  • Loading branch information
Borewit and Borewit authored Jan 31, 2025
1 parent 3945d7f commit c442a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
],
"dependencies": {
"@tokenizer/inflate": "^0.2.6",
"strtok3": "^10.0.1",
"strtok3": "^10.2.0",
"token-types": "^6.0.0",
"uint8array-extras": "^1.4.0"
},
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ test('.fileTypeFromStream() method - be able to abort operation', async t => {
const promiseFileType = parser.fromStream(shortStream);
abortController.abort(); // Abort asynchronous operation: reading from shortStream
const error = await t.throwsAsync(promiseFileType);
t.is(error.message, 'Stream closed');
t.true(error instanceof strtok3.AbortError, 'Expect error te be an instanceof AbortError');
});

test('supportedExtensions.has', t => {
Expand Down

0 comments on commit c442a9e

Please sign in to comment.