@algolia/requester-fetch 5.0.0-beta.1 → 5.0.0-beta.10

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,8 +1,11 @@
1
1
  {
2
2
  "name": "@algolia/requester-fetch",
3
- "version": "5.0.0-beta.1",
3
+ "version": "5.0.0-beta.10",
4
4
  "description": "Promise-based request library using Fetch.",
5
- "repository": "algolia/algoliasearch-client-javascript",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
8
+ },
6
9
  "license": "MIT",
7
10
  "author": "Algolia",
8
11
  "type": "module",
@@ -20,18 +23,18 @@
20
23
  "test": "jest"
21
24
  },
22
25
  "dependencies": {
23
- "@algolia/client-common": "5.0.0-beta.1"
26
+ "@algolia/client-common": "5.0.0-beta.10"
24
27
  },
25
28
  "devDependencies": {
26
- "@babel/preset-env": "7.24.4",
27
- "@babel/preset-typescript": "7.24.1",
29
+ "@babel/preset-env": "7.24.7",
30
+ "@babel/preset-typescript": "7.24.7",
28
31
  "@types/jest": "29.5.12",
29
- "@types/node": "20.12.7",
32
+ "@types/node": "20.14.10",
30
33
  "cross-fetch": "4.0.0",
31
34
  "jest": "29.7.0",
32
35
  "nock": "13.5.4",
33
- "ts-jest": "29.1.2",
34
- "typescript": "5.4.5"
36
+ "ts-jest": "29.1.5",
37
+ "typescript": "5.5.3"
35
38
  },
36
39
  "engines": {
37
40
  "node": ">= 14.0.0"
@@ -118,7 +118,7 @@ describe('timeout handling', () => {
118
118
  beforeAll(() => {
119
119
  server = createTestServer();
120
120
 
121
- server.listen('1111');
121
+ server.listen('1113');
122
122
  });
123
123
 
124
124
  afterAll((done) => {
@@ -130,7 +130,7 @@ describe('timeout handling', () => {
130
130
  const response = await requester.send({
131
131
  ...timeoutRequest,
132
132
  connectTimeout: 1000,
133
- url: 'http://localhost:1111/connection_timeout',
133
+ url: 'http://localhost:1113/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://localhost:1111/connection_timeout',
148
+ url: 'http://localhost:1113/connection_timeout',
149
149
  });
150
150
 
151
151
  const now = Date.now();
@@ -161,7 +161,7 @@ describe('timeout handling', () => {
161
161
  const response = await requester.send({
162
162
  ...timeoutRequest,
163
163
  responseTimeout: 2000,
164
- url: 'http://localhost:1111',
164
+ url: 'http://localhost:1113',
165
165
  });
166
166
 
167
167
  const now = Date.now();
@@ -176,7 +176,7 @@ describe('timeout handling', () => {
176
176
  const response = await requester.send({
177
177
  ...timeoutRequest,
178
178
  responseTimeout: 3000,
179
- url: 'http://localhost:1111',
179
+ url: 'http://localhost:1113',
180
180
  });
181
181
 
182
182
  const now = Date.now();
@@ -190,7 +190,7 @@ describe('timeout handling', () => {
190
190
  const before = Date.now();
191
191
  const response = await requester.send({
192
192
  ...requestStub,
193
- url: 'http://localhost:1111',
193
+ url: 'http://localhost:1113',
194
194
  responseTimeout: 6000,
195
195
  });
196
196