@algolia/client-search 5.26.0 → 5.28.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.
@@ -30,7 +30,7 @@ var import_client_common2 = require("@algolia/client-common");
30
30
 
31
31
  // src/searchClient.ts
32
32
  var import_client_common = require("@algolia/client-common");
33
- var apiClientVersion = "5.26.0";
33
+ var apiClientVersion = "5.28.0";
34
34
  function getDefaultHosts(appId) {
35
35
  return [
36
36
  {
@@ -294,8 +294,8 @@ function createSearchClient({
294
294
  */
295
295
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
296
296
  const params = {
297
- hitsPerPage: 1e3,
298
- ...searchRulesParams
297
+ ...searchRulesParams,
298
+ hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
299
299
  };
300
300
  return (0, import_client_common.createIterablePromise)({
301
301
  func: (previousResponse) => {
@@ -331,8 +331,8 @@ function createSearchClient({
331
331
  ...browseSynonymsOptions
332
332
  }, requestOptions) {
333
333
  const params = {
334
- page: 0,
335
334
  ...searchSynonymsParams,
335
+ page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
336
336
  hitsPerPage: 1e3
337
337
  };
338
338
  return (0, import_client_common.createIterablePromise)({