@algolia/ingestion 1.49.2 → 1.50.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.
@@ -1,10 +1,11 @@
1
1
  // builds/node.ts
2
+ import { gzipSync } from "zlib";
2
3
  import { createMemoryCache, createNullCache, createNullLogger } from "@algolia/client-common";
3
4
  import { createHttpRequester } from "@algolia/requester-node-http";
4
5
 
5
6
  // src/ingestionClient.ts
6
7
  import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
7
- var apiClientVersion = "1.49.2";
8
+ var apiClientVersion = "1.50.1";
8
9
  var REGIONS = ["eu", "us"];
9
10
  function getDefaultHosts(region) {
10
11
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -2197,6 +2198,7 @@ function ingestionClient(appId, apiKey, region, options) {
2197
2198
  responsesCache: createNullCache(),
2198
2199
  requestsCache: createNullCache(),
2199
2200
  hostsCache: createMemoryCache(),
2201
+ compress: async (data) => gzipSync(Buffer.from(data)),
2200
2202
  ...options
2201
2203
  })
2202
2204
  };