@eggjs/koa 3.1.0-beta.35 → 3.1.0-beta.36
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/application.d.ts +113 -110
- package/dist/application.js +240 -281
- package/dist/context.d.ts +163 -159
- package/dist/context.js +296 -346
- package/dist/index.d.ts +6 -7
- package/dist/index.js +9 -6
- package/dist/request.d.ts +323 -319
- package/dist/request.js +451 -514
- package/dist/response.d.ts +214 -210
- package/dist/response.js +384 -468
- package/dist/types.d.ts +12 -9
- package/package.json +31 -36
- package/dist/types.js +0 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/types.d.ts
|
|
2
|
+
type CustomError = Error & {
|
|
3
|
+
headers?: Record<string, string>;
|
|
4
|
+
status?: number;
|
|
5
|
+
statusCode?: number;
|
|
6
|
+
code?: string;
|
|
7
|
+
expose?: boolean;
|
|
8
|
+
headerSent?: boolean;
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
interface AnyProto {
|
|
11
|
+
[key: string | symbol]: any;
|
|
11
12
|
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AnyProto, CustomError };
|
package/package.json
CHANGED
|
@@ -1,47 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/koa",
|
|
3
|
-
"version": "3.1.0-beta.
|
|
4
|
-
"engines": {
|
|
5
|
-
"node": ">=22.18.0"
|
|
6
|
-
},
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"access": "public"
|
|
9
|
-
},
|
|
10
|
-
"type": "module",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": "./dist/index.js",
|
|
13
|
-
"./package.json": "./package.json"
|
|
14
|
-
},
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"files": [
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"main": "./dist/index.js",
|
|
20
|
-
"module": "./dist/index.js",
|
|
3
|
+
"version": "3.1.0-beta.36",
|
|
21
4
|
"description": "Koa web app framework for https://eggjs.org",
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/eggjs/egg.git",
|
|
25
|
-
"directory": "packages/koa"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://github.com/eggjs/egg/tree/next/packages/koa",
|
|
28
5
|
"keywords": [
|
|
29
|
-
"web",
|
|
30
6
|
"app",
|
|
31
|
-
"http",
|
|
32
7
|
"application",
|
|
33
8
|
"framework",
|
|
9
|
+
"http",
|
|
34
10
|
"middleware",
|
|
35
|
-
"rack"
|
|
11
|
+
"rack",
|
|
12
|
+
"web"
|
|
36
13
|
],
|
|
14
|
+
"homepage": "https://github.com/eggjs/egg/tree/next/packages/koa",
|
|
37
15
|
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/eggjs/egg.git",
|
|
19
|
+
"directory": "packages/koa"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": "./dist/index.js",
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"@types/content-disposition": "^0.5.8",
|
|
40
37
|
"accepts": "^1.3.8",
|
|
41
38
|
"cache-content-type": "^2.0.0",
|
|
42
39
|
"content-disposition": "~1.0.0",
|
|
43
40
|
"content-type": "^1.0.5",
|
|
44
|
-
"cookies": "^0.9.1",
|
|
45
41
|
"destroy": "^1.0.4",
|
|
46
42
|
"encodeurl": "^2.0.0",
|
|
47
43
|
"escape-html": "^1.0.3",
|
|
@@ -54,12 +50,12 @@
|
|
|
54
50
|
"parseurl": "^1.3.3",
|
|
55
51
|
"statuses": "^2.0.1",
|
|
56
52
|
"type-is": "^2.0.0",
|
|
57
|
-
"vary": "^1.1.2"
|
|
53
|
+
"vary": "^1.1.2",
|
|
54
|
+
"@eggjs/cookies": "4.0.0-beta.36"
|
|
58
55
|
},
|
|
59
56
|
"devDependencies": {
|
|
60
57
|
"@types/accepts": "^1.3.7",
|
|
61
58
|
"@types/content-type": "^1.1.8",
|
|
62
|
-
"@types/cookies": "^0.9.0",
|
|
63
59
|
"@types/destroy": "^1.0.3",
|
|
64
60
|
"@types/encodeurl": "^1.0.2",
|
|
65
61
|
"@types/escape-html": "^1.0.4",
|
|
@@ -72,14 +68,13 @@
|
|
|
72
68
|
"@types/type-is": "^1.6.6",
|
|
73
69
|
"@types/vary": "^1.1.3",
|
|
74
70
|
"mm": "^4.0.2",
|
|
75
|
-
"tsdown": "^0.17.0",
|
|
76
71
|
"typescript": "^5.9.3",
|
|
77
|
-
"@eggjs/supertest": "9.0.0-beta.
|
|
72
|
+
"@eggjs/supertest": "9.0.0-beta.36"
|
|
73
|
+
},
|
|
74
|
+
"engines": {
|
|
75
|
+
"node": ">=22.18.0"
|
|
78
76
|
},
|
|
79
77
|
"scripts": {
|
|
80
|
-
"
|
|
81
|
-
"typecheck": "tsc --noEmit",
|
|
82
|
-
"lint": "oxlint --type-aware",
|
|
83
|
-
"test": "vitest run"
|
|
78
|
+
"typecheck": "tsgo --noEmit"
|
|
84
79
|
}
|
|
85
80
|
}
|
package/dist/types.js
DELETED