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.1 to 0.2.2

11

lib/watch.js

@@ -34,3 +34,3 @@ /**

.filter(function(n) { return is.Directory(path.join(dir, n)) })
.map(function(n) { cb.call(null, path.join(dir, n)) });
.forEach(function(n) { cb.call(null, path.join(dir, n)) });
});

@@ -144,5 +144,10 @@ }

fs.watch(fpath, function(err, fname) {
var fname = path.join(fpath, fname)
normalizeCall(fname, cb);
if (is.File(fpath)) {
normalizeCall(fpath, cb);
watch(fpath, cb);
} else {
normalizeCall(path.join(fpath, fname), cb);
}
});
if (is.Directory(fpath)) {

@@ -149,0 +154,0 @@ sub(fpath, function(dir) {

{
"name": "node-watch"
, "version": "0.2.1"
, "version": "0.2.2"
, "description": "NodeJS file.watch wrapper"

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