exiftool-vendored
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -70,6 +70,7 @@ "use strict"; | ||
month, // 1-12, (no crazy 0-11 nonsense from Date!) | ||
day) { | ||
day // 1-31 | ||
) { | ||
this.year = year; | ||
this.month = month; | ||
this.day = day; | ||
this.day = day; // 1-31 | ||
} // tslint:disable-line | ||
@@ -76,0 +77,0 @@ toString() { |
"use strict"; | ||
const cp = require("child_process"); | ||
const fs = require("fs"); | ||
const process = require("process"); | ||
const _child_process = require("child_process"); | ||
const _fs = require("fs"); | ||
const _process = require("process"); | ||
const deferred_1 = require("./deferred"); | ||
const exiftool_1 = require("./exiftool"); | ||
const isWin32 = process.platform === 'win32'; | ||
const isWin32 = _process.platform === 'win32'; | ||
const exiftoolPath = require(`exiftool-vendored.${isWin32 ? 'exe' : 'pl'}`); | ||
if (!fs.existsSync(exiftoolPath)) { | ||
if (!_fs.existsSync(exiftoolPath)) { | ||
throw new Error(`Vendored ExifTool does not exist at ${exiftoolPath}`); | ||
@@ -26,3 +26,3 @@ } | ||
this.buff = ''; | ||
this.proc = cp.spawn(exiftoolPath, ['-stay_open', 'True', '-@', '-']); | ||
this.proc = _child_process.spawn(exiftoolPath, ['-stay_open', 'True', '-@', '-']); | ||
this.proc.unref(); // don't let node count ExifTool as a reason to stay alive | ||
@@ -35,3 +35,3 @@ this.proc.stdout.on('data', d => this.onData(d)); | ||
}); | ||
process.on('beforeExit', () => this.end()); | ||
_process.on('beforeExit', () => this.end()); | ||
this.workIfIdle(); | ||
@@ -38,0 +38,0 @@ } |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.ExifTimeZoneOffset = datetime_1.ExifTimeZoneOffset; | ||
const process = require("process"); | ||
const _process = require("process"); | ||
/** | ||
@@ -29,3 +29,3 @@ * Assign your custom logger to this instance. | ||
this._tasks = []; | ||
process.on('exit', () => this.end()); | ||
_process.on('exit', () => this.end()); | ||
} | ||
@@ -32,0 +32,0 @@ /** |
{ | ||
"name": "exiftool-vendored", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Efficient, cross-platform access to ExifTool", | ||
@@ -18,4 +18,4 @@ "main": "./lib/exiftool.js", | ||
"test": "mocha --timeout 10000 lib/**/*.spec.js", | ||
"cleantest": "run-s clean lint fmt pdm test", | ||
"preversion": "run-s lint pdm", | ||
"cleantest": "run-p clean lint pdm && run-s test", | ||
"preversion": "npm run cleantest", | ||
"pdm": "platform-dependent-modules", | ||
@@ -30,2 +30,5 @@ "postinstall": "npm run pdm" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
@@ -73,4 +76,4 @@ "type": "git", | ||
"@types/jsdom": "^2.0.29", | ||
"@types/mocha": "^2.2.33", | ||
"@types/node": "^6.0.48", | ||
"@types/mocha": "^2.2.34", | ||
"@types/node": "^6.0.53", | ||
"@types/rimraf": "^0.0.28", | ||
@@ -83,9 +86,9 @@ "@types/xmldom": "^0.1.28", | ||
"mocha": "^3.2.0", | ||
"np": "^2.10.1", | ||
"np": "^2.12.0", | ||
"npm-run-all": "^3.1.2", | ||
"rimraf": "^2.5.4", | ||
"tar-fs": "^1.14.0", | ||
"tslint": "^4.0.2", | ||
"tar-fs": "^1.15.0", | ||
"tslint": "^4.2.0", | ||
"tslint-config-standard": "^2.0.0", | ||
"tslint-eslint-rules": "^3.1.0", | ||
"tslint-eslint-rules": "^3.2.3", | ||
"typescript": "^2.1.4", | ||
@@ -92,0 +95,0 @@ "typescript-formatter": "^4.0.1", |
@@ -127,2 +127,6 @@ # exiftool-vendored | ||
### v1.4.1 | ||
* 🐛 Several imports (like `process`) name-collided on the globals imported by Electron | ||
### v1.4.0 | ||
@@ -129,0 +133,0 @@ |
158483
4299
174