@eggjs/koa 3.1.0-beta.5 → 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/context.d.ts CHANGED
@@ -7,7 +7,7 @@ import { IncomingMessage, ServerResponse } from "node:http";
7
7
  import Cookies from "cookies";
8
8
  import { ParsedUrlQuery } from "node:querystring";
9
9
  import { Accepts } from "accepts";
10
- import * as http6 from "http";
10
+ import * as http0 from "http";
11
11
 
12
12
  //#region src/context.d.ts
13
13
  declare class Context {
@@ -29,12 +29,12 @@ declare class Context {
29
29
  request: {
30
30
  method: string;
31
31
  url: string;
32
- header: http6.IncomingHttpHeaders;
32
+ header: http0.IncomingHttpHeaders;
33
33
  };
34
34
  response: {
35
35
  status: number;
36
36
  message: string;
37
- header: http6.OutgoingHttpHeaders;
37
+ header: http0.OutgoingHttpHeaders;
38
38
  };
39
39
  app: {
40
40
  subdomainOffset: number;
@@ -53,12 +53,12 @@ declare class Context {
53
53
  request: {
54
54
  method: string;
55
55
  url: string;
56
- header: http6.IncomingHttpHeaders;
56
+ header: http0.IncomingHttpHeaders;
57
57
  };
58
58
  response: {
59
59
  status: number;
60
60
  message: string;
61
- header: http6.OutgoingHttpHeaders;
61
+ header: http0.OutgoingHttpHeaders;
62
62
  };
63
63
  app: {
64
64
  subdomainOffset: number;
@@ -82,12 +82,12 @@ declare class Context {
82
82
  request: {
83
83
  method: string;
84
84
  url: string;
85
- header: http6.IncomingHttpHeaders;
85
+ header: http0.IncomingHttpHeaders;
86
86
  };
87
87
  response: {
88
88
  status: number;
89
89
  message: string;
90
- header: http6.OutgoingHttpHeaders;
90
+ header: http0.OutgoingHttpHeaders;
91
91
  };
92
92
  app: {
93
93
  subdomainOffset: number;
@@ -191,8 +191,8 @@ declare class Context {
191
191
  get host(): string;
192
192
  get hostname(): string;
193
193
  get URL(): URL;
194
- get header(): http6.IncomingHttpHeaders;
195
- get headers(): http6.IncomingHttpHeaders;
194
+ get header(): http0.IncomingHttpHeaders;
195
+ get headers(): http0.IncomingHttpHeaders;
196
196
  get secure(): boolean;
197
197
  get stale(): boolean;
198
198
  get fresh(): boolean;
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 http0 from "http";
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(): http0.IncomingHttpHeaders;
27
+ get header(): http7.IncomingHttpHeaders;
28
28
  /**
29
29
  * Set request header.
30
30
  */
31
- set header(val: http0.IncomingHttpHeaders);
31
+ set header(val: http7.IncomingHttpHeaders);
32
32
  /**
33
33
  * Return request header, alias as request.header
34
34
  */
35
- get headers(): http0.IncomingHttpHeaders;
35
+ get headers(): http7.IncomingHttpHeaders;
36
36
  /**
37
37
  * Set request header, alias as request.header
38
38
  */
39
- set headers(val: http0.IncomingHttpHeaders);
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: http0.IncomingHttpHeaders;
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: http0.IncomingHttpHeaders;
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: http0.IncomingHttpHeaders;
339
+ header: http7.IncomingHttpHeaders;
340
340
  };
341
341
  }
342
342
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/koa",
3
- "version": "3.1.0-beta.5",
3
+ "version": "3.1.0-beta.6",
4
4
  "engines": {
5
5
  "node": ">= 20.19.0"
6
6
  },
@@ -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.5"
77
+ "@eggjs/supertest": "8.3.0-beta.6"
78
78
  },
79
79
  "scripts": {
80
80
  "build": "tsdown",