@algolia/client-search 5.55.0 → 5.55.1

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.
@@ -31,7 +31,7 @@ var import_requester_node_http = require("@algolia/requester-node-http");
31
31
 
32
32
  // src/searchClient.ts
33
33
  var import_client_common = require("@algolia/client-common");
34
- var apiClientVersion = "5.55.0";
34
+ var apiClientVersion = "5.55.1";
35
35
  function getDefaultHosts(appId) {
36
36
  return [
37
37
  {
@@ -472,10 +472,16 @@ function createSearchClient({
472
472
  * @param replaceAllObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
473
473
  * @param replaceAllObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `objects.length / batchSize`. Defaults to 1000.
474
474
  * @param replaceAllObjects.scopes - The `scopes` to keep from the index. Defaults to ['settings', 'rules', 'synonyms'].
475
- * @param replaceAllObjects.maxRetries - The maximum number of retries when polling for task completion. 100 by default.
475
+ * @param replaceAllObjects.maxRetries - The maximum number of retries when polling for task completion. 800 by default.
476
476
  * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `batch`, `operationIndex` and `getTask` method and merged with the transporter requestOptions.
477
477
  */
478
- async replaceAllObjects({ indexName, objects, batchSize, scopes, maxRetries = 100 }, requestOptions) {
478
+ async replaceAllObjects({
479
+ indexName,
480
+ objects,
481
+ batchSize,
482
+ scopes,
483
+ maxRetries = import_client_common.DEFAULT_REPLACE_ALL_OBJECTS_MAX_RETRIES
484
+ }, requestOptions) {
479
485
  const randomSuffix = Math.floor(Math.random() * 1e6) + 1e5;
480
486
  const tmpIndexName = `${indexName}_tmp_${randomSuffix}`;
481
487
  if (scopes === void 0) {