exiftool-vendored 24.0.0 → 24.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/CHANGELOG.md CHANGED
@@ -26,11 +26,15 @@ vendored versions of ExifTool match the version that they vendor.
26
26
 
27
27
  ## Version history
28
28
 
29
+ ### v24.1.0
30
+
31
+ - 📦 Relaxed `isWarning()` detection to be simply `/warning:/i`. v24.0.0 would throw errors when extracting binary thumbnails due to issues like "Warning: Ignored non-standard EXIF at TIFF-IFD0-JPEG-APP1-IFD0", which is decidedly a warning. `ExifTool.write` now leans (hard) on returning `.warnings` rather than throwing errors: **It is up to you to inspect `.warnings` and decide for your own usecase if the issue is exceptional**. See [issue #162](https://github.com/photostructure/exiftool-vendored.js/issues/162) for details.
32
+
29
33
  ### v24.0.0
30
34
 
31
35
  - 💔 In the interests of reducing complexity, the `ExifToolOptions.isIgnorableError` predicate field was removed -- if this was used by anyone, please open an issue and we can talk about it.
32
36
 
33
- - 💔 `ExifTool.write` now returns metadata describing how many files were unchanged, updated, or created, and no longer throws an error if the operation is a no-op. See [issue #162](https://github.com/photostructure/exiftool-vendored.js/issues/162) for details.
37
+ - 💔 `ExifTool.write` now returns metadata describing how many files were unchanged, updated, or created, and **no longer throws errors** if the operation is a no-op or inputs are invalid. See [issue #162](https://github.com/photostructure/exiftool-vendored.js/issues/162) for details.
34
38
 
35
39
  - ✨ `.warnings` are returned by `ExifTool.read` and `ExifTool.write` tasks if there are non-critical warnings emitted to `stderr` by ExifTool.
36
40
 
package/dist/IsWarning.js CHANGED
@@ -2,11 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isWarning = void 0;
4
4
  const String_1 = require("./String");
5
- // These are ignorable:
6
- // Warning: Duplicate MakerNoteUnknown tag in ExifIFD
7
- // These are not:
8
- // Warning: Tag 'INVALID_TAG_NAME' is not defined
9
- const WarningRE = /^warning: duplicate \w+ tag|^error: nothing to write|^nothing to do|^warning: icc_profile deleted/i;
5
+ // This is quite lax by design: it's up to the user to check .warnings!
6
+ const WarningRE = /\bwarning: |\bnothing to (?:write|do)\b/i;
10
7
  /**
11
8
  * This is the default implementation of IgnorableError, and ignores null,
12
9
  * undefined, errors without a message, warnings about duplicate tags, and
@@ -1 +1 @@
1
- {"version":3,"file":"IsWarning.js","sourceRoot":"","sources":["../src/IsWarning.ts"],"names":[],"mappings":";;;AACA,qCAAqC;AAMrC,uBAAuB;AACvB,qDAAqD;AAErD,iBAAiB;AACjB,iDAAiD;AAEjD,MAAM,SAAS,GACb,oGAAoG,CAAA;AACtG;;;;GAIG;AACH,SAAgB,SAAS,CAAC,GAA0B;IAClD,IAAI,GAAG,IAAI,IAAI;QAAE,OAAO,IAAI,CAAA;IAC5B,MAAM,GAAG,GAAG,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,YAAG,EAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;IAClE,OAAO,IAAA,cAAK,EAAC,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC1C,CAAC;AAJD,8BAIC"}
1
+ {"version":3,"file":"IsWarning.js","sourceRoot":"","sources":["../src/IsWarning.ts"],"names":[],"mappings":";;;AACA,qCAAqC;AAMrC,uEAAuE;AAEvE,MAAM,SAAS,GAAG,0CAA0C,CAAA;AAE5D;;;;GAIG;AACH,SAAgB,SAAS,CAAC,GAA0B;IAClD,IAAI,GAAG,IAAI,IAAI;QAAE,OAAO,IAAI,CAAA;IAC5B,MAAM,GAAG,GAAG,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,YAAG,EAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;IAClE,OAAO,IAAA,cAAK,EAAC,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC1C,CAAC;AAJD,8BAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exiftool-vendored",
3
- "version": "24.0.0",
3
+ "version": "24.1.0",
4
4
  "description": "Efficient, cross-platform access to ExifTool",
5
5
  "main": "./dist/ExifTool.js",
6
6
  "types": "./dist/ExifTool.d.ts",