music-metadata 10.9.0 → 11.0.0

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.
@@ -10,13 +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 /**
14
- * Specifies the amount of time to buffer data before starting to play the file, in millisecond units.
15
- * If this value is nonzero, the Play Duration field and all of the payload Presentation Time fields have been offset
16
- * by this amount. Therefore, player software must subtract the value in the preroll field from the play duration and
17
- * presentation times to calculate their actual values. It follows that all payload Presentation Time fields need to
18
- * be at least this value.
19
- */[]) => any) | undefined;
13
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
20
14
  stackTraceLimit: number;
21
15
  };
22
16
  export declare class AsfContentParseError extends AsfContentParseError_base {
package/lib/core.d.ts CHANGED
@@ -57,4 +57,3 @@ export declare function ratingToStars(rating: number | undefined): number;
57
57
  */
58
58
  export declare function selectCover(pictures?: IPicture[]): IPicture | null;
59
59
  export declare function scanAppendingHeaders(tokenizer: IRandomAccessTokenizer, options?: IPrivateOptions): Promise<void>;
60
- export declare function loadMusicMetadata(): Promise<typeof import('music-metadata')>;
package/lib/index.js CHANGED
@@ -43,4 +43,3 @@ export async function parseFile(filePath, options = {}) {
43
43
  await fileTokenizer.close();
44
44
  }
45
45
  }
