Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

search-sdk

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

search-sdk - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

15

lib/search.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc