Comparing version 1.5.1 to 1.5.2
@@ -0,1 +1,14 @@ | ||
# Chokidar 1.5.2 (Jun 7, 2016) | ||
* Fix missing `addDir` events when using `cwd` and `alwaysStat` options | ||
* Fix missing `add` events for files within a renamed directory | ||
# Chokidar 1.5.1 (May 20, 2016) | ||
* To help prevent exhaustion of FSEvents system limitations, consolidate watch | ||
instances to the common parent upon detection of separate watch instances on | ||
many siblings | ||
# Chokidar 1.5.0 (May 10, 2016) | ||
* Make debounce delay setting used with `atomic: true` user-customizable | ||
* Fixes and improvements to `awaitWriteFinish` features | ||
# Chokidar 1.4.3 (Feb 26, 2016) | ||
@@ -2,0 +15,0 @@ * Update async-each dependency to ^1.0.0 |
@@ -209,3 +209,4 @@ 'use strict'; | ||
) { | ||
fs.stat(path, function(error, stats) { | ||
var fullPath = this.options.cwd ? sysPath.join(this.options.cwd, path) : path; | ||
fs.stat(fullPath, function(error, stats) { | ||
// Suppress event when fs.stat fails, to avoid sending undefined 'stat' | ||
@@ -212,0 +213,0 @@ if (error || !stats) return; |
@@ -142,3 +142,3 @@ 'use strict'; | ||
// * wathPath - string, file/dir path to be watched with fsevents | ||
// * watchPath - string, file/dir path to be watched with fsevents | ||
// * realPath - string, real path (in case of symlinks) | ||
@@ -206,2 +206,3 @@ // * transform - function, path transformer | ||
this._emit(eventName, path); | ||
if (eventName === 'addDir') this._addToFsEvents(path, false, true); | ||
} | ||
@@ -367,3 +368,5 @@ }.bind(this); | ||
} | ||
}.bind(this)).on('end', this._emitReady); | ||
}.bind(this)).on('error', function() { | ||
// Ignore readdirp errors | ||
}).on('end', this._emitReady); | ||
} else { | ||
@@ -375,3 +378,3 @@ emitAdd(wh.watchPath, stats); | ||
if (this.options.persistent) { | ||
if (this.options.persistent && forceAdd !== true) { | ||
var initWatch = function(error, realPath) { | ||
@@ -378,0 +381,0 @@ var closer = this._watchWithFsEvents( |
{ | ||
"name": "chokidar", | ||
"description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"keywords": [ | ||
@@ -35,2 +35,3 @@ "fs", | ||
"coveralls": "^2.11.2", | ||
"graceful-fs": "4.1.4", | ||
"istanbul": "^0.3.20", | ||
@@ -37,0 +38,0 @@ "mocha": "^2.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62818
1357
8