@eggjs/koa 3.1.0-beta.16 → 3.1.0-beta.18

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 http11 from "http";
10
+ import * as http6 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: http11.IncomingHttpHeaders;
32
+ header: http6.IncomingHttpHeaders;
33
33
  };
34
34
  response: {
35
35
  status: number;
36
36
  message: string;
37
- header: http11.OutgoingHttpHeaders;
37
+ header: http6.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: http11.IncomingHttpHeaders;
56
+ header: http6.IncomingHttpHeaders;
57
57
  };
58
58
  response: {
59
59
  status: number;
60
60
  message: string;
61
- header: http11.OutgoingHttpHeaders;
61
+ header: http6.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: http11.IncomingHttpHeaders;
85
+ header: http6.IncomingHttpHeaders;
86
86
  };
87
87
  response: {
88
88
  status: number;
89
89
  message: string;
90
- header: http11.OutgoingHttpHeaders;
90
+ header: http6.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(): http11.IncomingHttpHeaders;
195
- get headers(): http11.IncomingHttpHeaders;
194
+ get header(): http6.IncomingHttpHeaders;
195
+ get headers(): http6.IncomingHttpHeaders;
196
196
  get secure(): boolean;
197
197
  get stale(): boolean;
198
198
  get fresh(): boolean;
@@ -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 http6 from "http";
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(): http6.OutgoingHttpHeaders;
27
+ get header(): http14.OutgoingHttpHeaders;
28
28
  /**
29
29
  * Return response header, alias as response.header
30
30
  */
31
- get headers(): http6.OutgoingHttpHeaders;
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: http6.OutgoingHttpHeaders;
210
+ header: http14.OutgoingHttpHeaders;
211
211
  } | undefined;
212
212
  [util.inspect.custom](): {
213
213
  status: number;
214
214
  message: string;
215
- header: http6.OutgoingHttpHeaders;
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: http6.OutgoingHttpHeaders;
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.16",
3
+ "version": "3.1.0-beta.18",
4
4
  "engines": {
5
5
  "node": ">=22.18.0"
6
6
  },
@@ -74,7 +74,7 @@
74
74
  "mm": "^4.0.2",
75
75
  "tsdown": "^0.15.4",
76
76
  "typescript": "5.9.2",
77
- "@eggjs/supertest": "9.0.0-beta.16"
77
+ "@eggjs/supertest": "9.0.0-beta.18"
78
78
  },
79
79
  "scripts": {
80
80
  "build": "tsdown",