Comparing version 2.1.5 to 2.1.6
@@ -583,3 +583,5 @@ 'use strict'; | ||
if (!this._closers[path]) return; | ||
this._closers[path](); | ||
this._closers[path].forEach(function(closer) { | ||
closer(); | ||
}); | ||
delete this._closers[path]; | ||
@@ -703,3 +705,5 @@ this._getWatchedDir(sysPath.dirname(path)).remove(sysPath.basename(path)); | ||
Object.keys(this._closers).forEach(function(watchPath) { | ||
this._closers[watchPath](); | ||
this._closers[watchPath].forEach(function(closer) { | ||
closer(); | ||
}); | ||
delete this._closers[watchPath]; | ||
@@ -706,0 +710,0 @@ }, this); |
@@ -392,3 +392,6 @@ 'use strict'; | ||
); | ||
if (closer) this._closers[path] = closer; | ||
if (closer) { | ||
this._closers[path] = this._closers[path] || []; | ||
this._closers[path].push(closer); | ||
} | ||
}.bind(this); | ||
@@ -395,0 +398,0 @@ |
@@ -498,3 +498,6 @@ 'use strict'; | ||
if (closer) this._closers[path] = closer; | ||
if (closer) { | ||
this._closers[path] = this._closers[path] || []; | ||
this._closers[path].push(closer); | ||
} | ||
callback(null, false); | ||
@@ -501,0 +504,0 @@ }.bind(this)); |
{ | ||
"name": "chokidar", | ||
"description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "fs", |
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
87687
1599
2