Socket
Socket
Sign inDemoInstall

gaze

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gaze - npm Package Compare versions

Comparing version 0.4.3 to 0.5.0

13

lib/gaze.js

@@ -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 || '';

9

package.json
{
"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).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc