Comparing version 0.4.3 to 0.5.0
@@ -71,2 +71,5 @@ /* | ||
// keep the process alive | ||
this._keepalive = setInterval(function() {}, 200); | ||
return this; | ||
@@ -156,2 +159,3 @@ } | ||
self.removeAllListeners(); | ||
clearInterval(self._keepalive); | ||
}, delay + 100); | ||
@@ -334,2 +338,11 @@ } | ||
var curWatched = Object.keys(self._watched); | ||
// if no matching files | ||
if (curWatched.length < 1) { | ||
self.emit('ready', self); | ||
if (done) { done.call(self, null, self); } | ||
self.emit('nomatch'); | ||
return; | ||
} | ||
helper.forEachSeries(curWatched, function(dir, next) { | ||
@@ -336,0 +349,0 @@ dir = dir || ''; |
{ | ||
"name": "gaze", | ||
"description": "A globbing fs.watch wrapper built from the best parts of other fine watch libs.", | ||
"version": "0.4.3", | ||
"version": "0.5.0", | ||
"homepage": "https://github.com/shama/gaze", | ||
@@ -37,3 +37,4 @@ "author": { | ||
"grunt-contrib-jshint": "~0.6.0", | ||
"grunt-benchmark": "~0.2.0" | ||
"grunt-benchmark": "~0.2.0", | ||
"grunt-cli": "~0.1.13" | ||
}, | ||
@@ -43,3 +44,7 @@ "keywords": [ | ||
"glob" | ||
], | ||
"files": [ | ||
"lib", | ||
"LICENSE-MIT" | ||
] | ||
} |
@@ -119,2 +119,3 @@ # gaze [![Build Status](https://secure.travis-ci.org/shama/gaze.png?branch=master)](http://travis-ci.org/shama/gaze) | ||
* `error(err)` When an error occurs. | ||
* `nomatch` When no files have been matched. | ||
@@ -156,2 +157,3 @@ #### Methods | ||
## Release History | ||
* 0.5.0 - Process is now kept alive while watching files. Emits a nomatch event when no files are matching. | ||
* 0.4.3 - Track file additions in newly created folders (@brett-shwom). | ||
@@ -158,0 +160,0 @@ * 0.4.2 - Fix .remove() method to remove a single file in a directory (@kaelzhang). Fixing Cannot call method 'call' of undefined (@krasimir). Track new file additions within folders (@brett-shwom). |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
180
1
22750
5
5
437