music-metadata 11.2.1 → 11.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Node.js CI](https://github.com/Borewit/music-metadata/actions/workflows/nodejs-ci.yml/badge.svg?branch=master)](https://github.com/Borewit/music-metadata/actions?query=branch%3Amaster)
1
+ [![CI](https://github.com/Borewit/music-metadata/actions/workflows/ci.yml/badge.svg)](https://github.com/Borewit/music-metadata/actions/workflows/ci.yml)
2
2
  [![NPM version](https://img.shields.io/npm/v/music-metadata.svg)](https://npmjs.org/package/music-metadata)
3
3
  [![npm downloads](http://img.shields.io/npm/dm/music-metadata.svg)](https://npmcharts.com/compare/music-metadata?start=600&interval=30)
4
4
  [![Coverage Status](https://coveralls.io/repos/github/Borewit/music-metadata/badge.svg?branch=master)](https://coveralls.io/github/Borewit/music-metadata?branch=master)
@@ -6,7 +6,7 @@ export declare const makeParseError: <Name extends string>(name: Name) => {
6
6
  stack?: string;
7
7
  };
8
8
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
9
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
9
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
10
10
  stackTraceLimit: number;
11
11
  };
12
12
  declare const CouldNotDetermineFileTypeError_base: {
@@ -16,7 +16,7 @@ declare const CouldNotDetermineFileTypeError_base: {
16
16
  stack?: string;
17
17
  };
18
18
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
19
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
19
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
20
20
  stackTraceLimit: number;
21
21
  };
22
22
  export declare class CouldNotDetermineFileTypeError extends CouldNotDetermineFileTypeError_base {
@@ -28,7 +28,7 @@ declare const UnsupportedFileTypeError_base: {
28
28
  stack?: string;
29
29
  };
30
30
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
31
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
31
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
32
32
  stackTraceLimit: number;
33
33
  };
34
34
  export declare class UnsupportedFileTypeError extends UnsupportedFileTypeError_base {
@@ -40,7 +40,7 @@ declare const UnexpectedFileContentError_base: {
40
40
  stack?: string;
41
41
  };
42
42
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
43
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
43
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
44
44
  stackTraceLimit: number;
45
45
  };
46
46
  declare class UnexpectedFileContentError extends UnexpectedFileContentError_base {
@@ -55,7 +55,7 @@ declare const FieldDecodingError_base: {
55
55
  stack?: string;
56
56
  };
57
57
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
58
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
58
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
59
59
  stackTraceLimit: number;
60
60
  };
61
61
  export declare class FieldDecodingError extends FieldDecodingError_base {
@@ -67,7 +67,7 @@ declare const InternalParserError_base: {
67
67
  stack?: string;
68
68
  };
69
69
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
70
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
70
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
71
71
  stackTraceLimit: number;
72
72
  };
73
73
  export declare class InternalParserError extends InternalParserError_base {
@@ -81,7 +81,7 @@ export declare const makeUnexpectedFileContentError: <FileType extends string>(f
81
81
  stack?: string;
82
82
  };
83
83
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
84
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
84
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
85
85
  stackTraceLimit: number;
86
86
  };
87
87
  export {};
@@ -21,7 +21,7 @@ declare const AiffContentError_base: {
21
21
  stack?: string;
22
22
  };
23
23
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
24
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
24
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
25
25
  stackTraceLimit: number;
26
26
  };
27
27
  export declare class AiffContentError extends AiffContentError_base {
@@ -13,7 +13,7 @@ declare const ApeContentError_base: {
13
13
  stack?: string;
14
14
  };
15
15
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
16
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
16
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
17
17
  stackTraceLimit: number;
18
18
  };
19
19
  export declare class ApeContentError extends ApeContentError_base {
@@ -10,7 +10,7 @@ declare const AsfContentParseError_base: {
10
10
  stack?: string;
11
11
  };
12
12
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
13
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
13
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
14
14
  stackTraceLimit: number;
15
15
  };
16
16
  export declare class AsfContentParseError extends AsfContentParseError_base {
@@ -8,7 +8,7 @@ declare const DsdiffContentParseError_base: {
8
8
  stack?: string;
9
9
  };
10
10
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
11
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
12
12
  stackTraceLimit: number;
13
13
  };
14
14
  export declare class DsdiffContentParseError extends DsdiffContentParseError_base {
@@ -8,7 +8,7 @@ declare const DsdContentParseError_base: {
8
8
  stack?: string;
9
9
  };
10
10
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
11
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
12
12
  stackTraceLimit: number;
13
13
  };
14
14
  export declare class DsdContentParseError extends DsdContentParseError_base {
@@ -9,7 +9,7 @@ declare const EbmlContentError_base: {
9
9
  stack?: string;
10
10
  };
11
11
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
12
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
13
13
  stackTraceLimit: number;
14
14
  };
15
15
  export declare class EbmlContentError extends EbmlContentError_base {
@@ -66,7 +66,7 @@ declare const Id3v2ContentError_base: {
66
66
  stack?: string;
67
67
  };
68
68
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
69
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
69
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
70
70
  stackTraceLimit: number;
71
71
  };
72
72
  export declare class Id3v2ContentError extends Id3v2ContentError_base {
@@ -1,7 +1,7 @@
1
1
  export const matroskaParserLoader = {
2
2
  parserType: 'matroska',
3
3
  extensions: ['.mka', '.mkv', '.mk3d', '.mks', 'webm'],
4
- mimeTypes: ['audio/matroska', 'audio/webm', 'video/webm'],
4
+ mimeTypes: ['audio/matroska', 'video/matroska', 'audio/webm', 'video/webm'],
5
5
  async load() {
6
6
  return (await import('./MatroskaParser.js')).MatroskaParser;
7
7
  }
@@ -8,7 +8,7 @@ declare const Mp4ContentError_base: {
8
8
  stack?: string;
9
9
  };
10
10
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
11
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
12
12
  stackTraceLimit: number;
13
13
  };
14
14
  export declare class Mp4ContentError extends Mp4ContentError_base {
@@ -8,7 +8,7 @@ declare const MpegContentError_base: {
8
8
  stack?: string;
9
9
  };
10
10
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
11
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
12
12
  stackTraceLimit: number;
13
13
  };
14
14
  export declare class MpegContentError extends MpegContentError_base {
@@ -7,7 +7,7 @@ declare const MusepackContentError_base: {
7
7
  stack?: string;
8
8
  };
9
9
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
10
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
10
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
11
11
  stackTraceLimit: number;
12
12
  };
13
13
  export declare class MusepackContentError extends MusepackContentError_base {
@@ -10,7 +10,7 @@ declare const OggContentError_base: {
10
10
  stack?: string;
11
11
  };
12
12
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
13
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
13
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
14
14
  stackTraceLimit: number;
15
15
  };
16
16
  export declare class OggContentError extends OggContentError_base {
@@ -46,7 +46,7 @@ declare const OpusContentError_base: {
46
46
  stack?: string;
47
47
  };
48
48
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
49
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
49
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
50
50
  stackTraceLimit: number;
51
51
  };
52
52
  export declare class OpusContentError extends OpusContentError_base {
@@ -11,7 +11,7 @@ declare const VorbisContentError_base: {
11
11
  stack?: string;
12
12
  };
13
13
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
14
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
14
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
15
15
  stackTraceLimit: number;
16
16
  };
17
17
  export declare class VorbisContentError extends VorbisContentError_base {
@@ -9,7 +9,7 @@ declare const WaveContentError_base: {
9
9
  stack?: string;
10
10
  };
11
11
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
12
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
13
13
  stackTraceLimit: number;
14
14
  };
15
15
  export declare class WaveContentError extends WaveContentError_base {
@@ -8,7 +8,7 @@ declare const WavPackContentError_base: {
8
8
  stack?: string;
9
9
  };
10
10
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
11
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
12
12
  stackTraceLimit: number;
13
13
  };
14
14
  export declare class WavPackContentError extends WavPackContentError_base {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "music-metadata",
3
3
  "description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
4
- "version": "11.2.1",
4
+ "version": "11.2.2",
5
5
  "author": {
6
6
  "name": "Borewit",
7
7
  "url": "https://github.com/Borewit"
@@ -106,8 +106,8 @@
106
106
  "dependencies": {
107
107
  "@tokenizer/token": "^0.3.0",
108
108
  "content-type": "^1.0.5",
109
- "debug": "^4.4.0",
110
- "file-type": "^20.4.1",
109
+ "debug": "^4.4.1",
110
+ "file-type": "^20.5.0",
111
111
  "media-typer": "^1.1.0",
112
112
  "strtok3": "^10.2.2",
113
113
  "token-types": "^6.0.0",
@@ -115,19 +115,19 @@
115
115
  },
116
116
  "devDependencies": {
117
117
  "@biomejs/biome": "1.9.4",
118
- "@types/chai": "^5.2.1",
118
+ "@types/chai": "^5.2.2",
119
119
  "@types/chai-as-promised": "^8.0.2",
120
120
  "@types/content-type": "^1.1.8",
121
121
  "@types/debug": "^4.1.12",
122
122
  "@types/media-typer": "^1.1.3",
123
123
  "@types/mocha": "^10.0.10",
124
- "@types/node": "^22.14.1",
124
+ "@types/node": "^22.15.12",
125
125
  "c8": "^10.1.3",
126
126
  "chai": "^5.2.0",
127
127
  "chai-as-promised": "^8.0.1",
128
128
  "del-cli": "^6.0.0",
129
129
  "mime": "^4.0.7",
130
- "mocha": "^11.1.0",
130
+ "mocha": "^11.2.2",
131
131
  "node-readable-to-web-readable-stream": "^0.4.2",
132
132
  "remark-cli": "^12.0.1",
133
133
  "remark-preset-lint-consistent": "^6.0.1",