Comparing version 0.0.2 to 0.0.3
@@ -21,4 +21,2 @@ 'use strict'; | ||
Readable.call(this); | ||
this._read = function _read () { | ||
@@ -42,4 +40,3 @@ | ||
} | ||
if (!context.file.hasNext() && !this._readableState.buffer.length) { | ||
console.log('- CRAWL END'); | ||
else if (!context.file.hasNext() && !this._readableState.buffer.length) { | ||
// the end of the directory structure has been reached | ||
@@ -131,4 +128,6 @@ var report = { | ||
}; | ||
Readable.call(this); | ||
} | ||
module.exports = Crawler; |
@@ -108,3 +108,3 @@ 'use strict'; | ||
if (filters) { | ||
if (filters.length) { | ||
var index = filters.length; | ||
@@ -111,0 +111,0 @@ |
@@ -26,5 +26,3 @@ 'use strict'; | ||
options = exports.validate(options); | ||
options.mode = exports.CRAWL_TREE_SYNC_MODE; | ||
return options; | ||
}; |
{ | ||
"name": "fs-crawler", | ||
"license": "MIT", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"homepage": "https://github.com/luscus/fs-crawler", | ||
@@ -6,0 +6,0 @@ "author": "https://github.com/luscus/fs-crawler/graphs/contributors", |
@@ -22,3 +22,3 @@ 'use strict'; | ||
results = crawler.crawlPathSync('/media/nysos/Nysos-EXT/dev/fs-crawler/test/fs/long/deep/path/to/files', options); | ||
results = crawler.crawlPathSync(__dirname + '/fs/long/deep/path/to/files', options); | ||
@@ -31,3 +31,2 @@ console.log('-------------------'); | ||
process.on('uncaughtException', function (er) { | ||
@@ -34,0 +33,0 @@ console.error('EXCEPTION', er.stack); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
54223
586