Comparing version 2.0.2 to 2.0.3
@@ -216,5 +216,11 @@ 'use strict'; | ||
fs.open(path, 'r', function(error, fd) { | ||
if (fd) fs.close(fd); | ||
error && error.code !== 'EACCES' ? | ||
handleEvent('unlink') : addOrChange(); | ||
if (error) { | ||
error.code !== 'EACCES' ? | ||
handleEvent('unlink') : addOrChange(); | ||
} else { | ||
fs.close(fd, function(err) { | ||
err && err.code !== 'EACCES' ? | ||
handleEvent('unlink') : addOrChange(); | ||
}); | ||
} | ||
}); | ||
@@ -221,0 +227,0 @@ } |
@@ -93,4 +93,5 @@ 'use strict'; | ||
fs.open(path, 'r', function(err, fd) { | ||
if (fd) fs.close(fd); | ||
if (!err) broadcastErr(error); | ||
if (!err) fs.close(fd, function(err) { | ||
if (!err) broadcastErr(error); | ||
}); | ||
}); | ||
@@ -97,0 +98,0 @@ } else { |
{ | ||
"name": "chokidar", | ||
"description": "A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"keywords": [ | ||
@@ -44,3 +44,3 @@ "fs", | ||
"optionalDependencies": { | ||
"fsevents": "^1.0.0" | ||
"fsevents": "^1.1.2" | ||
}, | ||
@@ -47,0 +47,0 @@ "dependencies": { |
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
79193
1407