@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.
- 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 +13 -8
package/dist/builds/worker.js
CHANGED
|
@@ -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.
|
|
7
|
+
var apiClientVersion = "1.50.1";
|
|
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
|
-
...
|
|
2201
|
+
...workerOptions
|
|
2201
2202
|
})
|
|
2202
2203
|
};
|
|
2203
2204
|
}
|