mirror of
https://github.com/donl/slouch.git
synced 2026-05-26 06:12:11 -06:00
* initial * feat(exclude-design-docs-iterator) * fix(request): need to define unescape * test(request): ECONNREFUSED/ENOTFOUND errors in different browsers * test(circleci): run couchdb * test(circleci): enable cors * test(coverage): disable check for now * test(circleci): missing nvm
14 lines
443 B
JavaScript
14 lines
443 B
JavaScript
'use strict';
|
|
|
|
var FilteredStreamIterator = require('quelle').FilteredStreamIterator,
|
|
inherits = require('inherits');
|
|
|
|
var ExcludeDesignDocsIterator = function (iterator) {
|
|
FilteredStreamIterator.apply(this, [iterator, function (doc) {
|
|
return doc.id.indexOf('_design') === -1 ? doc : undefined; // exclude design docs
|
|
}]);
|
|
};
|
|
|
|
inherits(ExcludeDesignDocsIterator, FilteredStreamIterator);
|
|
|
|
module.exports = ExcludeDesignDocsIterator;
|