taglib-wasm 1.8.3 → 2.1.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.
- package/README.md +8 -1
- package/dist/disc-folder.d.ts +19 -0
- package/dist/disc-folder.d.ts.map +1 -0
- package/dist/disc-folder.js +550 -0
- package/dist/index.browser.d.ts +3 -4
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +187 -176
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -12
- package/dist/simple.browser.js +172 -33
- package/dist/src/constants/complex-properties.d.ts +0 -114
- package/dist/src/constants/complex-properties.d.ts.map +1 -1
- package/dist/src/constants/complex-properties.js +0 -55
- package/dist/src/constants/index.d.ts +0 -1
- package/dist/src/constants/index.d.ts.map +1 -1
- package/dist/src/constants/index.js +0 -1
- package/dist/src/constants/utilities.d.ts +13 -0
- package/dist/src/constants/utilities.d.ts.map +1 -1
- package/dist/src/constants/utilities.js +9 -1
- package/dist/src/file-utils/import-operations.d.ts.map +1 -1
- package/dist/src/file-utils/import-operations.js +1 -1
- package/dist/src/folder-api/file-processors.d.ts.map +1 -1
- package/dist/src/folder-api/file-processors.js +6 -5
- package/dist/src/folder-api/scan-for-albums.js +3 -3
- package/dist/src/folder-api/scan-operations.js +2 -2
- package/dist/src/msgpack/decoder.d.ts +2 -2
- package/dist/src/msgpack/decoder.d.ts.map +1 -1
- package/dist/src/msgpack/decoder.js +5 -6
- package/dist/src/msgpack/encoder.d.ts.map +1 -1
- package/dist/src/msgpack/encoder.js +9 -6
- package/dist/src/msgpack/index.d.ts +1 -1
- package/dist/src/msgpack/index.d.ts.map +1 -1
- package/dist/src/msgpack/types.d.ts +10 -0
- package/dist/src/msgpack/types.d.ts.map +1 -1
- package/dist/src/msgpack/utils.d.ts +2 -1
- package/dist/src/msgpack/utils.d.ts.map +1 -1
- package/dist/src/runtime/module-loader-browser.d.ts.map +1 -1
- package/dist/src/runtime/module-loader.d.ts.map +1 -1
- package/dist/src/runtime/module-loader.js +3 -3
- package/dist/src/runtime/platform-io.js +1 -1
- package/dist/src/runtime/unified-loader/module-loading.d.ts.map +1 -1
- package/dist/src/runtime/unified-loader/module-loading.js +1 -1
- package/dist/src/runtime/wasi-adapter/file-handle.d.ts +8 -0
- package/dist/src/runtime/wasi-adapter/file-handle.d.ts.map +1 -1
- package/dist/src/runtime/wasi-adapter/file-handle.js +44 -4
- package/dist/src/runtime/wasi-fs-deno.d.ts.map +1 -1
- package/dist/src/runtime/wasi-fs-deno.js +1 -1
- package/dist/src/simple/batch-operations.d.ts.map +1 -1
- package/dist/src/simple/batch-operations.js +14 -10
- package/dist/src/simple/picture-operations.js +1 -1
- package/dist/src/taglib/audio-file-base.d.ts +15 -9
- package/dist/src/taglib/audio-file-base.d.ts.map +1 -1
- package/dist/src/taglib/audio-file-base.js +35 -4
- package/dist/src/taglib/audio-file-impl.d.ts +2 -2
- package/dist/src/taglib/audio-file-impl.d.ts.map +1 -1
- package/dist/src/taglib/audio-file-impl.js +25 -13
- package/dist/src/taglib/audio-file-interface.d.ts +27 -6
- package/dist/src/taglib/audio-file-interface.d.ts.map +1 -1
- package/dist/src/taglib/auto-dispose.d.ts +6 -0
- package/dist/src/taglib/auto-dispose.d.ts.map +1 -0
- package/dist/src/taglib/auto-dispose.js +13 -0
- package/dist/src/taglib/embind-adapter.d.ts +2 -2
- package/dist/src/taglib/embind-adapter.d.ts.map +1 -1
- package/dist/src/taglib/embind-adapter.js +17 -0
- package/dist/src/taglib/extra-state-registry.d.ts.map +1 -1
- package/dist/src/taglib/extra-state-registry.js +9 -0
- package/dist/src/taglib/metadata-extent.d.ts.map +1 -1
- package/dist/src/taglib/metadata-extent.js +44 -1
- package/dist/src/taglib/mutable-tag.d.ts +15 -15
- package/dist/src/taglib/mutable-tag.d.ts.map +1 -1
- package/dist/src/taglib/save-reconstruct.d.ts.map +1 -1
- package/dist/src/taglib/taglib-class.d.ts.map +1 -1
- package/dist/src/types/tags.d.ts +0 -4
- package/dist/src/types/tags.d.ts.map +1 -1
- package/dist/src/utils/mirror-fields.d.ts +2 -0
- package/dist/src/utils/mirror-fields.d.ts.map +1 -1
- package/dist/src/utils/mirror-fields.js +11 -3
- package/dist/src/utils/node-fs.d.ts +10 -10
- package/dist/src/utils/node-fs.d.ts.map +1 -1
- package/dist/src/utils/node-fs.js +2 -1
- package/dist/src/utils/tag-mapping.d.ts.map +1 -1
- package/dist/src/utils/tag-mapping.js +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/wasm.d.ts +20 -1
- package/dist/src/wasm.d.ts.map +1 -1
- package/dist/src/web-utils/canvas.d.ts.map +1 -1
- package/dist/src/web-utils/canvas.js +6 -1
- package/dist/src/web-utils/data-url.js +1 -1
- package/dist/taglib-wasi.wasm +0 -0
- package/dist/taglib-web.wasm +0 -0
- package/dist/taglib-wrapper.js +1 -1
- package/package.json +23 -15
- package/dist/src/constants/tags.d.ts +0 -81
- package/dist/src/constants/tags.d.ts.map +0 -1
- package/dist/src/constants/tags.js +0 -86
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
const Tags = {
|
|
2
|
-
// Basic Properties
|
|
3
|
-
Title: "title",
|
|
4
|
-
Artist: "artist",
|
|
5
|
-
Album: "album",
|
|
6
|
-
Date: "date",
|
|
7
|
-
TrackNumber: "trackNumber",
|
|
8
|
-
Genre: "genre",
|
|
9
|
-
Comment: "comment",
|
|
10
|
-
// Extended Properties
|
|
11
|
-
AlbumArtist: "albumArtist",
|
|
12
|
-
Composer: "composer",
|
|
13
|
-
Copyright: "copyright",
|
|
14
|
-
EncodedBy: "encodedBy",
|
|
15
|
-
DiscNumber: "discNumber",
|
|
16
|
-
TotalTracks: "totalTracks",
|
|
17
|
-
TotalDiscs: "totalDiscs",
|
|
18
|
-
Compilation: "compilation",
|
|
19
|
-
Bpm: "bpm",
|
|
20
|
-
Lyricist: "lyricist",
|
|
21
|
-
Conductor: "conductor",
|
|
22
|
-
Remixer: "remixedBy",
|
|
23
|
-
Language: "language",
|
|
24
|
-
Publisher: "publisher",
|
|
25
|
-
Mood: "mood",
|
|
26
|
-
Media: "media",
|
|
27
|
-
RadioStationOwner: "radioStationOwner",
|
|
28
|
-
Producer: "producer",
|
|
29
|
-
Subtitle: "subtitle",
|
|
30
|
-
Label: "label",
|
|
31
|
-
// Sorting Properties
|
|
32
|
-
TitleSort: "titleSort",
|
|
33
|
-
ArtistSort: "artistSort",
|
|
34
|
-
AlbumArtistSort: "albumArtistSort",
|
|
35
|
-
AlbumSort: "albumSort",
|
|
36
|
-
ComposerSort: "composerSort",
|
|
37
|
-
// Identifiers
|
|
38
|
-
Isrc: "isrc",
|
|
39
|
-
Asin: "asin",
|
|
40
|
-
CatalogNumber: "catalogNumber",
|
|
41
|
-
Barcode: "barcode",
|
|
42
|
-
// MusicBrainz Identifiers
|
|
43
|
-
MusicBrainzArtistId: "musicbrainzArtistId",
|
|
44
|
-
MusicBrainzReleaseArtistId: "musicbrainzReleaseArtistId",
|
|
45
|
-
MusicBrainzWorkId: "musicbrainzWorkId",
|
|
46
|
-
MusicBrainzReleaseId: "musicbrainzReleaseId",
|
|
47
|
-
MusicBrainzRecordingId: "musicbrainzTrackId",
|
|
48
|
-
MusicBrainzTrackId: "musicbrainzTrackId",
|
|
49
|
-
MusicBrainzReleaseGroupId: "musicbrainzReleaseGroupId",
|
|
50
|
-
MusicBrainzReleaseTrackId: "musicbrainzReleaseTrackId",
|
|
51
|
-
// AcoustID
|
|
52
|
-
AcoustidFingerprint: "acoustidFingerprint",
|
|
53
|
-
AcoustidId: "acoustidId",
|
|
54
|
-
// Podcast Properties
|
|
55
|
-
PodcastId: "podcastId",
|
|
56
|
-
PodcastUrl: "podcastUrl",
|
|
57
|
-
// Grouping and Work
|
|
58
|
-
Grouping: "grouping",
|
|
59
|
-
Work: "work",
|
|
60
|
-
// Additional Metadata
|
|
61
|
-
Lyrics: "lyrics",
|
|
62
|
-
AlbumGain: "replayGainAlbumGain",
|
|
63
|
-
AlbumPeak: "replayGainAlbumPeak",
|
|
64
|
-
TrackGain: "replayGainTrackGain",
|
|
65
|
-
TrackPeak: "replayGainTrackPeak",
|
|
66
|
-
// Original release
|
|
67
|
-
OriginalArtist: "originalArtist",
|
|
68
|
-
OriginalAlbum: "originalAlbum",
|
|
69
|
-
OriginalDate: "originalDate",
|
|
70
|
-
// Miscellaneous
|
|
71
|
-
Script: "script",
|
|
72
|
-
InvolvedPeople: "involvedPeople",
|
|
73
|
-
Encoding: "encoding"
|
|
74
|
-
};
|
|
75
|
-
const VALID_TAG_NAMES = new Set(Object.values(Tags));
|
|
76
|
-
function isValidTagName(name) {
|
|
77
|
-
return VALID_TAG_NAMES.has(name);
|
|
78
|
-
}
|
|
79
|
-
function getAllTagNames() {
|
|
80
|
-
return Object.values(Tags);
|
|
81
|
-
}
|
|
82
|
-
export {
|
|
83
|
-
Tags,
|
|
84
|
-
getAllTagNames,
|
|
85
|
-
isValidTagName
|
|
86
|
-
};
|