@midwayjs/core 3.0.0-beta.10 → 3.0.0-beta.11
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/CHANGELOG.md +8 -0
- package/dist/interface.d.ts +1 -0
- package/dist/service/middlewareService.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @midwayjs/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
|
|
7
15
|
|
|
8
16
|
|
package/dist/interface.d.ts
CHANGED
|
@@ -450,6 +450,7 @@ export interface MidwayAppInfo {
|
|
|
450
450
|
* midway global config definition
|
|
451
451
|
*/
|
|
452
452
|
export interface MidwayConfig extends FileConfigOption<typeof _default> {
|
|
453
|
+
[customConfigKey: string]: unknown;
|
|
453
454
|
}
|
|
454
455
|
export interface TranslateOptions {
|
|
455
456
|
lang?: string;
|
|
@@ -115,7 +115,7 @@ let MidwayMiddlewareService = class MidwayMiddlewareService {
|
|
|
115
115
|
}
|
|
116
116
|
getMiddlewareName(mw) {
|
|
117
117
|
var _a;
|
|
118
|
-
return (_a = mw.name) !== null && _a !== void 0 ? _a : mw._name;
|
|
118
|
+
return mw.getName ? mw.getName() : (_a = mw.name) !== null && _a !== void 0 ? _a : mw._name;
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
MidwayMiddlewareService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.11",
|
|
4
4
|
"description": "midway core",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@midwayjs/decorator": "^3.0.0-beta.
|
|
24
|
+
"@midwayjs/decorator": "^3.0.0-beta.11",
|
|
25
25
|
"koa": "^2.13.4",
|
|
26
26
|
"midway-test-component": "*",
|
|
27
27
|
"mm": "3",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@midwayjs/glob": "^1.0.2",
|
|
35
|
-
"@midwayjs/logger": "^3.0.0-beta.
|
|
35
|
+
"@midwayjs/logger": "^3.0.0-beta.11",
|
|
36
36
|
"class-transformer": "^0.5.1",
|
|
37
37
|
"extend2": "^1.0.0",
|
|
38
38
|
"picomatch": "^2.3.0"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=12"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "a2b066fd500e815e799e7f421cd216f12e0e9f8e"
|
|
49
49
|
}
|