@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.
@@ -11,7 +11,7 @@ import {
11
11
  getAlgoliaAgent,
12
12
  shuffle
13
13
  } from "@algolia/client-common";
14
- var apiClientVersion = "5.26.0";
14
+ var apiClientVersion = "5.28.0";
15
15
  function getDefaultHosts(appId) {
16
16
  return [
17
17
  {
@@ -275,8 +275,8 @@ function createSearchClient({
275
275
  */
276
276
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
277
277
  const params = {
278
- hitsPerPage: 1e3,
279
- ...searchRulesParams
278
+ ...searchRulesParams,
279
+ hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
280
280
  };
281
281
  return createIterablePromise({
282
282
  func: (previousResponse) => {
@@ -312,8 +312,8 @@ function createSearchClient({
312
312
  ...browseSynonymsOptions
313
313
  }, requestOptions) {
314
314
  const params = {
315
- page: 0,
316
315
  ...searchSynonymsParams,
316
+ page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
317
317
  hitsPerPage: 1e3
318
318
  };
319
319
  return createIterablePromise({