egg 4.1.0-beta.3 → 4.1.0-beta.4
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/config/plugin.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare const _default: {
|
|
|
62
62
|
/**
|
|
63
63
|
* local development helper
|
|
64
64
|
* @member {Object} Plugin#development
|
|
65
|
-
* @property {Boolean} enable - `true` by default
|
|
65
|
+
* @property {Boolean} enable - `true` by default. on CI, it's `false` to avoid unexpected errors.
|
|
66
66
|
* @since 1.0.0
|
|
67
67
|
*/
|
|
68
68
|
development: {
|
package/dist/config/plugin.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { HttpClientRequestOptions, HttpClientRequestURL
|
|
1
|
+
import { HttpClientRequestOptions, HttpClientRequestURL } from "./httpclient.js";
|
|
2
2
|
import Context from "../../app/extend/context.js";
|
|
3
3
|
import { EggApplicationCore } from "../egg.js";
|
|
4
|
+
import * as node_modules_urllib_dist_esm_Response_js0 from "node_modules/urllib/dist/esm/Response.js";
|
|
4
5
|
|
|
5
6
|
//#region src/lib/core/context_httpclient.d.ts
|
|
6
7
|
declare class ContextHttpClient {
|
|
@@ -14,8 +15,8 @@ declare class ContextHttpClient {
|
|
|
14
15
|
* @param {String|Object} url - request url address.
|
|
15
16
|
* @param {Object} [options] - options for request.
|
|
16
17
|
*/
|
|
17
|
-
curl<T = any>(url: HttpClientRequestURL, options?: HttpClientRequestOptions): Promise<HttpClientResponse<T>>;
|
|
18
|
-
request<T = any>(url: HttpClientRequestURL, options?: HttpClientRequestOptions): Promise<HttpClientResponse<T>>;
|
|
18
|
+
curl<T = any>(url: HttpClientRequestURL, options?: HttpClientRequestOptions): Promise<node_modules_urllib_dist_esm_Response_js0.HttpClientResponse<T>>;
|
|
19
|
+
request<T = any>(url: HttpClientRequestURL, options?: HttpClientRequestOptions): Promise<node_modules_urllib_dist_esm_Response_js0.HttpClientResponse<T>>;
|
|
19
20
|
}
|
|
20
21
|
//#endregion
|
|
21
22
|
export { ContextHttpClient };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "egg",
|
|
3
|
-
"version": "4.1.0-beta.
|
|
3
|
+
"version": "4.1.0-beta.4",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">= 20.19.0"
|
|
6
6
|
},
|
|
@@ -71,7 +71,6 @@
|
|
|
71
71
|
"egg"
|
|
72
72
|
],
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@eggjs/cluster": "",
|
|
75
74
|
"@eggjs/cookies": "^3.1.0",
|
|
76
75
|
"@eggjs/development": "^4.0.0",
|
|
77
76
|
"@eggjs/i18n": "^3.0.1",
|
|
@@ -99,12 +98,12 @@
|
|
|
99
98
|
"sendmessage": "^3.0.1",
|
|
100
99
|
"urllib": "^4.6.11",
|
|
101
100
|
"utility": "^2.5.0",
|
|
102
|
-
"@eggjs/
|
|
103
|
-
"@eggjs/
|
|
104
|
-
"@eggjs/
|
|
101
|
+
"@eggjs/cluster": "3.1.0-beta.4",
|
|
102
|
+
"@eggjs/core": "6.6.0-beta.4",
|
|
103
|
+
"@eggjs/utils": "4.5.0-beta.4",
|
|
104
|
+
"@eggjs/extend2": "4.1.0-beta.4"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@eggjs/supertest": "",
|
|
108
107
|
"@types/koa-bodyparser": "^4.3.12",
|
|
109
108
|
"@types/node": "24",
|
|
110
109
|
"address": "2",
|
|
@@ -122,9 +121,10 @@
|
|
|
122
121
|
"spy": "^1.0.0",
|
|
123
122
|
"tsd": "^0.33.0",
|
|
124
123
|
"tsdown": "^0.15.0",
|
|
125
|
-
"typescript": "5",
|
|
126
|
-
"@eggjs/koa": "3.1.0-beta.
|
|
127
|
-
"@eggjs/mock": "6.1.0-beta.
|
|
124
|
+
"typescript": "5.9.2",
|
|
125
|
+
"@eggjs/koa": "3.1.0-beta.4",
|
|
126
|
+
"@eggjs/mock": "6.1.0-beta.4",
|
|
127
|
+
"@eggjs/supertest": "8.3.0-beta.4"
|
|
128
128
|
},
|
|
129
129
|
"repository": {
|
|
130
130
|
"type": "git",
|
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
},
|
|
138
138
|
"scripts": {
|
|
139
139
|
"lint": "oxlint",
|
|
140
|
+
"typecheck": "tsc --noEmit",
|
|
140
141
|
"build": "tsdown",
|
|
141
142
|
"test": "vitest run"
|
|
142
143
|
}
|