Skip to content

Commit c442a9e

Browse files
authored
Update strtok3 dependency to version ^10.2.0 (#727)
Co-authored-by: Borewit <[email protected]>
1 parent 3945d7f commit c442a9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
],
239239
"dependencies": {
240240
"@tokenizer/inflate": "^0.2.6",
241-
"strtok3": "^10.0.1",
241+
"strtok3": "^10.2.0",
242242
"token-types": "^6.0.0",
243243
"uint8array-extras": "^1.4.0"
244244
},

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ test('.fileTypeFromStream() method - be able to abort operation', async t => {
491491
const promiseFileType = parser.fromStream(shortStream);
492492
abortController.abort(); // Abort asynchronous operation: reading from shortStream
493493
const error = await t.throwsAsync(promiseFileType);
494-
t.is(error.message, 'Stream closed');
494+
t.true(error instanceof strtok3.AbortError, 'Expect error te be an instanceof AbortError');
495495
});
496496

497497
test('supportedExtensions.has', t => {

0 commit comments

Comments
 (0)