From cff652760ae05c3c397c793733dc2b505c529f76 Mon Sep 17 00:00:00 2001 From: Borewit Date: Sun, 1 Dec 2024 12:11:55 +0100 Subject: [PATCH] Update dependency strtok3 to version 10.0.0 --- lib/mpeg/MpegParser.ts | 2 +- package.json | 2 +- yarn.lock | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/mpeg/MpegParser.ts b/lib/mpeg/MpegParser.ts index 6e13d8bc5..a04d712c5 100644 --- a/lib/mpeg/MpegParser.ts +++ b/lib/mpeg/MpegParser.ts @@ -422,7 +422,7 @@ export class MpegParser extends AbstractID3Parser { this.mpegOffset = this.tokenizer.position - 1; } - await this.tokenizer.peekBuffer(this.buf_frame_header, {offset: 1, length: 3}); + await this.tokenizer.peekBuffer(this.buf_frame_header.subarray(1), {length: 3}); let header: MpegFrameHeader; try { diff --git a/package.json b/package.json index 7f0b42e92..29cda5993 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,7 @@ "file-type": "^19.6.0", "link": "^2.1.1", "media-typer": "^1.1.0", - "strtok3": "^9.1.1", + "strtok3": "^10.0.0", "token-types": "^6.0.0", "uint8array-extras": "^1.4.0" }, diff --git a/yarn.lock b/yarn.lock index c7d3333e2..ef903b6ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2393,7 +2393,7 @@ __metadata: mocha: "npm:^10.8.2" remark-cli: "npm:^12.0.1" remark-preset-lint-consistent: "npm:^6.0.0" - strtok3: "npm:^9.1.1" + strtok3: "npm:^10.0.0" token-types: "npm:^6.0.0" ts-node: "npm:^10.9.2" typescript: "npm:^5.7.2" @@ -3222,23 +3222,23 @@ __metadata: languageName: node linkType: hard -"strtok3@npm:^9.0.1": - version: 9.0.1 - resolution: "strtok3@npm:9.0.1" +"strtok3@npm:^10.0.0": + version: 10.0.0 + resolution: "strtok3@npm:10.0.0" dependencies: "@tokenizer/token": "npm:^0.3.0" peek-readable: "npm:^5.3.1" - checksum: 10c0/ab96030c3d30899fc885ed87b305086b6421d64c1a2b9f5240c6ecffde7b819e174d67bd3b1ecc14a10f539c7a818a0ac47386b4bbb2fa913f673b6ed1c0eb78 + checksum: 10c0/a9b3b37b4b65766bba8448098895ee1e175e1f592833aa41852ca745aa35a9de01a2da23ff929d2ee4eb55d3e14f59073ff3d1105fde789ebfb4a2f09e8642df languageName: node linkType: hard -"strtok3@npm:^9.1.1": - version: 9.1.1 - resolution: "strtok3@npm:9.1.1" +"strtok3@npm:^9.0.1": + version: 9.0.1 + resolution: "strtok3@npm:9.0.1" dependencies: "@tokenizer/token": "npm:^0.3.0" peek-readable: "npm:^5.3.1" - checksum: 10c0/ef9cd2a6cd21aec368c7f6fbd1d93548adc2c5b69ee28fa9a4b4e8fb6be6e539f3fcdf21107196e0c3fdff1c433db7e5d0fb8cab132c0b013ed9eef220bdcf2f + checksum: 10c0/ab96030c3d30899fc885ed87b305086b6421d64c1a2b9f5240c6ecffde7b819e174d67bd3b1ecc14a10f539c7a818a0ac47386b4bbb2fa913f673b6ed1c0eb78 languageName: node linkType: hard