Comparing version 0.1.2 to 0.1.3
@@ -47,3 +47,3 @@ /* | ||
var old = this.files[path]; | ||
this.files[path] = [now, mtime]; | ||
this.files[path] = [initial ? Math.min(now, mtime) : now, mtime]; | ||
if(!old) { | ||
@@ -50,0 +50,0 @@ if(mtime) { |
@@ -46,2 +46,4 @@ /* | ||
this.paused = true; | ||
if(this.aggregateTimeout) | ||
clearTimeout(this.aggregateTimeout); | ||
this.fileWatchers.forEach(function(w) { | ||
@@ -59,2 +61,4 @@ w.close(); | ||
this.paused = true; | ||
if(this.aggregateTimeout) | ||
clearTimeout(this.aggregateTimeout); | ||
}; | ||
@@ -61,0 +65,0 @@ |
{ | ||
"name": "watchpack", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -29,5 +29,5 @@ "main": "./lib/watchpack.js", | ||
"async": "^0.9.0", | ||
"chokidar": "^0.10.3", | ||
"chokidar": "^0.11.0", | ||
"graceful-fs": "^3.0.2" | ||
} | ||
} |
@@ -5,2 +5,4 @@ var fs = require("fs"); | ||
var watcherManager = require("../../lib/watcherManager"); | ||
function TestHelper(testdir) { | ||
@@ -19,2 +21,3 @@ this.testdir = testdir; | ||
TestHelper.prototype._before = function before(done) { | ||
Object.keys(watcherManager.directoryWatchers).should.be.eql([]); | ||
this.tick(function() { | ||
@@ -30,2 +33,3 @@ rimraf.sync(this.testdir); | ||
rimraf.sync(this.testdir); | ||
Object.keys(watcherManager.directoryWatchers).should.be.eql([]); | ||
done(); | ||
@@ -32,0 +36,0 @@ }.bind(this)); |
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 README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
26047
11
750
0
55
+ Addedchokidar@0.11.1(transitive)
- Removedchokidar@0.10.9(transitive)
Updatedchokidar@^0.11.0