taglib-wasm 1.0.0 → 1.0.1
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/dist/index.browser.d.ts +29 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.browser.js +2495 -0
- package/dist/simple.browser.d.ts +8 -0
- package/dist/simple.browser.d.ts.map +1 -0
- package/dist/simple.browser.js +2029 -0
- package/dist/src/runtime/module-loader-browser.d.ts +16 -0
- package/dist/src/runtime/module-loader-browser.d.ts.map +1 -0
- package/dist/src/runtime/module-loader-browser.js +37 -0
- package/dist/src/taglib/taglib-class.js +2 -2
- package/package.json +20 -5
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Browser entry point for TagLib-Wasm
|
|
3
|
+
*
|
|
4
|
+
* Emscripten-only build with no WASI, Node.js, or Deno dependencies.
|
|
5
|
+
* Excludes server-only exports: folder-api, file-utils, deno-compile.
|
|
6
|
+
*
|
|
7
|
+
* @module TagLib-Wasm/browser
|
|
8
|
+
*/
|
|
9
|
+
export type { AudioFile, TypedAudioFile, } from "./src/taglib/audio-file-interface.js";
|
|
10
|
+
export { AudioFileImpl, createTagLib, TagLib } from "./src/taglib.js";
|
|
11
|
+
export type { MutableTag } from "./src/taglib.js";
|
|
12
|
+
export { EnvironmentError, FileOperationError, InvalidFormatError, isEnvironmentError, isFileOperationError, isInvalidFormatError, isMemoryError, isMetadataError, isTagLibError, isUnsupportedFormatError, MemoryError, MetadataError, SUPPORTED_FORMATS, TagLibError, TagLibInitializationError, UnsupportedFormatError, } from "./src/errors.js";
|
|
13
|
+
export type { TagLibErrorCode } from "./src/errors.js";
|
|
14
|
+
export { addPicture, applyCoverArt, applyPictures, applyTags, applyTagsToFile, type BatchItem, type BatchOptions, type BatchResult, clearPictures, clearTags, type FileMetadata, findPictureByType, isValidAudioFile, readCoverArt, readFormat, readMetadata, readMetadataBatch, readPictureMetadata, readPictures, readProperties, readPropertiesBatch, readTags, readTagsBatch, replacePictureByType, setBufferMode, } from "./src/simple/index.js";
|
|
15
|
+
export { FormatMappings, getAllProperties, getAllPropertyKeys, getAllTagNames, getPropertiesByFormat, getPropertyMetadata, isValidProperty, isValidTagName, PROPERTIES, Tags, } from "./src/constants.js";
|
|
16
|
+
export type { PropertyMetadata } from "./src/constants/property-types.js";
|
|
17
|
+
export { canvasToPicture, createPictureDownloadURL, createPictureGallery, dataURLToPicture, displayPicture, imageFileToPicture, pictureToDataURL, setCoverArtFromCanvas, } from "./src/web-utils/index.js";
|
|
18
|
+
export type { AudioCodec, AudioFileInput, AudioProperties, BitrateControlMode, ContainerFormat, ExtendedTag, FieldMapping, FileType, OpenOptions, Picture, PictureType, PropertyMap, Tag, TagInput, TagName, } from "./src/types.js";
|
|
19
|
+
export { BITRATE_CONTROL_MODE_NAMES, BITRATE_CONTROL_MODE_VALUES, PICTURE_TYPE_NAMES, PICTURE_TYPE_VALUES, } from "./src/types.js";
|
|
20
|
+
export type { PropertyKey, PropertyValue } from "./src/constants.js";
|
|
21
|
+
export type { FormatPropertyKey, TagFormat, } from "./src/types/format-property-keys.js";
|
|
22
|
+
export { COMPLEX_PROPERTIES, COMPLEX_PROPERTY_KEY, } from "./src/constants/complex-properties.js";
|
|
23
|
+
export type { ComplexPropertyKey, ComplexPropertyKeyMap, ComplexPropertyValueMap, Rating, UnsyncedLyrics, VariantMap, } from "./src/constants/complex-properties.js";
|
|
24
|
+
export { RatingUtils } from "./src/utils/rating.js";
|
|
25
|
+
export type { NormalizedRating, PopmRating } from "./src/utils/rating.js";
|
|
26
|
+
export type { TagLibModule, WasmModule } from "./src/wasm.js";
|
|
27
|
+
export type { LoadTagLibOptions } from "./src/runtime/loader-types.js";
|
|
28
|
+
export { loadTagLibModule } from "./src/runtime/module-loader-browser.js";
|
|
29
|
+
//# sourceMappingURL=index.browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.browser.d.ts","sourceR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