Comparing version 0.5.1 to 0.5.2
12
index.js
@@ -144,3 +144,3 @@ var fs = require('fs'); | ||
var filename = path.basename(filepath); | ||
this.dirRegistery[dir][filename] = null; | ||
delete this.dirRegistery[dir][filename]; | ||
} | ||
@@ -158,3 +158,3 @@ }; | ||
if (this.dirRegistery[dirpath]) { | ||
this.dirRegistery[dirpath] = null; | ||
delete this.dirRegistery[dirpath]; | ||
} | ||
@@ -199,2 +199,6 @@ }; | ||
} | ||
if (this.root !== dir) { | ||
this.register(dir); | ||
} | ||
}; | ||
@@ -215,3 +219,3 @@ | ||
this.watched[filepath].close(); | ||
this.watched[filepath] = null; | ||
delete this.watched[filepath]; | ||
} | ||
@@ -342,3 +346,3 @@ }; | ||
this.changeTimers[key] = setTimeout(function() { | ||
this.changeTimers[key] = null; | ||
delete this.changeTimers[key]; | ||
this.emit(type, file); | ||
@@ -345,0 +349,0 @@ }.bind(this), DEFAULT_DELAY); |
{ | ||
"name": "sane", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Sane aims to be fast, small, and reliable file system watcher.", | ||
"main": "index.js", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/amasad/sane.git" | ||
}, | ||
"scripts": { | ||
@@ -7,0 +11,0 @@ "test": "mocha --bail" |
@@ -8,4 +8,5 @@ sane | ||
* Always use fs.watch (unless polling is forced) and sensibly workaround the various issues with it | ||
* Not introducing native components | ||
* Not use polling by default and be very slow | ||
* Sane is all JavaScript, no native components | ||
* Stay away from polling because it's very slow and cpu intensive | ||
* Support polling for environments like Vagrant shared directory where there are no native filesystem events | ||
@@ -12,0 +13,0 @@ ## Install |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
19573
6
592
67
2