loopback-connector-couchdb2
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -0,1 +1,7 @@ | ||
2019-11-19, Version 1.5.2 | ||
========================= | ||
* refactor: add options for search (#71) (Janny) | ||
2019-11-14, Version 1.5.1 | ||
@@ -2,0 +8,0 @@ ========================= |
@@ -320,3 +320,3 @@ // Copyright IBM Corp. 2017,2019. All Rights Reserved. | ||
}; | ||
self._findRecursive(mo, query, docs, include, function(err, result) { | ||
self._findRecursive(mo, query, docs, include, options, function(err, result) { | ||
if (err) return cb(err, result); | ||
@@ -1077,3 +1077,3 @@ cb(null, result.docs); | ||
*/ | ||
CouchDB.prototype._findRecursive = function(mo, query, docs, include, cb) { | ||
CouchDB.prototype._findRecursive = function(mo, query, docs, include, options, cb) { | ||
var self = this; | ||
@@ -1101,3 +1101,3 @@ mo.db.find(query, function(err, rst) { | ||
if (err) return cb(err); | ||
self._extendDocs(rst, docs, query, mo, include, cb); | ||
self._extendDocs(rst, docs, query, mo, include, options, cb); | ||
}); | ||
@@ -1114,3 +1114,3 @@ }); | ||
*/ | ||
CouchDB.prototype._extendDocs = function(rst, docs, query, mo, include, cb) { | ||
CouchDB.prototype._extendDocs = function(rst, docs, query, mo, include, options, cb) { | ||
var self = this; | ||
@@ -1127,3 +1127,3 @@ if (docs.length === 0 && rst.docs.length < 200) return cb(null, rst); | ||
query.bookmark = rst.bookmark; | ||
self._findRecursive(mo, query, docs, include, cb); | ||
self._findRecursive(mo, query, docs, include, options, cb); | ||
} | ||
@@ -1130,0 +1130,0 @@ } else { |
{ | ||
"name": "loopback-connector-couchdb2", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "export-tests": true |
197002