+5
-1
| ## 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 |
+11
-5
@@ -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 { |
+1
-1
| { | ||
| "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", |
+1
-1
@@ -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'); |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
20879
1.58%413
1.47%