filewatcher
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -37,2 +37,10 @@ var fs = require('fs') | ||
if (!self.watchers[file]) return | ||
// close watcher and create a new one to work around fs.watch() bug | ||
// see https://github.com/joyent/node/issues/3172 | ||
if (!self.polling) { | ||
self.remove(file) | ||
self.add(file) | ||
} | ||
if (!stat) return self.emit('change', file, -1) | ||
@@ -39,0 +47,0 @@ if (stat.isDirectory() || stat.mtime > mtime) { |
{ | ||
"name": "filewatcher", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Wrapper around fs.watch with fallback to fs.watchFile", | ||
@@ -5,0 +5,0 @@ "author": "Felix Gnass", |
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
7460
90