cqrs-eventdenormalizer
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -104,3 +104,7 @@ 'use strict'; | ||
function analyze (dir, callback) { | ||
structureParser(dir, function (err, items) { | ||
structureParser(dir, function (items) { | ||
return _.filter(items, function (i) { | ||
return isViewBuilder(i) || isEventExtender(i) || isCollection(i); | ||
}); | ||
}, function (err, items) { | ||
if (err) { | ||
@@ -107,0 +111,0 @@ return callback(err); |
@@ -132,3 +132,10 @@ 'use strict'; | ||
function parse (dir, callback) { | ||
function parse (dir, filter, callback) { | ||
if (!callback) { | ||
callback = filter; | ||
filter = function (r) { | ||
return r; | ||
}; | ||
} | ||
dir = path.resolve(dir); | ||
@@ -140,3 +147,3 @@ loadPaths(dir, function (err, paths) { | ||
var res = pathToJson(dir, paths); | ||
var res = filter(pathToJson(dir, paths)); | ||
@@ -143,0 +150,0 @@ var dottiesParts = []; |
{ | ||
"author": "adrai", | ||
"name": "cqrs-eventdenormalizer", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
## [v1.3.4](https://github.com/adrai/node-cqrs-eventdenormalizer/compare/v1.3.2...v1.3.4) | ||
## [v1.3.5](https://github.com/adrai/node-cqrs-eventdenormalizer/compare/v1.3.2...v1.3.5) | ||
- optimize structureParser | ||
@@ -3,0 +3,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
194182
3351