@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.js
CHANGED
|
@@ -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.
|
|
8
|
+
var apiClientVersion = "1.50.0";
|
|
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
|
};
|