Socket
Socket
Sign inDemoInstall

gaze

Package Overview
Dependencies
Maintainers
3
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 1.1.1 to 1.1.2

18

lib/gaze.js

@@ -135,3 +135,19 @@ /*

if (helper.isDir(filepath)) {
fs.readdirSync(filepath).map(function (file) {
// It's possible that between `isDir` and `readdirSync()` calls the `filepath`
// gets removed, which will result in `ENOENT` exception
var files;
try {
files = fs.readdirSync(filepath);
} catch (e) {
// Rethrow the error if it's anything other than `ENOENT`
if (e.code !== 'ENOENT') {
throw e;
}
files = [];
}
files.map(function (file) {
return path.join(filepath, file);

@@ -138,0 +154,0 @@ }).filter(function (file) {

2

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

@@ -6,0 +6,0 @@ "author": {

@@ -161,2 +161,3 @@ # gaze [![Build Status](http://img.shields.io/travis/shama/gaze.svg)](https://travis-ci.org/shama/gaze) [![Build status](https://ci.appveyor.com/api/projects/status/vtx65w9eg511tgo4)](https://ci.appveyor.com/project/shama/gaze)

## Release History
* 1.1.2 - Prevent more ENOENT errors from escaping (@alexgorbatchev).
* 1.1.1 - Prevent fs.watch errors from escaping error handler (@rosen-vladimirov). Fix _addToWatched without path.sep (@wyicwx).

@@ -163,0 +164,0 @@ * 1.1.0 - Update to `globule@1.0.0` with `minimatch >= 3.0.0`.

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc