globwatcher
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -90,4 +90,12 @@ // Generated by CoffeeScript 1.6.2 | ||
WatchMap.prototype.getAllFilenames = function(folderName) { | ||
return this.getFilenames(folderName); | ||
WatchMap.prototype.getAllFilenames = function() { | ||
var folder, rv, _i, _len, _ref; | ||
rv = []; | ||
_ref = this.getFolders(); | ||
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
folder = _ref[_i]; | ||
rv = rv.concat(this.getFilenames(folder)); | ||
} | ||
return rv; | ||
}; | ||
@@ -250,2 +258,6 @@ | ||
GlobWatcher.prototype.currentSet = function() { | ||
return this.watchMap.getAllFilenames(); | ||
}; | ||
GlobWatcher.prototype.watchPrefix = function(minimatchSet) { | ||
@@ -434,3 +446,3 @@ var index, parent, prefix; | ||
}); | ||
previous = _this.watchMap.getAllFilenames(folderName); | ||
previous = _this.watchMap.getFilenames(folderName); | ||
_ref = previous.filter(function(x) { | ||
@@ -437,0 +449,0 @@ return current.indexOf(x) < 0; |
{ | ||
"name": "globwatcher", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "watch a set of files for changes (including create/delete) by glob patterns", | ||
@@ -20,3 +20,3 @@ "keywords": [ "watch" ], | ||
"scripts": { | ||
"test": "plz test" | ||
"test": "plz test -v --color" | ||
}, | ||
@@ -38,3 +38,2 @@ "dependencies": { | ||
"build.plz", | ||
"Cakefile", | ||
"lib", | ||
@@ -41,0 +40,0 @@ "test" |
globwatcher | ||
=========== | ||
[![Build Status](https://travis-ci.org/robey/globwatcher.png?branch=master)](https://travis-ci.org/robey/globwatcher) | ||
Globwatcher is a node library that monitors a filesystem for changes to files | ||
@@ -32,3 +34,3 @@ specified by glob patterns, and triggers events when a file is added, changed, | ||
current working directory is used. Absolute patterns (patterns that start | ||
with "/") don't used this option. | ||
with "/") don't use this option. | ||
@@ -78,2 +80,5 @@ - `interval` - frequency (in milliseconds) to monitor existing files for | ||
- `currentSet()` - Return the set of filenames that currently exist and match | ||
the glob pattern being scanned. The filenames are all absolute. | ||
Events signalled: | ||
@@ -80,0 +85,0 @@ |
Sorry, the diff of this file is not supported yet
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
613
185
46487
10