watchpack
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -239,3 +239,3 @@ /* | ||
setDirectory(directoryPath, mtime, initial, type) { | ||
setDirectory(directoryPath, birthtime, initial, type) { | ||
if (this.checkIgnore(directoryPath)) return; | ||
@@ -245,3 +245,3 @@ if (directoryPath === this.path) { | ||
this.forEachWatcher(this.path, w => | ||
w.emit("change", directoryPath, mtime, type, initial) | ||
w.emit("change", directoryPath, birthtime, type, initial) | ||
); | ||
@@ -263,3 +263,3 @@ } | ||
if (initial) { | ||
safeTime = Math.min(now, mtime) + FS_ACCURACY; | ||
safeTime = Math.min(now, birthtime) + FS_ACCURACY; | ||
} else { | ||
@@ -271,3 +271,3 @@ safeTime = now; | ||
if (!initial || w.checkStartTime(safeTime, false)) { | ||
w.emit("change", mtime, type); | ||
w.emit("change", birthtime, type); | ||
} | ||
@@ -444,3 +444,3 @@ }); | ||
filePath, | ||
+stats.mtime || +stats.ctime || 1, | ||
+stats.birthtime || 1, | ||
false, | ||
@@ -677,3 +677,3 @@ eventType | ||
itemPath, | ||
+stats.mtime || +stats.ctime || 1, | ||
+stats.birthtime || 1, | ||
initial, | ||
@@ -680,0 +680,0 @@ "scan (dir)" |
{ | ||
"name": "watchpack", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/watchpack.js", |
55171