Comparing version 0.2.1 to 0.3.0
@@ -78,2 +78,3 @@ var fs = require('fs'); | ||
Watcher.prototype.register = function(filepath) { | ||
var relativePath = path.relative(this.root, filepath); | ||
var globs = this.globs; | ||
@@ -83,3 +84,3 @@ var matched; | ||
for (var i = 0; i < globs.length; i++) { | ||
if (minimatch(filepath, globs[i])) { | ||
if (minimatch(relativePath, globs[i])) { | ||
matched = true; | ||
@@ -86,0 +87,0 @@ break; |
{ | ||
"name": "sane", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Sane aims to be fast, small, and reliable file system watcher. No bells and whistles, just change events.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
13407
407