search-sdk
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -87,9 +87,12 @@ (function() { | ||
Search.prototype.reverseStream = function(query) { | ||
Search.prototype.reverseStream = function(query, pageSize) { | ||
if (query == null) { | ||
query = {}; | ||
} | ||
return this.find(_.assign(query, { | ||
if (pageSize == null) { | ||
pageSize = 10; | ||
} | ||
return this.find(_.merge({ | ||
top: 0 | ||
})).then((function(_this) { | ||
}, query)).then((function(_this) { | ||
return function(arg) { | ||
@@ -109,9 +112,7 @@ var _requestPage, count; | ||
}, query)).then(function(arg1) { | ||
var items, ref; | ||
var items; | ||
items = arg1.items; | ||
return { | ||
items: items, | ||
nextToken: (ref = items.length === pageSize && skip > 0) != null ? ref : skip - { | ||
pageSize: null | ||
} | ||
nextToken: items.length === pageSize && skip > 0 ? skip - pageSize : null | ||
}; | ||
@@ -118,0 +119,0 @@ }); |
{ | ||
"name": "search-sdk", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "search-sdk", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6401
120