@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.
@@ -19,7 +19,7 @@ import {
19
19
  getAlgoliaAgent,
20
20
  shuffle
21
21
  } from "@algolia/client-common";
22
- var apiClientVersion = "5.11.0";
22
+ var apiClientVersion = "5.13.0";
23
23
  function getDefaultHosts(appId) {
24
24
  return [
25
25
  {
@@ -255,6 +255,7 @@ function createSearchClient({
255
255
  indexName,
256
256
  browseParams: {
257
257
  cursor: previousResponse ? previousResponse.cursor : void 0,
258
+ hitsPerPage: 1e3,
258
259
  ...browseParams
259
260
  }
260
261
  },
@@ -294,7 +295,7 @@ function createSearchClient({
294
295
  requestOptions
295
296
  );
296
297
  },
297
- validate: (response) => response.nbHits < params.hitsPerPage,
298
+ validate: (response) => response.hits.length < params.hitsPerPage,
298
299
  ...browseRulesOptions
299
300
  });
300
301
  },
@@ -334,7 +335,7 @@ function createSearchClient({
334
335
  params.page += 1;
335
336
  return resp;
336
337
  },
337
- validate: (response) => response.nbHits < params.hitsPerPage,
338
+ validate: (response) => response.hits.length < params.hitsPerPage,
338
339
  ...browseSynonymsOptions
339
340
  });
340
341
  },