@algolia/client-search 5.11.0 → 5.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fetch.d.ts CHANGED
@@ -3041,7 +3041,7 @@ type ReplaceAllObjectsOptions = {
3041
3041
  batchSize?: number;
3042
3042
  };
3043
3043
 
3044
- declare const apiClientVersion = "5.11.0";
3044
+ declare const apiClientVersion = "5.13.0";
3045
3045
  declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
3046
3046
  transporter: _algolia_client_common.Transporter;
3047
3047
  /**
package/dist/node.d.cts CHANGED
@@ -3041,7 +3041,7 @@ type ReplaceAllObjectsOptions = {
3041
3041
  batchSize?: number;
3042
3042
  };
3043
3043
 
3044
- declare const apiClientVersion = "5.11.0";
3044
+ declare const apiClientVersion = "5.13.0";
3045
3045
  declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
3046
3046
  transporter: _algolia_client_common.Transporter;
3047
3047
  /**
package/dist/node.d.ts CHANGED
@@ -3041,7 +3041,7 @@ type ReplaceAllObjectsOptions = {
3041
3041
  batchSize?: number;
3042
3042
  };
3043
3043
 
3044
- declare const apiClientVersion = "5.11.0";
3044
+ declare const apiClientVersion = "5.13.0";
3045
3045
  declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
3046
3046
  transporter: _algolia_client_common.Transporter;
3047
3047
  /**
@@ -25,7 +25,7 @@ __export(searchClient_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(searchClient_exports);
27
27
  var import_client_common = require("@algolia/client-common");
28
- var apiClientVersion = "5.11.0";
28
+ var apiClientVersion = "5.13.0";
29
29
  function getDefaultHosts(appId) {
30
30
  return [
31
31
  {
@@ -261,6 +261,7 @@ function createSearchClient({
261
261
  indexName,
262
262
  browseParams: {
263
263
  cursor: previousResponse ? previousResponse.cursor : void 0,
264
+ hitsPerPage: 1e3,
264
265
  ...browseParams
265
266
  }
266
267
  },
@@ -300,7 +301,7 @@ function createSearchClient({
300
301
  requestOptions
301
302
  );
302
303
  },
303
- validate: (response) => response.nbHits < params.hitsPerPage,
304
+ validate: (response) => response.hits.length < params.hitsPerPage,
304
305
  ...browseRulesOptions
305
306
  });
306
307
  },
@@ -340,7 +341,7 @@ function createSearchClient({
340
341
  params.page += 1;
341
342
  return resp;
342
343
  },
343
- validate: (response) => response.nbHits < params.hitsPerPage,
344
+ validate: (response) => response.hits.length < params.hitsPerPage,
344
345
  ...browseSynonymsOptions
345
346
  });
346
347
  },