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

watchr

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchr - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

6

History.md
## History
- v2.1.5 September 29, 2012
- Fixed completion callback not firing when trying to watch a path that doesn't exist
- v2.1.4 September 27, 2012
- Fixed new listeners not being added for directories that have already been watched
- Thanks to [pull request #14](https://github.com/bevry/watchr/pull/14) by [Casey Foster](https://github.com/caseywebdev)
- Fixed completion callbacks happening too soon
- Thanks to [pull request #14](https://github.com/bevry/watchr/pull/14) by [Casey Foster](https://github.com/caseywebdev)

@@ -7,0 +11,0 @@ - v2.1.3 August 10, 2012

16

out/lib/watchr.js

@@ -362,2 +362,5 @@ // Generated by CoffeeScript 1.3.3

if (!balUtil.existsSync(path)) {
if (typeof next === "function") {
next(null, watcher);
}
return;

@@ -387,3 +390,3 @@ }

watch = function(opts, next) {
var paths, result, tasks, _ref;
var path, paths, result, tasks, _i, _len, _ref;
_ref = balUtil.extractOptsAndCallback(opts, next), opts = _ref[0], next = _ref[1];

@@ -398,7 +401,10 @@ paths = opts.paths;

});
balUtil.each(paths, function(path) {
return tasks.push(function(complete) {
for (_i = 0, _len = paths.length; _i < _len; _i++) {
path = paths[_i];
tasks.push({
path: path
}, function(complete) {
var localOpts, watchr;
localOpts = balUtil.extend({}, opts);
localOpts.path = path;
localOpts.path = this.path;
localOpts.next = complete;

@@ -410,3 +416,3 @@ watchr = createWatcher(localOpts);

});
});
}
tasks.async();

@@ -413,0 +419,0 @@ } else {

{
"name": "watchr",
"version": "2.1.4",
"version": "2.1.5",
"description": "Better file system watching for Node.js",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/bevry/watchr",

@@ -38,3 +38,3 @@ ## Watchr; better file system watching for Node.js

},
next: (err,watcher){
next: function(err,watcher){
if (err) throw err;

@@ -41,0 +41,0 @@ console.log('watching setup successfully');

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