Comparing version 1.1.1 to 1.1.2
@@ -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) { |
{ | ||
"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`. |
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
25456
480
196