cumberbatch
Advanced tools
Comparing version 0.1.16 to 0.1.17
@@ -25,2 +25,3 @@ var chokidar = require('./chokidar'); | ||
this._sortedPaths = []; | ||
this._pathsAreSorted = false; | ||
@@ -36,2 +37,6 @@ this._isReady = false; | ||
Watcher.prototype.find = function (glob) { | ||
if (!this._pathsAreSorted) { | ||
this._generateSortedPaths(); | ||
} | ||
var globPaths = {}; | ||
@@ -100,2 +105,3 @@ var globParts = glob.split(/\*|\{/); | ||
this._sortedPaths.sort(); | ||
this._pathsAreSorted = true; | ||
}; | ||
@@ -152,3 +158,3 @@ | ||
self._isReady = true; | ||
self._generateSortedPaths(); | ||
self._pathsAreSorted = false; | ||
self._onReady.resolve(true); | ||
@@ -184,3 +190,3 @@ } | ||
if (this._isReady) { | ||
this._generateSortedPaths(); | ||
this._pathsAreSorted = false; | ||
@@ -213,3 +219,3 @@ var event = {}; | ||
if (this._isReady) { | ||
this._generateSortedPaths(); | ||
this._pathsAreSorted = false; | ||
@@ -216,0 +222,0 @@ this.trigger(deleted); |
{ | ||
"name": "cumberbatch", | ||
"description": "crazy watcher stuff", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"homepage": "https://github.com/azulus/cumberbatch", | ||
@@ -6,0 +6,0 @@ "authors": [ |
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
52509
1494