@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.
@@ -20,7 +20,7 @@ import {
20
20
  getAlgoliaAgent,
21
21
  shuffle
22
22
  } from "@algolia/client-common";
23
- var apiClientVersion = "5.26.0";
23
+ var apiClientVersion = "5.28.0";
24
24
  function getDefaultHosts(appId) {
25
25
  return [
26
26
  {
@@ -284,8 +284,8 @@ function createSearchClient({
284
284
  */
285
285
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
286
286
  const params = {
287
- hitsPerPage: 1e3,
288
- ...searchRulesParams
287
+ ...searchRulesParams,
288
+ hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
289
289
  };
290
290
  return createIterablePromise({
291
291
  func: (previousResponse) => {
@@ -321,8 +321,8 @@ function createSearchClient({
321
321
  ...browseSynonymsOptions
322
322
  }, requestOptions) {
323
323
  const params = {
324
- page: 0,
325
324
  ...searchSynonymsParams,
325
+ page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
326
326
  hitsPerPage: 1e3
327
327
  };
328
328
  return createIterablePromise({