exifreader 4.9.0 → 4.9.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/README.md +2 -0
- package/exif-reader.d.ts +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -498,6 +498,8 @@ case is covered.
|
|
|
498
498
|
Changelog
|
|
499
499
|
---------
|
|
500
500
|
|
|
501
|
+
- **December 2021**:
|
|
502
|
+
- Add option `length` to only read the first `length` bytes of the file.
|
|
501
503
|
- **October 2021**:
|
|
502
504
|
- Major version update 4.0.0. A couple of small breaking changes that
|
|
503
505
|
shouldn't affect too many users:
|
package/exif-reader.d.ts
CHANGED
|
@@ -177,14 +177,14 @@ interface MPFImageTags {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
export function load(data: ArrayBuffer | SharedArrayBuffer | Buffer): Tags & XmpTags & IccTags;
|
|
180
|
-
export function load(data: ArrayBuffer | SharedArrayBuffer | Buffer, options: {expanded: true}): ExpandedTags;
|
|
181
|
-
export function load(data: ArrayBuffer | SharedArrayBuffer | Buffer, options: {expanded?: false}): Tags & XmpTags & IccTags;
|
|
180
|
+
export function load(data: ArrayBuffer | SharedArrayBuffer | Buffer, options: {expanded: true, includeUnknown?: boolean, length?: number}): ExpandedTags;
|
|
181
|
+
export function load(data: ArrayBuffer | SharedArrayBuffer | Buffer, options: {expanded?: false, includeUnknown?: boolean, length?: number}): Tags & XmpTags & IccTags;
|
|
182
182
|
export function load(data: string | File): Promise<Tags & XmpTags & IccTags>;
|
|
183
|
-
export function load(data: string | File, options: {expanded: true}): Promise<ExpandedTags>;
|
|
184
|
-
export function load(data: string | File, options: {expanded?: false}): Promise<Tags & XmpTags & IccTags>;
|
|
183
|
+
export function load(data: string | File, options: {expanded: true, includeUnknown?: boolean, length?: number}): Promise<ExpandedTags>;
|
|
184
|
+
export function load(data: string | File, options: {expanded?: false, includeUnknown?: boolean, length?: number}): Promise<Tags & XmpTags & IccTags>;
|
|
185
185
|
export function loadView(data: DataView): Tags & XmpTags & IccTags;
|
|
186
|
-
export function loadView(data: DataView, options: {expanded: true}): ExpandedTags;
|
|
187
|
-
export function loadView(data: DataView, options: {expanded?: false}): Tags & XmpTags & IccTags;
|
|
186
|
+
export function loadView(data: DataView, options: {expanded: true, includeUnknown?: boolean}): ExpandedTags;
|
|
187
|
+
export function loadView(data: DataView, options: {expanded?: false, includeUnknown?: boolean}): Tags & XmpTags & IccTags;
|
|
188
188
|
|
|
189
189
|
export namespace errors {
|
|
190
190
|
export class MetadataMissingError extends Error {}
|