@algolia/client-search 5.12.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.
@@ -29,7 +29,7 @@ var import_client_common2 = require("@algolia/client-common");
29
29
 
30
30
  // src/searchClient.ts
31
31
  var import_client_common = require("@algolia/client-common");
32
- var apiClientVersion = "5.12.0";
32
+ var apiClientVersion = "5.13.0";
33
33
  function getDefaultHosts(appId) {
34
34
  return [
35
35
  {
@@ -265,6 +265,7 @@ function createSearchClient({
265
265
  indexName,
266
266
  browseParams: {
267
267
  cursor: previousResponse ? previousResponse.cursor : void 0,
268
+ hitsPerPage: 1e3,
268
269
  ...browseParams
269
270
  }
270
271
  },
@@ -304,7 +305,7 @@ function createSearchClient({
304
305
  requestOptions
305
306
  );
306
307
  },
307
- validate: (response) => response.nbHits < params.hitsPerPage,
308
+ validate: (response) => response.hits.length < params.hitsPerPage,
308
309
  ...browseRulesOptions
309
310
  });
310
311
  },
@@ -344,7 +345,7 @@ function createSearchClient({
344
345
  params.page += 1;
345
346
  return resp;
346
347
  },
347
- validate: (response) => response.nbHits < params.hitsPerPage,
348
+ validate: (response) => response.hits.length < params.hitsPerPage,
348
349
  ...browseSynonymsOptions
349
350
  });
350
351
  },