lib/filter.js
function resolveSchemasDeps(schemas, schemasMap, callback) {
  async.reduce(schemas, [], function (result, schema, next) {
    tryAndDelay(resolveSchemaDeps, result, schema, schemasMap, next);
  }, function (err, result) {
    return err ? callback(err) : callback(null, _.uniq(result));
  });
}
function resolveSchemasDeps(schemas, schemasMap, callback) {
  async.reduce(schemas, [], function (result, schema, next) {
    tryAndDelay(resolveSchemaDeps, result, schema, schemasMap, next);
  }, function (err, result) {
    return err ? callback(err) : callback(null, _.uniq(result));
  });
}
function resolveSchemasDeps ( schemas , schemasMap , callback ) { async . reduce ( schemas , [ ] , function ( result , schema , next ) { tryAndDelay ( resolveSchemaDeps , result , schema , schemasMap , next ) ; } , function ( err , result ) { return err ? callback ( err ) : callback ( null , _ . uniq ( result ) ) ; } ) ; }
Resolve provided schemas dependencies.

@param {[Schema]} schemas
@param {Object} schemasMap
@param {Function} callback
Resolve provided schemas dependencies .