46
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,151 +1,147 @@
1
- {
2
- "name": "music-metadata",
3
- "description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
4
- "version": "10.9.0",
5
- "author": {
6
- "name": "Borewit",
7
- "url": "https://github.com/Borewit"
8
- },
9
- "funding": [
10
- {
11
- "type": "github",
12
- "url": "https://github.com/sponsors/Borewit"
13
- },
14
- {
15
- "type": "buymeacoffee",
16
- "url": "https://buymeacoffee.com/borewit"
17
- }
18
- ],
19
- "type": "module",
20
- "exports": {
21
- ".": {
22
- "node": {
23
- "import": "./lib/index.js",
24
- "module-sync": "./lib/index.js",
25
- "require": "./lib/node.cjs",
26
- "types": "./lib/index.d.ts"
27
- },
28
- "default": {
29
- "import": "./lib/core.js",
30
- "module-sync": "./lib/index.js",
31
- "require": "./lib/default.cjs",
32
- "types": "./lib/core.d.ts"
33
- }
34
- }
35
- },
36
- "types": "lib/index.d.ts",
37
- "files": [
38
- "lib/**/*.js",
39
- "lib/**/*.d.ts",
40
- "lib/*.cjs"
41
- ],
42
- "keywords": [
43
- "music",
44
- "metadata",
45
- "meta",
46
- "audio",
47
- "tag",
48
- "tags",
49
- "duration",
50
- "MusicBrainz",
51
- "Discogs",
52
- "Picard",
53
- "ID3",
54
- "ID3v1",
55
- "ID3v2",
56
- "m4a",
57
- "m4b",
58
- "mp3",
59
- "mp4",
60
- "Vorbis",
61
- "ogg",
62
- "flac",
63
- "Matroska",
64
- "WebM",
65
- "EBML",
66
- "asf",
67
- "wma",
68
- "wmv",
69
- "ape",
70
- "MonkeyAudio",
71
- "aiff",
72
- "wav",
73
- "WavPack",
74
- "Opus",
75
- "speex",
76
- "musepack",
77
- "mpc",
78
- "dsd",
79
- "dsf",
80
- "mpc",
81
- "dff",
82
- "dsdiff",
83
- "aac",
84
- "adts",
85
- "length",
86
- "chapter",
87
- "info",
88
- "parse",
89
- "parser",
90
- "bwf",
91
- "slt",
92
- "lyrics"
93
- ],
94
- "scripts": {
95
- "clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'test/**/*.js' 'test/**/*.js.map' 'doc-gen/**/*.js' 'doc-gen/**/*.js.map'",
96
- "compile-src": "tsc -p lib",
97
- "compile-test": "tsc -p test",
98
- "compile-doc": "tsc -p doc-gen",
99
- "compile": "yarn run compile-src && yarn compile-test && yarn compile-doc",
100
- "lint-ts": "biome check",
101
- "lint-md": "yarn run remark -u remark-preset-lint-consistent .",
102
- "lint": "yarn run lint-ts && yarn run lint-md",
103
- "test": "mocha",
104
- "build": "yarn run clean && yarn compile && yarn run doc-gen",
105
- "test-coverage": "c8 yarn run test",
106
- "send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
107
- "doc-gen": "yarn node doc-gen/gen.js"
108
- },
109
- "dependencies": {
110
- "@tokenizer/token": "^0.3.0",
111
- "content-type": "^1.0.5",
112
- "debug": "^4.4.0",
113
- "file-type": "^19.6.0",
114
- "link": "^2.1.1",
115
- "media-typer": "^1.1.0",
116
- "strtok3": "^10.2.1",
117
- "token-types": "^6.0.0",
118
- "uint8array-extras": "^1.4.0"
119
- },
120
- "devDependencies": {
121
- "@biomejs/biome": "1.9.4",
122
- "@types/chai": "^5.0.1",
123
- "@types/chai-as-promised": "^8.0.1",
124
- "@types/content-type": "^1.1.8",
125
- "@types/debug": "^4.1.12",
126
- "@types/media-typer": "^1.1.3",
127
- "@types/mocha": "^10.0.10",
128
- "@types/node": "^22.13.1",
129
- "c8": "^10.1.3",
130
- "chai": "^5.1.2",
131
- "chai-as-promised": "^8.0.1",
132
- "del-cli": "^6.0.0",
133
- "mime": "^4.0.6",
134
- "mocha": "^11.1.0",
135
- "remark-cli": "^12.0.1",
136
- "remark-preset-lint-consistent": "^6.0.1",
137
- "ts-node": "^10.9.2",
138
- "typescript": "^5.7.3"
139
- },
140
- "engines": {
141
- "node": ">=18"
142
- },
143
- "repository": {
144
- "type": "https://github.com/borewit/music-metadata.git"
145
- },
146
- "license": "MIT",
147
- "bugs": {
148
- "url": "https://github.com/Borewit/music-metadata/issues"
149
- },
150
- "packageManager": "yarn@4.6.0"
151
- }
1
+ {
2
+ "name": "music-metadata",
3
+ "description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
4
+ "version": "11.0.0",
5
+ "author": {
6
+ "name": "Borewit",
7
+ "url": "https://github.com/Borewit"
8
+ },
9
+ "funding": [
10
+ {
11
+ "type": "github",
12
+ "url": "https://github.com/sponsors/Borewit"
13
+ },
14
+ {
15
+ "type": "buymeacoffee",
16
+ "url": "https://buymeacoffee.com/borewit"
17
+ }
18
+ ],
19
+ "type": "module",
20
+ "exports": {
21
+ "node": {
22
+ "import": "./lib/index.js",
23
+ "module-sync": "./lib/index.js",
24
+ "types": "./lib/index.d.ts"
25
+ },
26
+ "default": {
27
+ "import": "./lib/core.js",
28
+ "module-sync": "./lib/core.js",
29
+ "types": "./lib/core.d.ts"
30
+ }
31
+ },
32
+ "types": "lib/index.d.ts",
33
+ "files": [
34
+ "lib/**/*.js",
35
+ "lib/**/*.d.ts"
36
+ ],
37
+ "keywords": [
38
+ "music",
39
+ "metadata",
40
+ "meta",
41
+ "audio",
42
+ "tag",
43
+ "tags",
44
+ "duration",
45
+ "MusicBrainz",
46
+ "Discogs",
47
+ "Picard",
48
+ "ID3",
49
+ "ID3v1",
50
+ "ID3v2",
51
+ "m4a",
52
+ "m4b",
53
+ "mp3",
54
+ "mp4",
55
+ "Vorbis",
56
+ "ogg",
57
+ "flac",
58
+ "Matroska",
59
+ "WebM",
60
+ "EBML",
61
+ "asf",
62
+ "wma",
63
+ "wmv",
64
+ "ape",
65
+ "MonkeyAudio",
66
+ "aiff",
67
+ "wav",
68
+ "WavPack",
69
+ "Opus",
70
+ "speex",
71
+ "musepack",
72
+ "mpc",
73
+ "dsd",
74
+ "dsf",
75
+ "mpc",
76
+ "dff",
77
+ "dsdiff",
78
+ "aac",
79
+ "adts",
80
+ "length",
81
+ "chapter",
82
+ "info",
83
+ "parse",
84
+ "parser",
85
+ "bwf",
86
+ "slt",
87
+ "lyrics"
88
+ ],
89
+ "scripts": {
90
+ "clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map' 'test/**/*.js' 'test/**/*.js.map' 'doc-gen/**/*.js' 'doc-gen/**/*.js.map'",
91
+ "compile-src": "tsc -p lib",
92
+ "compile-test": "tsc -p test",
93
+ "compile-doc": "tsc -p doc-gen",
94
+ "compile": "yarn run compile-src && yarn compile-test && yarn compile-doc",
95
+ "lint-ts": "biome check",
96
+ "lint-md": "yarn run remark -u remark-preset-lint-consistent .",
97
+ "lint": "yarn run lint-ts && yarn run lint-md",
98
+ "test": "mocha",
99
+ "build": "yarn run clean && yarn compile && yarn run doc-gen",
100
+ "test-coverage": "c8 yarn run test",
101
+ "send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
102
+ "doc-gen": "yarn node doc-gen/gen.js"
103
+ },
104
+ "dependencies": {
105
+ "@tokenizer/token": "^0.3.0",
106
+ "content-type": "^1.0.5",
107
+ "debug": "^4.4.0",
108
+ "file-type": "^19.6.0",
109
+ "link": "^2.1.1",
110
+ "media-typer": "^1.1.0",
111
+ "strtok3": "^10.2.1",
112
+ "token-types": "^6.0.0",
113
+ "uint8array-extras": "^1.4.0"
114
+ },
115
+ "devDependencies": {
116
+ "@biomejs/biome": "1.9.4",
117
+ "@types/chai": "^5.0.1",
118
+ "@types/chai-as-promised": "^8.0.1",
119
+ "@types/content-type": "^1.1.8",
120
+ "@types/debug": "^4.1.12",
121
+ "@types/media-typer": "^1.1.3",
122
+ "@types/mocha": "^10.0.10",
123
+ "@types/node": "^22.13.4",
124
+ "c8": "^10.1.3",
125
+ "chai": "^5.2.0",
126
+ "chai-as-promised": "^8.0.1",
127
+ "del-cli": "^6.0.0",
128
+ "mime": "^4.0.6",
129
+ "mocha": "^11.1.0",
130
+ "node-readable-to-web-readable-stream": "^0.3.1",
131
+ "remark-cli": "^12.0.1",
132
+ "remark-preset-lint-consistent": "^6.0.1",
133
+ "ts-node": "^10.9.2",
134
+ "typescript": "^5.7.3"
135
+ },
136
+ "engines": {
137
+ "node": ">=18"
138
+ },
139
+ "repository": {
140
+ "type": "https://github.com/borewit/music-metadata.git"
141
+ },
142
+ "license": "MIT",
143
+ "bugs": {
144
+ "url": "https://github.com/Borewit/music-metadata/issues"
145
+ },
146
+ "packageManager": "yarn@4.6.0"
147
+ }
package/lib/default.cjs DELETED
@@ -1,5 +0,0 @@
1
- // CommonJS core (default) entry point
2
- "use strict";
3
- module.exports = {
4
- loadMusicMetadata: () => import('./core.js'),
5
- };
package/lib/node.cjs DELETED
@@ -1,5 +0,0 @@
1
- // CommonJS Node entry point
2
- "use strict";
3
- module.exports = {
4
- loadMusicMetadata: () => import('./index.js'),
5
- };