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

node-watch

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-watch - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

9

lib/watch.js

@@ -152,3 +152,3 @@ /**

var parent = path.resolve(fpath, '..');
fs.watch(parent, function(err, fname) {
fs.watch(parent, function(evt, fname) {
if (path.basename(fpath) === fname) {

@@ -159,5 +159,8 @@ normalizeCall(fpath, cb);

} else if (is.dir(fpath)) {
fs.watch(fpath, function(err, fname) {
fs.watch(fpath, function(evt, fname) {
normalizeCall(path.join(fpath, fname), cb);
});
})
//Catch exception on Windows when deleting the watch directory.
.on('error', function() {});
// Recursively watch its sub-directories.

@@ -164,0 +167,0 @@ sub(fpath, function(dir) {

{
"name": "node-watch"
, "version": "0.2.6"
, "version": "0.2.7"
, "description": "fs.watch() wrapper of Nodejs "

@@ -5,0 +5,0 @@ , "url": "https://github.com/yuanchuan/node-watch"

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