@midwayjs/core 3.3.1 → 3.3.2
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.
|
@@ -29,7 +29,7 @@ let MidwayFrameworkService = class MidwayFrameworkService {
|
|
|
29
29
|
this.globalFrameworkList = [];
|
|
30
30
|
}
|
|
31
31
|
async init() {
|
|
32
|
-
var _a;
|
|
32
|
+
var _a, _b;
|
|
33
33
|
// register base config hook
|
|
34
34
|
this.decoratorService.registerPropertyHandler(decorator_1.CONFIG_KEY, (propertyName, meta) => {
|
|
35
35
|
var _a;
|
|
@@ -93,8 +93,13 @@ let MidwayFrameworkService = class MidwayFrameworkService {
|
|
|
93
93
|
this.decoratorService.registerPropertyHandler(decorator_1.PLUGIN_KEY, (key, target) => {
|
|
94
94
|
return this.getMainApp()[key];
|
|
95
95
|
});
|
|
96
|
+
const nsSet = this.applicationContext['namespaceSet'];
|
|
97
|
+
let mainNs;
|
|
98
|
+
if (nsSet.size > 0) {
|
|
99
|
+
[mainNs] = nsSet;
|
|
100
|
+
}
|
|
96
101
|
global['MIDWAY_MAIN_FRAMEWORK'] = this.mainFramework =
|
|
97
|
-
this.globalFrameworkList[0];
|
|
102
|
+
(_b = this.applicationManager.getFramework(mainNs)) !== null && _b !== void 0 ? _b : this.globalFrameworkList[0];
|
|
98
103
|
}
|
|
99
104
|
// init aspect module
|
|
100
105
|
await this.aspectService.loadAspect();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "midway core",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=12"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "2c7c235421ba904f8943efe31a71f452089d5d53"
|
|
49
49
|
}
|