@algolia/ingestion 1.51.0 → 1.52.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 +46 -7
- package/dist/builds/browser.js +2 -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 +2 -2
- package/dist/builds/fetch.js +2 -2
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +2 -2
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +2 -2
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +2 -2
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +46 -7
- package/dist/node.d.cts +46 -7
- package/dist/node.d.ts +46 -7
- package/dist/src/ingestionClient.cjs +2 -2
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +9 -2
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +46 -7
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/ingestionClient.ts
|
|
2
2
|
import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
3
|
-
var apiClientVersion = "1.
|
|
3
|
+
var apiClientVersion = "1.52.1";
|
|
4
4
|
var REGIONS = ["eu", "us"];
|
|
5
5
|
function getDefaultHosts(region) {
|
|
6
6
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -144,7 +144,7 @@ function createIngestionClient({
|
|
|
144
144
|
validate: () => retryCount >= 50,
|
|
145
145
|
message: () => `The maximum number of retries exceeded. (${retryCount}/${50})`
|
|
146
146
|
},
|
|
147
|
-
timeout: () => Math.min(retryCount *
|
|
147
|
+
timeout: () => Math.min(retryCount * 1500, 5e3)
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
offset += waitBatchSize;
|
|
@@ -2173,4 +2173,11 @@ export {
|
|
|
2173
2173
|
isScheduleTrigger,
|
|
2174
2174
|
isSubscriptionTrigger
|
|
2175
2175
|
};
|
|
2176
|
+
//# sourceMappingURL=ingestionClient.js.mapEGIONS,
|
|
2177
|
+
apiClientVersion,
|
|
2178
|
+
createIngestionClient,
|
|
2179
|
+
isOnDemandTrigger,
|
|
2180
|
+
isScheduleTrigger,
|
|
2181
|
+
isSubscriptionTrigger
|
|
2182
|
+
};
|
|
2176
2183
|
//# sourceMappingURL=ingestionClient.js.map
|