@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.
@@ -16,7 +16,7 @@ import {
16
16
  getAlgoliaAgent,
17
17
  shuffle
18
18
  } from "@algolia/client-common";
19
- var apiClientVersion = "5.26.0";
19
+ var apiClientVersion = "5.28.0";
20
20
  function getDefaultHosts(appId) {
21
21
  return [
22
22
  {
@@ -280,8 +280,8 @@ function createSearchClient({
280
280
  */
281
281
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
282
282
  const params = {
283
- hitsPerPage: 1e3,
284
- ...searchRulesParams
283
+ ...searchRulesParams,
284
+ hitsPerPage: searchRulesParams?.hitsPerPage || 1e3
285
285
  };
286
286
  return createIterablePromise({
287
287
  func: (previousResponse) => {
@@ -317,8 +317,8 @@ function createSearchClient({
317
317
  ...browseSynonymsOptions
318
318
  }, requestOptions) {
319
319
  const params = {
320
- page: 0,
321
320
  ...searchSynonymsParams,
321
+ page: searchSynonymsParams?.page || 0,
322
322
  hitsPerPage: 1e3
323
323
  };
324
324
  return createIterablePromise({