egg 4.1.0-beta.35 → 4.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/agent.d.ts +7 -3
- package/dist/agent.js +10 -6
- package/dist/ajv.d.ts +1 -1
- package/dist/ajv.js +3 -2
- package/dist/aop.d.ts +1 -1
- package/dist/aop.js +3 -2
- package/dist/app/extend/context.d.ts +181 -178
- package/dist/app/extend/context.js +244 -259
- package/dist/app/extend/helper.d.ts +40 -35
- package/dist/app/extend/helper.js +45 -41
- package/dist/app/extend/request.d.ts +135 -131
- package/dist/app/extend/request.js +219 -258
- package/dist/app/extend/response.d.ts +28 -24
- package/dist/app/extend/response.js +36 -34
- package/dist/app/middleware/body_parser.d.ts +2 -2
- package/dist/app/middleware/body_parser.js +7 -3
- package/dist/app/middleware/meta.d.ts +8 -8
- package/dist/app/middleware/meta.js +15 -18
- package/dist/app/middleware/notfound.d.ts +8 -5
- package/dist/app/middleware/notfound.js +25 -28
- package/dist/app/middleware/override_method.d.ts +2 -2
- package/dist/app/middleware/override_method.js +7 -3
- package/dist/app/middleware/site_file.d.ts +11 -7
- package/dist/app/middleware/site_file.js +37 -52
- package/dist/config/config.default.d.ts +11 -6
- package/dist/config/config.default.js +258 -375
- package/dist/config/config.local.d.ts +6 -3
- package/dist/config/config.local.js +7 -8
- package/dist/config/config.unittest.d.ts +6 -3
- package/dist/config/config.unittest.js +10 -8
- package/dist/config/plugin.d.ts +6 -2
- package/dist/config/plugin.js +67 -131
- package/dist/dal.d.ts +1 -1
- package/dist/dal.js +3 -2
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +3 -2
- package/dist/helper.d.ts +1 -1
- package/dist/helper.js +3 -2
- package/dist/index.d.ts +24 -106
- package/dist/index.js +23 -89
- package/dist/lib/agent.d.ts +21 -15
- package/dist/lib/agent.js +53 -45
- package/dist/lib/application.d.ts +60 -54
- package/dist/lib/application.js +199 -249
- package/dist/lib/core/base_context_class.d.ts +23 -17
- package/dist/lib/core/base_context_class.js +17 -15
- package/dist/lib/core/base_context_logger.d.ts +39 -35
- package/dist/lib/core/base_context_logger.js +58 -60
- package/dist/lib/core/base_hook_class.d.ts +18 -11
- package/dist/lib/core/base_hook_class.js +26 -22
- package/dist/lib/core/context_httpclient.d.ts +21 -16
- package/dist/lib/core/context_httpclient.js +29 -26
- package/dist/lib/core/httpclient.d.ts +14 -12
- package/dist/lib/core/httpclient.js +34 -37
- package/dist/lib/core/logger.d.ts +7 -3
- package/dist/lib/core/logger.js +30 -36
- package/dist/lib/core/messenger/IMessenger.d.ts +53 -49
- package/dist/lib/core/messenger/IMessenger.js +1 -2
- package/dist/lib/core/messenger/base.d.ts +11 -7
- package/dist/lib/core/messenger/base.js +30 -29
- package/dist/lib/core/messenger/index.d.ts +10 -6
- package/dist/lib/core/messenger/index.js +11 -8
- package/dist/lib/core/messenger/ipc.d.ts +62 -57
- package/dist/lib/core/messenger/ipc.js +126 -138
- package/dist/lib/core/messenger/local.d.ts +63 -58
- package/dist/lib/core/messenger/local.js +126 -131
- package/dist/lib/core/utils.d.ts +5 -2
- package/dist/lib/core/utils.js +44 -66
- package/dist/lib/define.d.ts +72 -67
- package/dist/lib/define.js +54 -53
- package/dist/lib/egg.d.ts +283 -281
- package/dist/lib/egg.js +512 -573
- package/dist/lib/error/CookieLimitExceedError.d.ts +7 -4
- package/dist/lib/error/CookieLimitExceedError.js +15 -12
- package/dist/lib/error/MessageUnhandledRejectionError.d.ts +7 -4
- package/dist/lib/error/MessageUnhandledRejectionError.js +15 -12
- package/dist/lib/error/index.d.ts +3 -2
- package/dist/lib/error/index.js +4 -3
- package/dist/lib/loader/AgentWorkerLoader.d.ts +15 -10
- package/dist/lib/loader/AgentWorkerLoader.js +22 -18
- package/dist/lib/loader/AppWorkerLoader.d.ts +20 -15
- package/dist/lib/loader/AppWorkerLoader.js +35 -37
- package/dist/lib/loader/EggApplicationLoader.d.ts +7 -3
- package/dist/lib/loader/EggApplicationLoader.js +7 -4
- package/dist/lib/loader/index.d.ts +4 -3
- package/dist/lib/loader/index.js +5 -4
- package/dist/lib/start.d.ts +24 -20
- package/dist/lib/start.js +32 -42
- package/dist/lib/types.d.ts +288 -286
- package/dist/lib/types.js +2 -2
- package/dist/lib/types.plugin.d.ts +21 -21
- package/dist/lib/types.plugin.js +23 -24
- package/dist/orm.d.ts +1 -1
- package/dist/orm.js +3 -2
- package/dist/schedule.d.ts +2 -2
- package/dist/schedule.js +5 -5
- package/dist/transaction.d.ts +1 -1
- package/dist/transaction.js +3 -2
- package/dist/urllib.d.ts +1 -1
- package/dist/urllib.js +3 -2
- package/package.json +60 -64
package/dist/lib/types.plugin.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMucGx1Z2luLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xpYi90eXBlcy5wbHVnaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMkVBQTJFO0FBRTNFLE9BQU8sMEJBQTBCLENBQUM7QUFDbEMsT0FBTyxtQkFBbUIsQ0FBQztBQUMzQixPQUFPLG9CQUFvQixDQUFDO0FBQzVCLE9BQU8seUJBQXlCLENBQUM7QUFDakMsT0FBTyx3QkFBd0IsQ0FBQztBQUNoQyxPQUFPLHNCQUFzQixDQUFDO0FBQzlCLE9BQU8sdUJBQXVCLENBQUM7QUFDL0IsT0FBTyx1QkFBdUIsQ0FBQztBQUMvQixPQUFPLHNCQUFzQixDQUFDO0FBQzlCLE9BQU8scUJBQXFCLENBQUM7QUFDN0IsT0FBTyxtQkFBbUIsQ0FBQztBQUMzQixPQUFPLHNCQUFzQixDQUFDO0FBQzlCLDJCQUEyQjtBQUMzQixPQUFPLHlCQUF5QixDQUFDO0FBQ2pDLE9BQU8seUJBQXlCLENBQUM7QUFDakMsT0FBTywwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLGdDQUFnQyxDQUFDO0FBQ3hDLE9BQU8seUJBQXlCLENBQUM7QUFDakMsT0FBTyw4QkFBOEIsQ0FBQztBQUN0QyxPQUFPLHlCQUF5QixDQUFDO0FBQ2pDLE9BQU8sOEJBQThCLENBQUM7QUFDdEMsT0FBTywwQkFBMEIsQ0FBQyJ9
|
|
1
|
+
import "@eggjs/development/types";
|
|
2
|
+
import "@eggjs/i18n/types";
|
|
3
|
+
import "@eggjs/jsonp/types";
|
|
4
|
+
import "@eggjs/logrotator/types";
|
|
5
|
+
import "@eggjs/multipart/types";
|
|
6
|
+
import "@eggjs/onerror/types";
|
|
7
|
+
import "@eggjs/schedule/types";
|
|
8
|
+
import "@eggjs/security/types";
|
|
9
|
+
import "@eggjs/session/types";
|
|
10
|
+
import "@eggjs/static/types";
|
|
11
|
+
import "@eggjs/view/types";
|
|
12
|
+
import "@eggjs/watcher/types";
|
|
13
|
+
import "@eggjs/ajv-plugin/types";
|
|
14
|
+
import "@eggjs/aop-plugin/types";
|
|
15
|
+
import "@eggjs/tegg-config/types";
|
|
16
|
+
import "@eggjs/controller-plugin/types";
|
|
17
|
+
import "@eggjs/dal-plugin/types";
|
|
18
|
+
import "@eggjs/eventbus-plugin/types";
|
|
19
|
+
import "@eggjs/orm-plugin/types";
|
|
20
|
+
import "@eggjs/schedule-plugin/types";
|
|
21
|
+
import "@eggjs/tegg-plugin/types";
|
|
22
|
+
|
|
23
|
+
export { };
|
package/dist/orm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@eggjs/tegg/orm";
|
package/dist/orm.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
|
|
1
|
+
export * from "@eggjs/tegg/orm"
|
|
2
|
+
|
|
3
|
+
export { };
|
package/dist/schedule.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "@eggjs/schedule";
|
|
2
|
+
export * from "@eggjs/tegg/schedule";
|
package/dist/schedule.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export * from "@eggjs/schedule"
|
|
2
|
+
|
|
3
|
+
export * from "@eggjs/tegg/schedule"
|
|
4
|
+
|
|
5
|
+
export { };
|
package/dist/transaction.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@eggjs/tegg/transaction";
|
package/dist/transaction.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
|
|
1
|
+
export * from "@eggjs/tegg/transaction"
|
|
2
|
+
|
|
3
|
+
export { };
|
package/dist/urllib.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "urllib";
|
package/dist/urllib.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
|
|
1
|
+
export * from "urllib"
|
|
2
|
+
|
|
3
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "egg",
|
|
3
|
-
"version": "4.1.0-beta.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
3
|
+
"version": "4.1.0-beta.36",
|
|
4
|
+
"description": "A web application framework for Node.js",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"app",
|
|
7
|
+
"application",
|
|
8
|
+
"egg",
|
|
9
|
+
"framework",
|
|
10
|
+
"http",
|
|
11
|
+
"koa",
|
|
12
|
+
"middleware",
|
|
13
|
+
"web"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/eggjs/egg/tree/next/packages/egg",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/eggjs/egg.git",
|
|
20
|
+
"directory": "packages/egg"
|
|
10
21
|
},
|
|
11
22
|
"files": [
|
|
12
23
|
"dist"
|
|
13
24
|
],
|
|
14
25
|
"type": "module",
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"module": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
15
29
|
"exports": {
|
|
16
30
|
".": "./dist/index.js",
|
|
17
31
|
"./agent": "./dist/agent.js",
|
|
@@ -65,20 +79,10 @@
|
|
|
65
79
|
"./urllib": "./dist/urllib.js",
|
|
66
80
|
"./package.json": "./package.json"
|
|
67
81
|
},
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"keywords": [
|
|
73
|
-
"web",
|
|
74
|
-
"app",
|
|
75
|
-
"http",
|
|
76
|
-
"application",
|
|
77
|
-
"framework",
|
|
78
|
-
"middleware",
|
|
79
|
-
"koa",
|
|
80
|
-
"egg"
|
|
81
|
-
],
|
|
82
|
+
"publishConfig": {
|
|
83
|
+
"access": "public",
|
|
84
|
+
"tag": "beta"
|
|
85
|
+
},
|
|
82
86
|
"dependencies": {
|
|
83
87
|
"circular-json-for-egg": "^1.0.0",
|
|
84
88
|
"cluster-client": "^3.7.0",
|
|
@@ -94,34 +98,34 @@
|
|
|
94
98
|
"type-fest": "^5.0.1",
|
|
95
99
|
"urllib": "^4.8.2",
|
|
96
100
|
"utility": "^2.5.0",
|
|
97
|
-
"@eggjs/ajv-plugin": "4.0.0-beta.
|
|
98
|
-
"@eggjs/aop-plugin": "4.0.0-beta.
|
|
99
|
-
"@eggjs/
|
|
100
|
-
"@eggjs/
|
|
101
|
-
"@eggjs/
|
|
102
|
-
"@eggjs/core": "7.0.0-beta.
|
|
103
|
-
"@eggjs/
|
|
104
|
-
"@eggjs/errors": "3.0.0-beta.
|
|
105
|
-
"@eggjs/
|
|
106
|
-
"@eggjs/
|
|
107
|
-
"@eggjs/
|
|
108
|
-
"@eggjs/
|
|
109
|
-
"@eggjs/
|
|
110
|
-
"@eggjs/
|
|
111
|
-
"@eggjs/
|
|
112
|
-
"@eggjs/
|
|
113
|
-
"@eggjs/
|
|
114
|
-
"@eggjs/
|
|
115
|
-
"@eggjs/schedule-plugin": "4.0.0-beta.
|
|
116
|
-
"@eggjs/
|
|
117
|
-
"@eggjs/
|
|
118
|
-
"@eggjs/
|
|
119
|
-
"@eggjs/
|
|
120
|
-
"@eggjs/tegg": "4.0.0-beta.
|
|
121
|
-
"@eggjs/tegg-plugin": "4.0.0-beta.
|
|
122
|
-
"@eggjs/
|
|
123
|
-
"@eggjs/
|
|
124
|
-
"@eggjs/
|
|
101
|
+
"@eggjs/ajv-plugin": "4.0.0-beta.36",
|
|
102
|
+
"@eggjs/aop-plugin": "4.0.0-beta.36",
|
|
103
|
+
"@eggjs/cluster": "4.0.0-beta.36",
|
|
104
|
+
"@eggjs/controller-plugin": "4.0.0-beta.36",
|
|
105
|
+
"@eggjs/cookies": "4.0.0-beta.36",
|
|
106
|
+
"@eggjs/core": "7.0.0-beta.36",
|
|
107
|
+
"@eggjs/development": "5.0.0-beta.36",
|
|
108
|
+
"@eggjs/errors": "3.0.0-beta.36",
|
|
109
|
+
"@eggjs/extend2": "5.0.0-beta.36",
|
|
110
|
+
"@eggjs/dal-plugin": "4.0.0-beta.36",
|
|
111
|
+
"@eggjs/i18n": "4.0.0-beta.36",
|
|
112
|
+
"@eggjs/eventbus-plugin": "4.0.0-beta.36",
|
|
113
|
+
"@eggjs/jsonp": "4.0.0-beta.36",
|
|
114
|
+
"@eggjs/logrotator": "5.0.0-beta.36",
|
|
115
|
+
"@eggjs/orm-plugin": "4.0.0-beta.36",
|
|
116
|
+
"@eggjs/onerror": "4.0.0-beta.36",
|
|
117
|
+
"@eggjs/schedule": "6.0.0-beta.36",
|
|
118
|
+
"@eggjs/multipart": "5.0.0-beta.36",
|
|
119
|
+
"@eggjs/schedule-plugin": "4.0.0-beta.36",
|
|
120
|
+
"@eggjs/session": "5.0.0-beta.36",
|
|
121
|
+
"@eggjs/static": "4.0.0-beta.36",
|
|
122
|
+
"@eggjs/security": "5.0.0-beta.36",
|
|
123
|
+
"@eggjs/tegg": "4.0.0-beta.36",
|
|
124
|
+
"@eggjs/tegg-config": "4.0.0-beta.36",
|
|
125
|
+
"@eggjs/tegg-plugin": "4.0.0-beta.36",
|
|
126
|
+
"@eggjs/utils": "5.0.0-beta.36",
|
|
127
|
+
"@eggjs/view": "4.0.0-beta.36",
|
|
128
|
+
"@eggjs/watcher": "5.0.0-beta.36"
|
|
125
129
|
},
|
|
126
130
|
"devDependencies": {
|
|
127
131
|
"@types/koa-bodyparser": "^4.3.12",
|
|
@@ -136,27 +140,19 @@
|
|
|
136
140
|
"runscript": "^2.0.1",
|
|
137
141
|
"sdk-base": "^5.0.1",
|
|
138
142
|
"spy": "^1.0.0",
|
|
139
|
-
"tsdown": "^0.17.0",
|
|
140
143
|
"typescript": "^5.9.3",
|
|
141
|
-
"@eggjs/
|
|
142
|
-
"@eggjs/
|
|
143
|
-
"@eggjs/
|
|
144
|
-
"@eggjs/tracer": "4.0.0-beta.
|
|
144
|
+
"@eggjs/koa": "3.1.0-beta.36",
|
|
145
|
+
"@eggjs/mock": "7.0.0-beta.36",
|
|
146
|
+
"@eggjs/supertest": "9.0.0-beta.36",
|
|
147
|
+
"@eggjs/tracer": "4.0.0-beta.36"
|
|
145
148
|
},
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"url": "git+https://github.com/eggjs/egg.git",
|
|
149
|
-
"directory": "packages/egg"
|
|
149
|
+
"engines": {
|
|
150
|
+
"node": ">=22.18.0"
|
|
150
151
|
},
|
|
151
|
-
"homepage": "https://github.com/eggjs/egg/tree/next/packages/egg",
|
|
152
|
-
"license": "MIT",
|
|
153
152
|
"egg": {
|
|
154
153
|
"framework": true
|
|
155
154
|
},
|
|
156
155
|
"scripts": {
|
|
157
|
-
"
|
|
158
|
-
"typecheck": "tsc --noEmit",
|
|
159
|
-
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json && cp src/config/favicon.png dist/config/favicon.png",
|
|
160
|
-
"test": "vitest run"
|
|
156
|
+
"typecheck": "tsgo --noEmit"
|
|
161
157
|
}
|
|
162
158
|
}
|