@algolia/ingestion 1.49.2 → 1.50.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.
@@ -4,7 +4,7 @@ import { createFetchRequester } from "@algolia/requester-fetch";
4
4
 
5
5
  // src/ingestionClient.ts
6
6
  import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
7
- var apiClientVersion = "1.49.2";
7
+ var apiClientVersion = "1.50.0";
8
8
  var REGIONS = ["eu", "us"];
9
9
  function getDefaultHosts(region) {
10
10
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -2181,6 +2181,7 @@ function ingestionClient(appId, apiKey, region, options) {
2181
2181
  if (!region || region && (typeof region !== "string" || !REGIONS.includes(region))) {
2182
2182
  throw new Error(`\`region\` is required and must be one of the following: ${REGIONS.join(", ")}`);
2183
2183
  }
2184
+ const { compression: _compression, ...workerOptions } = options || {};
2184
2185
  return {
2185
2186
  ...createIngestionClient({
2186
2187
  appId,
@@ -2197,7 +2198,7 @@ function ingestionClient(appId, apiKey, region, options) {
2197
2198
  responsesCache: createNullCache(),
2198
2199
  requestsCache: createNullCache(),
2199
2200
  hostsCache: createMemoryCache(),
2200
- ...options
2201
+ ...workerOptions
2201
2202
  })
2202
2203
  };
2203
2204
  }