@eggjs/koa 3.1.0-beta.4 → 3.1.0-beta.6
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/dist/request.d.ts +8 -8
- package/dist/response.d.ts +6 -6
- package/package.json +3 -3
package/dist/request.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { IncomingMessage, ServerResponse } from "node:http";
|
|
|
6
6
|
import { Socket } from "node:net";
|
|
7
7
|
import { ParsedUrlQuery } from "node:querystring";
|
|
8
8
|
import { Accepts } from "accepts";
|
|
9
|
-
import * as
|
|
9
|
+
import * as http7 from "http";
|
|
10
10
|
|
|
11
11
|
//#region src/request.d.ts
|
|
12
12
|
interface RequestSocket extends Socket {
|
|
@@ -24,19 +24,19 @@ declare class Request {
|
|
|
24
24
|
/**
|
|
25
25
|
* Return request header.
|
|
26
26
|
*/
|
|
27
|
-
get header():
|
|
27
|
+
get header(): http7.IncomingHttpHeaders;
|
|
28
28
|
/**
|
|
29
29
|
* Set request header.
|
|
30
30
|
*/
|
|
31
|
-
set header(val:
|
|
31
|
+
set header(val: http7.IncomingHttpHeaders);
|
|
32
32
|
/**
|
|
33
33
|
* Return request header, alias as request.header
|
|
34
34
|
*/
|
|
35
|
-
get headers():
|
|
35
|
+
get headers(): http7.IncomingHttpHeaders;
|
|
36
36
|
/**
|
|
37
37
|
* Set request header, alias as request.header
|
|
38
38
|
*/
|
|
39
|
-
set headers(val:
|
|
39
|
+
set headers(val: http7.IncomingHttpHeaders);
|
|
40
40
|
/**
|
|
41
41
|
* Get request URL.
|
|
42
42
|
*/
|
|
@@ -320,7 +320,7 @@ declare class Request {
|
|
|
320
320
|
inspect(): {
|
|
321
321
|
method: string;
|
|
322
322
|
url: string;
|
|
323
|
-
header:
|
|
323
|
+
header: http7.IncomingHttpHeaders;
|
|
324
324
|
} | undefined;
|
|
325
325
|
/**
|
|
326
326
|
* Custom inspection implementation for newer Node.js versions.
|
|
@@ -328,7 +328,7 @@ declare class Request {
|
|
|
328
328
|
[util.inspect.custom](): {
|
|
329
329
|
method: string;
|
|
330
330
|
url: string;
|
|
331
|
-
header:
|
|
331
|
+
header: http7.IncomingHttpHeaders;
|
|
332
332
|
} | undefined;
|
|
333
333
|
/**
|
|
334
334
|
* Return JSON representation.
|
|
@@ -336,7 +336,7 @@ declare class Request {
|
|
|
336
336
|
toJSON(): {
|
|
337
337
|
method: string;
|
|
338
338
|
url: string;
|
|
339
|
-
header:
|
|
339
|
+
header: http7.IncomingHttpHeaders;
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
//#endregion
|
package/dist/response.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import util from "node:util";
|
|
|
5
5
|
import Stream from "node:stream";
|
|
6
6
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
7
7
|
import { Options } from "content-disposition";
|
|
8
|
-
import * as
|
|
8
|
+
import * as http14 from "http";
|
|
9
9
|
import * as net0 from "net";
|
|
10
10
|
|
|
11
11
|
//#region src/response.d.ts
|
|
@@ -24,11 +24,11 @@ declare class Response {
|
|
|
24
24
|
/**
|
|
25
25
|
* Return response header.
|
|
26
26
|
*/
|
|
27
|
-
get header():
|
|
27
|
+
get header(): http14.OutgoingHttpHeaders;
|
|
28
28
|
/**
|
|
29
29
|
* Return response header, alias as response.header
|
|
30
30
|
*/
|
|
31
|
-
get headers():
|
|
31
|
+
get headers(): http14.OutgoingHttpHeaders;
|
|
32
32
|
_explicitStatus: boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Get response status code.
|
|
@@ -207,12 +207,12 @@ declare class Response {
|
|
|
207
207
|
inspect(): {
|
|
208
208
|
status: number;
|
|
209
209
|
message: string;
|
|
210
|
-
header:
|
|
210
|
+
header: http14.OutgoingHttpHeaders;
|
|
211
211
|
} | undefined;
|
|
212
212
|
[util.inspect.custom](): {
|
|
213
213
|
status: number;
|
|
214
214
|
message: string;
|
|
215
|
-
header:
|
|
215
|
+
header: http14.OutgoingHttpHeaders;
|
|
216
216
|
} | undefined;
|
|
217
217
|
/**
|
|
218
218
|
* Return JSON representation.
|
|
@@ -220,7 +220,7 @@ declare class Response {
|
|
|
220
220
|
toJSON(): {
|
|
221
221
|
status: number;
|
|
222
222
|
message: string;
|
|
223
|
-
header:
|
|
223
|
+
header: http14.OutgoingHttpHeaders;
|
|
224
224
|
};
|
|
225
225
|
/**
|
|
226
226
|
* Flush any set headers and begin the body
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/koa",
|
|
3
|
-
"version": "3.1.0-beta.
|
|
3
|
+
"version": "3.1.0-beta.6",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">= 20.19.0"
|
|
6
6
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"on-finished": "^2.4.1",
|
|
53
53
|
"parseurl": "^1.3.3",
|
|
54
54
|
"statuses": "^2.0.1",
|
|
55
|
-
"type-is": "^
|
|
55
|
+
"type-is": "^2.0.0",
|
|
56
56
|
"vary": "^1.1.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"mm": "^4.0.2",
|
|
75
75
|
"tsdown": "^0.15.0",
|
|
76
76
|
"typescript": "5.9.2",
|
|
77
|
-
"@eggjs/supertest": "8.3.0-beta.
|
|
77
|
+
"@eggjs/supertest": "8.3.0-beta.6"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "tsdown",
|