@algolia/client-search 5.57.0 → 5.60.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
  validateRequired,
12
12
  withRequestId
13
13
  } from "@algolia/client-common";
14
- var apiClientVersion = "5.57.0";
14
+ var apiClientVersion = "5.60.0";
15
15
  function getDefaultHosts(appId) {
16
16
  return [
17
17
  {
@@ -281,7 +281,7 @@ function createSearchClient({
281
281
  requestOptions = withRequestId(transporter, requestOptions);
282
282
  const params = {
283
283
  ...searchRulesParams,
284
- hitsPerPage: searchRulesParams?.hitsPerPage || 1e3
284
+ hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
285
285
  };
286
286
  return createIterablePromise({
287
287
  func: (previousResponse) => {
@@ -319,11 +319,11 @@ function createSearchClient({
319
319
  requestOptions = withRequestId(transporter, requestOptions);
320
320
  const params = {
321
321
  ...searchSynonymsParams,
322
- page: searchSynonymsParams?.page || 0,
322
+ page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
323
323
  hitsPerPage: 1e3
324
324
  };
325
325
  return createIterablePromise({
326
- func: (_) => {
326
+ func: (__) => {
327
327
  const resp = this.searchSynonyms(
328
328
  {
329
329
  indexName,
@@ -4016,7 +4016,4 @@ export {
4016
4016
  apiClientVersion,
4017
4017
  createSearchClient
4018
4018
  };
4019
- //# sourceMappingURL=searchClient.js.mapClientVersion,
4020
- createSearchClient
4021
- };
4022
4019
  //# sourceMappingURL=searchClient.js.map