@algolia/client-search 5.27.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.
@@ -7,7 +7,7 @@ import {
7
7
  getAlgoliaAgent,
8
8
  shuffle
9
9
  } from "@algolia/client-common";
10
- var apiClientVersion = "5.27.0";
10
+ var apiClientVersion = "5.28.0";
11
11
  function getDefaultHosts(appId) {
12
12
  return [
13
13
  {
@@ -271,8 +271,8 @@ function createSearchClient({
271
271
  */
272
272
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
273
273
  const params = {
274
- hitsPerPage: 1e3,
275
- ...searchRulesParams
274
+ ...searchRulesParams,
275
+ hitsPerPage: searchRulesParams?.hitsPerPage || 1e3
276
276
  };
277
277
  return createIterablePromise({
278
278
  func: (previousResponse) => {
@@ -308,8 +308,8 @@ function createSearchClient({
308
308
  ...browseSynonymsOptions
309
309
  }, requestOptions) {
310
310
  const params = {
311
- page: 0,
312
311
  ...searchSynonymsParams,
312
+ page: searchSynonymsParams?.page || 0,
313
313
  hitsPerPage: 1e3
314
314
  };
315
315
  return createIterablePromise({