@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.
@@ -27,12 +27,13 @@ __export(node_exports, {
27
27
  isSubscriptionTrigger: () => isSubscriptionTrigger
28
28
  });
29
29
  module.exports = __toCommonJS(node_exports);
30
+ var import_node_zlib = require("zlib");
30
31
  var import_client_common2 = require("@algolia/client-common");
31
32
  var import_requester_node_http = require("@algolia/requester-node-http");
32
33
 
33
34
  // src/ingestionClient.ts
34
35
  var import_client_common = require("@algolia/client-common");
35
- var apiClientVersion = "1.49.2";
36
+ var apiClientVersion = "1.50.0";
36
37
  var REGIONS = ["eu", "us"];
37
38
  function getDefaultHosts(region) {
38
39
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -2225,6 +2226,7 @@ function ingestionClient(appId, apiKey, region, options) {
2225
2226
  responsesCache: (0, import_client_common2.createNullCache)(),
2226
2227
  requestsCache: (0, import_client_common2.createNullCache)(),
2227
2228
  hostsCache: (0, import_client_common2.createMemoryCache)(),
2229
+ compress: async (data) => (0, import_node_zlib.gzipSync)(Buffer.from(data)),
2228
2230
  ...options
2229
2231
  })
2230
2232
  };