@algolia/requester-fetch 5.0.0-alpha.89 → 5.0.0-alpha.90
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/requester-fetch",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.90",
|
|
4
4
|
"description": "Promise-based request library using Fetch.",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,14 +20,16 @@
|
|
|
20
20
|
"test": "jest"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
23
|
+
"@algolia/client-common": "5.0.0-alpha.90"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
26
|
+
"@babel/preset-env": "7.23.2",
|
|
27
|
+
"@babel/preset-typescript": "7.23.2",
|
|
28
|
+
"@types/jest": "29.5.7",
|
|
29
|
+
"@types/node": "20.8.10",
|
|
28
30
|
"cross-fetch": "4.0.0",
|
|
29
31
|
"jest": "29.7.0",
|
|
30
|
-
"nock": "13.3.
|
|
32
|
+
"nock": "13.3.8",
|
|
31
33
|
"ts-jest": "29.1.1",
|
|
32
34
|
"typescript": "5.2.2"
|
|
33
35
|
},
|
|
@@ -95,8 +95,8 @@ describe('status code handling', () => {
|
|
|
95
95
|
// create a test response stream that is chunked inside a unicode character
|
|
96
96
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
97
97
|
function* generate() {
|
|
98
|
-
yield data.
|
|
99
|
-
yield data.
|
|
98
|
+
yield data.subarray(0, 3);
|
|
99
|
+
yield data.subarray(3);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
const testStream = Readable.from(generate());
|
|
@@ -130,7 +130,7 @@ describe('timeout handling', () => {
|
|
|
130
130
|
const response = await requester.send({
|
|
131
131
|
...timeoutRequest,
|
|
132
132
|
connectTimeout: 1000,
|
|
133
|
-
url: 'http://
|
|
133
|
+
url: 'http://localhost:1111/connection_timeout',
|
|
134
134
|
});
|
|
135
135
|
|
|
136
136
|
const now = Date.now();
|
|
@@ -145,7 +145,7 @@ describe('timeout handling', () => {
|
|
|
145
145
|
const response = await requester.send({
|
|
146
146
|
...timeoutRequest,
|
|
147
147
|
connectTimeout: 2000,
|
|
148
|
-
url: 'http://
|
|
148
|
+
url: 'http://localhost:1111/connection_timeout',
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
const now = Date.now();
|