@algolia/requester-node-http 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.
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import http from 'http';
4
2
  import https from 'https';
5
3
  import type { Requester } from '@algolia/client-common';
@@ -1 +1 @@
1
- {"version":3,"file":"createHttpRequester.d.ts","sourceRoot":"","sources":["../../src/createHttpRequester.ts"],"names":[],"mappings":";;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAc,SAAS,EAAY,MAAM,wBAAwB,CAAC;AAE9E,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;IAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAChC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC;IACxB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,cAAc,CAAC;CACxC,CAAC,CAAC;AAOH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EAAE,eAAe,EACtB,SAAS,EAAE,aAAa,EACxB,UAAU,EAAE,cAAc,EAC1B,gBAAqB,GACtB,GAAE,0BAA+B,GAAG,SAAS,CA6F7C"}
1
+ {"version":3,"file":"createHttpRequester.d.ts","sourceRoot":"","sources":["../../src/createHttpRequester.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAc,SAAS,EAAY,MAAM,wBAAwB,CAAC;AAE9E,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;IAC/C,KAAK,EAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAChC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC;IACxB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,cAAc,CAAC;CACxC,CAAC,CAAC;AAOH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EAAE,eAAe,EACtB,SAAS,EAAE,aAAa,EACxB,UAAU,EAAE,cAAc,EAC1B,gBAAqB,GACtB,GAAE,0BAA+B,GAAG,SAAS,CA6F7C"}
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@algolia/requester-node-http",
3
- "version": "5.0.0-beta.1",
3
+ "version": "5.0.0-beta.10",
4
4
  "description": "Promise-based request library for node using the native http module.",
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,17 +23,17 @@
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
  "jest": "29.7.0",
31
34
  "nock": "13.5.4",
32
- "ts-jest": "29.1.2",
33
- "typescript": "5.4.5"
35
+ "ts-jest": "29.1.5",
36
+ "typescript": "5.5.3"
34
37
  },
35
38
  "engines": {
36
39
  "node": ">= 14.0.0"
@@ -174,7 +174,7 @@ describe('timeout handling', () => {
174
174
  beforeAll(() => {
175
175
  server = createTestServer();
176
176
 
177
- server.listen('1111');
177
+ server.listen('1112');
178
178
  });
179
179
 
180
180
  afterAll((done) => {
@@ -186,7 +186,7 @@ describe('timeout handling', () => {
186
186
  const response = await requester.send({
187
187
  ...timeoutRequest,
188
188
  connectTimeout: 1000,
189
- url: 'http://localhost:1111/connection_timeout',
189
+ url: 'http://localhost:1112/connection_timeout',
190
190
  });
191
191
 
192
192
  const now = Date.now();
@@ -201,7 +201,7 @@ describe('timeout handling', () => {
201
201
  const response = await requester.send({
202
202
  ...timeoutRequest,
203
203
  connectTimeout: 2000,
204
- url: 'http://localhost:1111/connection_timeout',
204
+ url: 'http://localhost:1112/connection_timeout',
205
205
  });
206
206
 
207
207
  const now = Date.now();
@@ -217,7 +217,7 @@ describe('timeout handling', () => {
217
217
  const response = await requester.send({
218
218
  ...timeoutRequest,
219
219
  responseTimeout: 2000,
220
- url: 'http://localhost:1111',
220
+ url: 'http://localhost:1112',
221
221
  });
222
222
 
223
223
  const now = Date.now();
@@ -232,7 +232,7 @@ describe('timeout handling', () => {
232
232
  const response = await requester.send({
233
233
  ...timeoutRequest,
234
234
  responseTimeout: 3000,
235
- url: 'http://localhost:1111',
235
+ url: 'http://localhost:1112',
236
236
  });
237
237
 
238
238
  const now = Date.now();
@@ -246,7 +246,7 @@ describe('timeout handling', () => {
246
246
  const before = Date.now();
247
247
  const response = await requester.send({
248
248
  ...requestStub,
249
- url: 'http://localhost:1111',
249
+ url: 'http://localhost:1112',
250
250
  responseTimeout: 6000,
251
251
  });
252
252