exiftool-vendored 24.3.0 → 24.4.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 +8 -0
- package/LICENSE +1 -1
- package/README.md +2 -0
- package/RELEASE.md +3 -4
- package/dist/ExifToolTask.d.ts +2 -0
- package/dist/ExifToolTask.js +11 -0
- package/dist/ExifToolTask.js.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -26,8 +26,16 @@ vendored versions of ExifTool match the version that they vendor.
|
|
|
26
26
|
|
|
27
27
|
## Version history
|
|
28
28
|
|
|
29
|
+
### v24.4.0
|
|
30
|
+
|
|
31
|
+
- 🌱 ExifTool upgraded to [v12.73](https://exiftool.org/history.html#v12.73).
|
|
32
|
+
|
|
33
|
+
- 📦 If the underlying Perl installation is invalid, throw an error. [See #168 for details.](https://github.com/photostructure/exiftool-vendored.js/issues/168)
|
|
34
|
+
|
|
29
35
|
### v24.3.0
|
|
30
36
|
|
|
37
|
+
- 🌱 ExifTool upgraded to [v12.72](https://exiftool.org/history.html#v12.72).
|
|
38
|
+
|
|
31
39
|
- 📦 Relax GPS latitude/longitude parser to handle invalid Ref values (a warning will be appended to the [Tags.warnings field](https://photostructure.github.io/exiftool-vendored.js/interfaces/Tags.html#warnings)). See [#165](https://github.com/photostructure/exiftool-vendored.js/issues/165).
|
|
32
40
|
|
|
33
41
|
### v24.2.0
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -56,6 +56,8 @@ or
|
|
|
56
56
|
|
|
57
57
|
- If you're installing on a minimal Linux distribution, you may need to install `perl`. On Alpine, run `apk add perl`.
|
|
58
58
|
|
|
59
|
+
- Node.js's `-slim` docker images don't include a working `perl` build. Use the non-slim image instead. [See the issue report for details.](https://github.com/photostructure/exiftool-vendored.js/issues/168)
|
|
60
|
+
|
|
59
61
|
## Upgrading
|
|
60
62
|
|
|
61
63
|
See the
|
package/RELEASE.md
CHANGED
|
@@ -8,15 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
3. On a Windows machine, clone
|
|
10
10
|
[exiftool-vendored.exe](https://github.com/photostructure/exiftool-vendored.exe)
|
|
11
|
-
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
4. On POSIX, in `../exiftool-vendored.pl`:
|
|
14
13
|
|
|
15
14
|
1. `git stash -u && git fetch && git checkout main && yarn install && yarn update && yarn test`
|
|
16
15
|
1. Verify diffs are in order, and commit
|
|
17
16
|
1. `npx release-it`
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
5. On Windows, in `...\exiftool-vendored.exe\`:
|
|
20
19
|
|
|
21
20
|
(The terminal built into vscode plays with `ncu` and `release-it` a bit nicer than CMD or Windows for Git's terminal)
|
|
22
21
|
|
|
@@ -24,7 +23,7 @@
|
|
|
24
23
|
1. Verify diffs are in order, and commit
|
|
25
24
|
1. `npx release-it`
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
6. Finally, back on the POSIX box, release `exiftool-vendored`:
|
|
28
27
|
|
|
29
28
|
1. `cd ../exiftool-vendored.js`
|
|
30
29
|
1. `yarn u`
|
package/dist/ExifToolTask.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import * as bc from "batch-cluster";
|
|
2
3
|
export declare abstract class ExifToolTask<T> extends bc.Task<T> {
|
|
3
4
|
#private;
|
|
@@ -6,5 +7,6 @@ export declare abstract class ExifToolTask<T> extends bc.Task<T> {
|
|
|
6
7
|
readonly errors: string[];
|
|
7
8
|
readonly warnings: string[];
|
|
8
9
|
constructor(args: string[]);
|
|
10
|
+
onStderr(buf: string | Buffer): void;
|
|
9
11
|
protected abstract parse(input: string, error?: Error): T;
|
|
10
12
|
}
|
package/dist/ExifToolTask.js
CHANGED
|
@@ -33,6 +33,7 @@ exports.ExifToolTask = void 0;
|
|
|
33
33
|
const bc = __importStar(require("batch-cluster"));
|
|
34
34
|
const IsWarning_1 = require("./IsWarning");
|
|
35
35
|
const String_1 = require("./String");
|
|
36
|
+
const BadPerlInstallationRE = /Can't locate \S+ in @INC/i;
|
|
36
37
|
class ExifToolTask extends bc.Task {
|
|
37
38
|
static renderCommand(args) {
|
|
38
39
|
return [...args, "-ignoreMinorErrors", "-execute", ""].join("\n");
|
|
@@ -44,6 +45,16 @@ class ExifToolTask extends bc.Task {
|
|
|
44
45
|
this.errors = [];
|
|
45
46
|
this.warnings = [];
|
|
46
47
|
}
|
|
48
|
+
onStderr(buf) {
|
|
49
|
+
if (BadPerlInstallationRE.test(buf.toString())) {
|
|
50
|
+
// This isn't an error we can recover from: there's a Perl module that
|
|
51
|
+
// needs to be installed. See
|
|
52
|
+
// https://github.com/photostructure/exiftool-vendored.js/issues/168 for
|
|
53
|
+
// details.
|
|
54
|
+
throw new Error(buf.toString());
|
|
55
|
+
}
|
|
56
|
+
super.onStderr(buf);
|
|
57
|
+
}
|
|
47
58
|
}
|
|
48
59
|
exports.ExifToolTask = ExifToolTask;
|
|
49
60
|
_ExifToolTask_instances = new WeakSet(), _ExifToolTask_parser = function _ExifToolTask_parser(stdout, stderr, passed) {
|
package/dist/ExifToolTask.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExifToolTask.js","sourceRoot":"","sources":["../src/ExifToolTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAmC;AACnC,2CAAuC;AAEvC,qCAA+C;AAE/C,MAAsB,YAAgB,SAAQ,EAAE,CAAC,IAAO;IACtD,MAAM,CAAC,aAAa,CAAC,IAAc;QACjC,OAAO,CAAC,GAAG,IAAI,EAAE,oBAAoB,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACnE,CAAC;IAKD,YAAqB,IAAc;QACjC,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE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QAAQ,CAAC,GAAG,CAAC,CAAA;IACrB,CAAC;CAmBF;AA1CD,oCA0CC;8FAjBS,MAAc,EAAE,MAA0B,EAAE,MAAe;IACjE,IAAI,KAAmB,CAAA;IACvB,IAAI,IAAA,iBAAQ,EAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAChC,KAAK,MAAM,IAAI,IAAI,IAAA,mBAAU,EAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC,EAAE,CAAC;YAC5C,IAAI,IAAA,qBAAS,EAAC,IAAI,CAAC,EAAE,CAAC;gBACpB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAC1B,CAAC;iBAAM,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;gBACtB,2CAA2C;gBAC3C,KAAK,aAAL,KAAK,cAAL,KAAK,IAAL,KAAK,GAAK,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,EAAA;YACpD,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAClC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exiftool-vendored",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.4.0",
|
|
4
4
|
"description": "Efficient, cross-platform access to ExifTool",
|
|
5
5
|
"main": "./dist/ExifTool.js",
|
|
6
6
|
"types": "./dist/ExifTool.d.ts",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"@types/globule": "^1.1.9",
|
|
74
74
|
"@types/he": "^1.2.3",
|
|
75
75
|
"@types/mocha": "^10.0.6",
|
|
76
|
-
"@types/node": "^20.
|
|
76
|
+
"@types/node": "^20.11.4",
|
|
77
77
|
"@types/progress": "^2.0.7",
|
|
78
78
|
"@types/tmp": "^0.2.6",
|
|
79
79
|
"@types/xmldom": "^0.1.34",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
81
|
-
"@typescript-eslint/parser": "^6.
|
|
80
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
81
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
82
82
|
"@xmldom/xmldom": "^0.8.10",
|
|
83
83
|
"chai": "^4.3.10",
|
|
84
84
|
"chai-as-promised": "^7.1.1",
|
|
@@ -86,34 +86,34 @@
|
|
|
86
86
|
"eslint": "^8.56.0",
|
|
87
87
|
"eslint-plugin-import": "^2.29.1",
|
|
88
88
|
"eslint-plugin-node": "^11.1.0",
|
|
89
|
-
"eslint-plugin-regexp": "^2.
|
|
89
|
+
"eslint-plugin-regexp": "^2.2.0",
|
|
90
90
|
"extract-zip": "^2.0.1",
|
|
91
|
-
"geo-tz": "^
|
|
91
|
+
"geo-tz": "^8.0.0",
|
|
92
92
|
"globule": "^1.3.4",
|
|
93
93
|
"mocha": "^10.2.0",
|
|
94
94
|
"npm-check-updates": "^16.14.12",
|
|
95
95
|
"npm-run-all": "^4.1.5",
|
|
96
|
-
"prettier": "^3.
|
|
96
|
+
"prettier": "^3.2.3",
|
|
97
97
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
98
98
|
"progress": "^2.0.3",
|
|
99
99
|
"rimraf": "^5.0.5",
|
|
100
100
|
"serve": "^14.2.1",
|
|
101
101
|
"source-map-support": "^0.5.21",
|
|
102
102
|
"tmp": "^0.2.1",
|
|
103
|
-
"typedoc": "^0.25.
|
|
103
|
+
"typedoc": "^0.25.7",
|
|
104
104
|
"typescript": "^5.3.3",
|
|
105
105
|
"xpath": "^0.0.34"
|
|
106
106
|
},
|
|
107
107
|
"dependencies-note": "@types/luxon is a proper dependency, not devDependency, as our exported TypeScript typings reference luxon types. See <https://github.com/photostructure/exiftool-vendored.js/pull/108>",
|
|
108
108
|
"dependencies": {
|
|
109
109
|
"@photostructure/tz-lookup": "^9.0.0",
|
|
110
|
-
"@types/luxon": "^3.
|
|
110
|
+
"@types/luxon": "^3.4.1",
|
|
111
111
|
"batch-cluster": "^12.1.0",
|
|
112
112
|
"he": "^1.2.0",
|
|
113
113
|
"luxon": "^3.4.4"
|
|
114
114
|
},
|
|
115
115
|
"optionalDependencies": {
|
|
116
|
-
"exiftool-vendored.exe": "12.
|
|
117
|
-
"exiftool-vendored.pl": "12.
|
|
116
|
+
"exiftool-vendored.exe": "12.73.0",
|
|
117
|
+
"exiftool-vendored.pl": "12.73.0"
|
|
118
118
|
}
|
|
119
119
|
}
|