@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.
@@ -7,7 +7,7 @@ import {
7
7
  getAlgoliaAgent,
8
8
  shuffle
9
9
  } from "@algolia/client-common";
10
- var apiClientVersion = "5.11.0";
10
+ var apiClientVersion = "5.13.0";
11
11
  function getDefaultHosts(appId) {
12
12
  return [
13
13
  {
@@ -243,6 +243,7 @@ function createSearchClient({
243
243
  indexName,
244
244
  browseParams: {
245
245
  cursor: previousResponse ? previousResponse.cursor : void 0,
246
+ hitsPerPage: 1e3,
246
247
  ...browseParams
247
248
  }
248
249
  },
@@ -282,7 +283,7 @@ function createSearchClient({
282
283
  requestOptions
283
284
  );
284
285
  },
285
- validate: (response) => response.nbHits < params.hitsPerPage,
286
+ validate: (response) => response.hits.length < params.hitsPerPage,
286
287
  ...browseRulesOptions
287
288
  });
288
289
  },
@@ -322,7 +323,7 @@ function createSearchClient({
322
323
  params.page += 1;
323
324
  return resp;
324
325
  },
325
- validate: (response) => response.nbHits < params.hitsPerPage,
326
+ validate: (response) => response.hits.length < params.hitsPerPage,
326
327
  ...browseSynonymsOptions
327
328
  });
328
329
  },