exiftool-vendored
Advanced tools
Comparing version 14.3.0 to 14.4.0
@@ -28,2 +28,7 @@ # Changelog/Versioning | ||
### v14.4.0 | ||
- ✨ Added `ExifDate.rawValue` | ||
- 📦 Updated dependencies | ||
### v14.3.0 🔥 | ||
@@ -30,0 +35,0 @@ |
@@ -10,2 +10,3 @@ import { DateTime } from "luxon"; | ||
readonly day: number; | ||
readonly rawValue?: string | undefined; | ||
static fromISO(text: string): Maybe<ExifDate>; | ||
@@ -16,6 +17,7 @@ private static fromPatterns; | ||
static fromEXIF(text: string): Maybe<ExifDate>; | ||
static fromDateTime(dt: DateTime): Maybe<ExifDate>; | ||
static fromDateTime(dt: DateTime, rawValue?: string): Maybe<ExifDate>; | ||
constructor(year: number, // full year (probably 2019-ish, but maybe Japanese 30-ish). See https://ericasadun.com/2018/12/25/iso-8601-yyyy-yyyy-and-why-your-year-may-be-wrong/ | ||
month: number, // 1-12, (no crazy 0-11 nonsense from Date!) | ||
day: number); | ||
day: number, // 1-31 | ||
rawValue?: string | undefined); | ||
toDate(): Date; | ||
@@ -22,0 +24,0 @@ toISOString(): string; |
@@ -14,10 +14,11 @@ "use strict"; | ||
month, // 1-12, (no crazy 0-11 nonsense from Date!) | ||
day // 1-31 | ||
) { | ||
day, // 1-31 | ||
rawValue) { | ||
this.year = year; | ||
this.month = month; | ||
this.day = day; | ||
this.rawValue = rawValue; | ||
} | ||
ExifDate.fromISO = function (text) { | ||
return this.fromDateTime(luxon_1.DateTime.fromISO(text)); | ||
return this.fromDateTime(luxon_1.DateTime.fromISO(text), text); | ||
}; | ||
@@ -30,3 +31,3 @@ ExifDate.fromPatterns = function (text, fmts) { | ||
return Maybe_1.first(fmts, function (fmt) { | ||
return Maybe_1.map(luxon_1.DateTime.fromFormat(text, fmt), function (dt) { return _this.fromDateTime(dt); }); | ||
return Maybe_1.map(luxon_1.DateTime.fromFormat(text, fmt), function (dt) { return _this.fromDateTime(dt, text); }); | ||
}); | ||
@@ -51,5 +52,5 @@ }; | ||
}; | ||
ExifDate.fromDateTime = function (dt) { | ||
ExifDate.fromDateTime = function (dt, rawValue) { | ||
return DateTime_1.validDateTime(dt) | ||
? new ExifDate(dt.year, dt.month, dt.day) | ||
? new ExifDate(dt.year, dt.month, dt.day, rawValue) | ||
: undefined; | ||
@@ -56,0 +57,0 @@ }; |
{ | ||
"name": "exiftool-vendored", | ||
"version": "14.3.0", | ||
"version": "14.4.0", | ||
"description": "Efficient, cross-platform access to ExifTool", | ||
@@ -71,4 +71,4 @@ "main": "./dist/ExifTool.js", | ||
"devDependencies": { | ||
"@types/chai": "^4.2.17", | ||
"@types/chai-as-promised": "^7.1.3", | ||
"@types/chai": "^4.2.18", | ||
"@types/chai-as-promised": "^7.1.4", | ||
"@types/chai-subset": "^1.3.3", | ||
@@ -80,3 +80,3 @@ "@types/fs-extra": "^9.0.11", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^15.0.1", | ||
"@types/node": "^15.0.3", | ||
"@types/progress": "^2.0.3", | ||
@@ -87,16 +87,16 @@ "@types/rimraf": "^3.0.0", | ||
"@types/xmldom": "^0.1.30", | ||
"@typescript-eslint/eslint-plugin": "^4.22.0", | ||
"@typescript-eslint/parser": "^4.22.0", | ||
"@typescript-eslint/eslint-plugin": "^4.23.0", | ||
"@typescript-eslint/parser": "^4.23.0", | ||
"chai": "^4.3.4", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-subset": "^1.6.0", | ||
"eslint": "^7.25.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint": "^7.26.0", | ||
"eslint-plugin-import": "^2.23.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"extract-zip": "^2.0.1", | ||
"fs-extra": "^9.1.0", | ||
"fs-extra": "^10.0.0", | ||
"globule": "^1.3.2", | ||
"mocha": "^8.3.2", | ||
"mocha": "^8.4.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.2.1", | ||
"prettier": "^2.3.0", | ||
"progress": "^2.0.3", | ||
@@ -114,5 +114,5 @@ "rimraf": "^3.0.2", | ||
"dependencies": { | ||
"batch-cluster": "^6.0.2", | ||
"batch-cluster": "^6.1.0", | ||
"he": "^1.2.0", | ||
"luxon": "^1.26.0", | ||
"luxon": "^1.27.0", | ||
"tz-lookup": "^6.1.25" | ||
@@ -119,0 +119,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
546308
7796
Updatedbatch-cluster@^6.1.0
Updatedluxon@^1.27.0