node-watch
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -34,3 +34,3 @@ /** | ||
.filter(function(n) { return is.Directory(path.join(dir, n)) }) | ||
.map(function(n) { cb.call(null, path.join(dir, n)) }); | ||
.forEach(function(n) { cb.call(null, path.join(dir, n)) }); | ||
}); | ||
@@ -144,5 +144,10 @@ } | ||
fs.watch(fpath, function(err, fname) { | ||
var fname = path.join(fpath, fname) | ||
normalizeCall(fname, cb); | ||
if (is.File(fpath)) { | ||
normalizeCall(fpath, cb); | ||
watch(fpath, cb); | ||
} else { | ||
normalizeCall(path.join(fpath, fname), cb); | ||
} | ||
}); | ||
if (is.Directory(fpath)) { | ||
@@ -149,0 +154,0 @@ sub(fpath, function(dir) { |
{ | ||
"name": "node-watch" | ||
, "version": "0.2.1" | ||
, "version": "0.2.2" | ||
, "description": "NodeJS file.watch wrapper" | ||
@@ -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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
5367
140
1