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

globwatcher

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

globwatcher - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

18

lib/globwatcher/globwatcher.js

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

5

package.json
{
"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

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