exifreader 4.31.0 → 4.31.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/exif-reader.d.ts CHANGED
@@ -502,7 +502,7 @@ interface ExifTags {
502
502
  'Category'?: NumberArrayTag, // StringTag
503
503
  'Supplemental Category'?: NumberArrayTag, // StringTag
504
504
  'Fixture Identifier'?: NumberArrayTag, // StringTag
505
- 'Keywords'?: NumberArrayTag[], // StringTag
505
+ 'Keywords'?: NumberArrayTag | NumberArrayTag[], // StringTag
506
506
  'Content Location Code'?: NumberArrayTag, // StringTag
507
507
  'Content Location Name'?: NumberArrayTag, // StringTag
508
508
  'Release Date'?: NumberArrayTag, // StringTag
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exifreader",
3
- "version": "4.31.0",
3
+ "version": "4.31.1",
4
4
  "description": "Library that parses Exif metadata in images.",
5
5
  "author": "Mattias Wallander <mattias@wallander.eu>",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "@babel/core": "^7.25.2",
29
29
  "@babel/preset-env": "^7.25.4",
30
30
  "@babel/register": "^7.24.6",
31
- "@types/node": "^20.16.10",
31
+ "@types/node": "^24.0.3",
32
32
  "babel-loader": "^10.0.0",
33
33
  "babel-plugin-rewire": "^1.2.0",
34
34
  "chai": "^4.3.10",
package/src/icc-tags.js CHANGED
@@ -94,7 +94,7 @@ export function parseTags(dataView) {
94
94
  throw new Error('ICC profile length not matching');
95
95
  }
96
96
 
97
- if (dataView.length < PROFILE_HEADER_LENGTH) {
97
+ if (dataView.byteLength < PROFILE_HEADER_LENGTH) {
98
98
  throw new Error('ICC profile too short');
99
99
  }
100
100
 
@@ -12,7 +12,7 @@ import {objectAssign} from './utils.js';
12
12
  import {readIfd} from './tags-helpers.js';
13
13
  import {IFD_TYPE_PENTAX} from './tag-names.js';
14
14
 
15
- const BYTE_ORDER_OFFSET = 8; // Pextax5: https://exiftool.org/makernote_types.html
15
+ const BYTE_ORDER_OFFSET = 8; // Pentax5: https://exiftool.org/makernote_types.html
16
16
  const PENTAX_IFD_OFFSET = BYTE_ORDER_OFFSET + 2; // https://exiftool.org/makernote_types.html
17
17
 
18
18
  const MODEL_ID = {