@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.
- package/README.md +4 -4
- package/dist/browser.d.ts +1 -1
- package/dist/builds/browser.js +3 -2
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +6 -6
- package/dist/builds/fetch.js +3 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +3 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +3 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +3 -2
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/src/ingestionClient.cjs +1 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +1 -1
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +1 -1
- package/package.json +6 -6
package/dist/builds/node.cjs
CHANGED
|
@@ -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.
|
|
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
|
};
|