@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.
@@ -25,7 +25,7 @@ __export(searchClient_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(searchClient_exports);
27
27
  var import_client_common = require("@algolia/client-common");
28
- var apiClientVersion = "5.27.0";
28
+ var apiClientVersion = "5.28.0";
29
29
  function getDefaultHosts(appId) {
30
30
  return [
31
31
  {
@@ -289,8 +289,8 @@ function createSearchClient({
289
289
  */
290
290
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
291
291
  const params = {
292
- hitsPerPage: 1e3,
293
- ...searchRulesParams
292
+ ...searchRulesParams,
293
+ hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
294
294
  };
295
295
  return (0, import_client_common.createIterablePromise)({
296
296
  func: (previousResponse) => {
@@ -326,8 +326,8 @@ function createSearchClient({
326
326
  ...browseSynonymsOptions
327
327
  }, requestOptions) {
328
328
  const params = {
329
- page: 0,
330
329
  ...searchSynonymsParams,
330
+ page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
331
331
  hitsPerPage: 1e3
332
332
  };
333
333
  return (0, import_client_common.createIterablePromise)({