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

search-sdk

Package Overview
Dependencies
Maintainers
3
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.3 to 0.5.4

34

lib/search.js
(function() {
var AzureSearch, HighlandPagination, Promise, Search, _, highland,
var AzureSearch, HighlandPagination, Promise, Search, _, highland, retry,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },

@@ -10,2 +10,4 @@ slice = [].slice;

retry = require("bluebird-retry");
AzureSearch = require("azure-search");

@@ -102,19 +104,21 @@

_requestPage = function(skip) {
var top;
if (skip == null) {
skip = count - pageSize;
}
skip = Math.min(100000, skip);
top = Math.min(pageSize, pageSize + skip);
skip = Math.max(0, skip);
return _this.find(_.merge({
skip: skip,
top: top
}, query)).then(function(arg1) {
var items;
items = arg1.items;
return {
items: items,
nextToken: items.length === pageSize && skip > 0 ? skip - pageSize : null
};
return retry(function() {
var top;
skip = Math.min(100000, skip);
top = Math.min(pageSize, pageSize + skip);
skip = Math.max(0, skip);
return _this.find(_.merge({
skip: skip,
top: top
}, query)).then(function(arg1) {
var items;
items = arg1.items;
return {
items: items,
nextToken: items.length === pageSize && skip > 0 ? skip - pageSize : null
};
});
});

@@ -121,0 +125,0 @@ };

{
"name": "search-sdk",
"version": "0.5.3",
"version": "0.5.4",
"description": "search-sdk",

@@ -16,2 +16,3 @@ "main": "index.js",

"azure-search": "0.0.16",
"bluebird-retry": "^0.11.0",
"lodash": "4.17.19"

@@ -18,0 +19,0 @@ },

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