@algolia/client-search 5.35.0 → 5.36.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.35.0";
10
+ var apiClientVersion = "5.36.0";
11
11
  function getDefaultHosts(appId) {
12
12
  return [
13
13
  {
@@ -272,7 +272,7 @@ function createSearchClient({
272
272
  browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
273
273
  const params = {
274
274
  ...searchRulesParams,
275
- hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
275
+ hitsPerPage: searchRulesParams?.hitsPerPage || 1e3
276
276
  };
277
277
  return createIterablePromise({
278
278
  func: (previousResponse) => {
@@ -309,7 +309,7 @@ function createSearchClient({
309
309
  }, requestOptions) {
310
310
  const params = {
311
311
  ...searchSynonymsParams,
312
- page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
312
+ page: searchSynonymsParams?.page || 0,
313
313
  hitsPerPage: 1e3
314
314
  };
315
315
  return createIterablePromise({
@@ -427,7 +427,7 @@ function createSearchClient({
427
427
  },
428
428
  /**
429
429
  * Helper: Replaces all objects (records) in the given `index_name` with the given `objects`. A temporary index is created during this process in order to backup your data.
430
- * See https://api-clients-automation.netlify.app/docs/add-new-api-client#5-helpers for implementation details.
430
+ * See https://api-clients-automation.netlify.app/docs/custom-helpers/#replaceallobjects for implementation details.
431
431
  *
432
432
  * @summary Helper: Replaces all objects (records) in the given `index_name` with the given `objects`. A temporary index is created during this process in order to backup your data.
433
433
  * @param replaceAllObjects - The `replaceAllObjects` object.
@@ -2329,4 +2329,7 @@ export {
2329
2329
  apiClientVersion,
2330
2330
  createSearchClient
2331
2331
  };
2332
+ //# sourceMappingURL=searchClient.js.mapClientVersion,
2333
+ createSearchClient
2334
+ };
2332
2335
  //# sourceMappingURL=searchClient.js.map