@algolia/ingestion 1.17.1 → 1.18.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 +33 -1
- 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 +1 -1
- package/dist/builds/fetch.js +34 -2
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +33 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +33 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1987 -0
- package/dist/builds/worker.js.map +1 -0
- 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 +33 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +33 -1
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +3015 -0
- package/package.json +8 -8
package/dist/builds/node.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createMemoryCache, createNullCache, createNullLogger } from "@algolia/c
|
|
|
4
4
|
|
|
5
5
|
// src/ingestionClient.ts
|
|
6
6
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
7
|
-
var apiClientVersion = "1.
|
|
7
|
+
var apiClientVersion = "1.18.0";
|
|
8
8
|
var REGIONS = ["eu", "us"];
|
|
9
9
|
function getDefaultHosts(region) {
|
|
10
10
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -1311,6 +1311,14 @@ function createIngestionClient({
|
|
|
1311
1311
|
headers,
|
|
1312
1312
|
data: pushTaskPayload
|
|
1313
1313
|
};
|
|
1314
|
+
requestOptions = {
|
|
1315
|
+
timeouts: {
|
|
1316
|
+
connect: 18e4,
|
|
1317
|
+
read: 18e4,
|
|
1318
|
+
write: 18e4,
|
|
1319
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1320
|
+
}
|
|
1321
|
+
};
|
|
1314
1322
|
return transporter.request(request, requestOptions);
|
|
1315
1323
|
},
|
|
1316
1324
|
/**
|
|
@@ -1595,6 +1603,14 @@ function createIngestionClient({
|
|
|
1595
1603
|
queryParameters,
|
|
1596
1604
|
headers
|
|
1597
1605
|
};
|
|
1606
|
+
requestOptions = {
|
|
1607
|
+
timeouts: {
|
|
1608
|
+
connect: 18e4,
|
|
1609
|
+
read: 18e4,
|
|
1610
|
+
write: 18e4,
|
|
1611
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1612
|
+
}
|
|
1613
|
+
};
|
|
1598
1614
|
return transporter.request(request, requestOptions);
|
|
1599
1615
|
},
|
|
1600
1616
|
/**
|
|
@@ -1878,6 +1894,14 @@ function createIngestionClient({
|
|
|
1878
1894
|
headers,
|
|
1879
1895
|
data: sourceCreate ? sourceCreate : {}
|
|
1880
1896
|
};
|
|
1897
|
+
requestOptions = {
|
|
1898
|
+
timeouts: {
|
|
1899
|
+
connect: 18e4,
|
|
1900
|
+
read: 18e4,
|
|
1901
|
+
write: 18e4,
|
|
1902
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1903
|
+
}
|
|
1904
|
+
};
|
|
1881
1905
|
return transporter.request(request, requestOptions);
|
|
1882
1906
|
},
|
|
1883
1907
|
/**
|
|
@@ -1909,6 +1933,14 @@ function createIngestionClient({
|
|
|
1909
1933
|
headers,
|
|
1910
1934
|
data: sourceUpdate
|
|
1911
1935
|
};
|
|
1936
|
+
requestOptions = {
|
|
1937
|
+
timeouts: {
|
|
1938
|
+
connect: 18e4,
|
|
1939
|
+
read: 18e4,
|
|
1940
|
+
write: 18e4,
|
|
1941
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1942
|
+
}
|
|
1943
|
+
};
|
|
1912
1944
|
return transporter.request(request, requestOptions);
|
|
1913
1945
|
}
|
|
1914
1946
|
};
|