@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/README.md
CHANGED
|
@@ -41,11 +41,11 @@ All of our clients comes with type definition, and are available for both browse
|
|
|
41
41
|
### With a package manager
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
yarn add @algolia/ingestion@1.
|
|
44
|
+
yarn add @algolia/ingestion@1.18.0
|
|
45
45
|
# or
|
|
46
|
-
npm install @algolia/ingestion@1.
|
|
46
|
+
npm install @algolia/ingestion@1.18.0
|
|
47
47
|
# or
|
|
48
|
-
pnpm add @algolia/ingestion@1.
|
|
48
|
+
pnpm add @algolia/ingestion@1.18.0
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
### Without a package manager
|
|
@@ -53,7 +53,7 @@ pnpm add @algolia/ingestion@1.17.1
|
|
|
53
53
|
Add the following JavaScript snippet to the <head> of your website:
|
|
54
54
|
|
|
55
55
|
```html
|
|
56
|
-
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.
|
|
56
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.18.0/dist/builds/browser.umd.js"></script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Usage
|
package/dist/browser.d.ts
CHANGED
|
@@ -2267,7 +2267,7 @@ type ValidateSourceBeforeUpdateProps = {
|
|
|
2267
2267
|
sourceUpdate: SourceUpdate;
|
|
2268
2268
|
};
|
|
2269
2269
|
|
|
2270
|
-
declare const apiClientVersion = "1.
|
|
2270
|
+
declare const apiClientVersion = "1.18.0";
|
|
2271
2271
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2272
2272
|
type Region = (typeof REGIONS)[number];
|
|
2273
2273
|
type RegionOptions = {
|
package/dist/builds/browser.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
// src/ingestionClient.ts
|
|
11
11
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
12
|
-
var apiClientVersion = "1.
|
|
12
|
+
var apiClientVersion = "1.18.0";
|
|
13
13
|
var REGIONS = ["eu", "us"];
|
|
14
14
|
function getDefaultHosts(region) {
|
|
15
15
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -1316,6 +1316,14 @@ function createIngestionClient({
|
|
|
1316
1316
|
headers,
|
|
1317
1317
|
data: pushTaskPayload
|
|
1318
1318
|
};
|
|
1319
|
+
requestOptions = {
|
|
1320
|
+
timeouts: {
|
|
1321
|
+
connect: 18e4,
|
|
1322
|
+
read: 18e4,
|
|
1323
|
+
write: 18e4,
|
|
1324
|
+
...requestOptions?.timeouts
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1319
1327
|
return transporter.request(request, requestOptions);
|
|
1320
1328
|
},
|
|
1321
1329
|
/**
|
|
@@ -1600,6 +1608,14 @@ function createIngestionClient({
|
|
|
1600
1608
|
queryParameters,
|
|
1601
1609
|
headers
|
|
1602
1610
|
};
|
|
1611
|
+
requestOptions = {
|
|
1612
|
+
timeouts: {
|
|
1613
|
+
connect: 18e4,
|
|
1614
|
+
read: 18e4,
|
|
1615
|
+
write: 18e4,
|
|
1616
|
+
...requestOptions?.timeouts
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1603
1619
|
return transporter.request(request, requestOptions);
|
|
1604
1620
|
},
|
|
1605
1621
|
/**
|
|
@@ -1883,6 +1899,14 @@ function createIngestionClient({
|
|
|
1883
1899
|
headers,
|
|
1884
1900
|
data: sourceCreate ? sourceCreate : {}
|
|
1885
1901
|
};
|
|
1902
|
+
requestOptions = {
|
|
1903
|
+
timeouts: {
|
|
1904
|
+
connect: 18e4,
|
|
1905
|
+
read: 18e4,
|
|
1906
|
+
write: 18e4,
|
|
1907
|
+
...requestOptions?.timeouts
|
|
1908
|
+
}
|
|
1909
|
+
};
|
|
1886
1910
|
return transporter.request(request, requestOptions);
|
|
1887
1911
|
},
|
|
1888
1912
|
/**
|
|
@@ -1914,6 +1938,14 @@ function createIngestionClient({
|
|
|
1914
1938
|
headers,
|
|
1915
1939
|
data: sourceUpdate
|
|
1916
1940
|
};
|
|
1941
|
+
requestOptions = {
|
|
1942
|
+
timeouts: {
|
|
1943
|
+
connect: 18e4,
|
|
1944
|
+
read: 18e4,
|
|
1945
|
+
write: 18e4,
|
|
1946
|
+
...requestOptions?.timeouts
|
|
1947
|
+
}
|
|
1948
|
+
};
|
|
1917
1949
|
return transporter.request(request, requestOptions);
|
|
1918
1950
|
}
|
|
1919
1951
|
};
|