node-watch
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -152,3 +152,3 @@ /** | ||
var parent = path.resolve(fpath, '..'); | ||
fs.watch(parent, function(err, fname) { | ||
fs.watch(parent, function(evt, fname) { | ||
if (path.basename(fpath) === fname) { | ||
@@ -159,5 +159,8 @@ normalizeCall(fpath, cb); | ||
} else if (is.dir(fpath)) { | ||
fs.watch(fpath, function(err, fname) { | ||
fs.watch(fpath, function(evt, fname) { | ||
normalizeCall(path.join(fpath, fname), cb); | ||
}); | ||
}) | ||
//Catch exception on Windows when deleting the watch directory. | ||
.on('error', function() {}); | ||
// Recursively watch its sub-directories. | ||
@@ -164,0 +167,0 @@ sub(fpath, function(dir) { |
{ | ||
"name": "node-watch" | ||
, "version": "0.2.6" | ||
, "version": "0.2.7" | ||
, "description": "fs.watch() wrapper of Nodejs " | ||
@@ -5,0 +5,0 @@ , "url": "https://github.com/yuanchuan/node-watch" |
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
6157
152