Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.5.0 to 0.5.1

15

lib/gaze.js

@@ -19,2 +19,8 @@ /*

// shim setImmediate for node v0.8
var setImmediate = require('timers').setImmediate;
if (typeof setImmediate !== 'function') {
setImmediate = process.nextTick;
}
// globals

@@ -340,5 +346,8 @@ var delay = 10;

if (curWatched.length < 1) {
self.emit('ready', self);
if (done) { done.call(self, null, self); }
self.emit('nomatch');
// Defer to emitting to give a chance to attach event handlers.
setImmediate(function () {
self.emit('ready', self);
if (done) { done.call(self, null, self); }
self.emit('nomatch');
});
return;

@@ -345,0 +354,0 @@ }

6

package.json
{
"name": "gaze",
"description": "A globbing fs.watch wrapper built from the best parts of other fine watch libs.",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/shama/gaze",

@@ -38,3 +38,5 @@ "author": {

"grunt-benchmark": "~0.2.0",
"grunt-cli": "~0.1.13"
"grunt-cli": "~0.1.13",
"async": "~0.2.10",
"rimraf": "~2.2.6"
},

@@ -41,0 +43,0 @@ "keywords": [

@@ -1,2 +0,2 @@

# gaze [![Build Status](https://secure.travis-ci.org/shama/gaze.png?branch=master)](http://travis-ci.org/shama/gaze)
# gaze [![Build Status](https://travis-ci.org/shama/gaze.png?branch=master)](https://travis-ci.org/shama/gaze)

@@ -156,2 +156,3 @@ A globbing fs.watch wrapper built from the best parts of other fine watch libs.

## Release History
* 0.5.1 - Use setImmediate (process.nextTick for node v0.8) to defer ready/nomatch events (@amasad).
* 0.5.0 - Process is now kept alive while watching files. Emits a nomatch event when no files are matching.

@@ -158,0 +159,0 @@ * 0.4.3 - Track file additions in newly created 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