@midwayjs/core 3.3.0 → 3.3.1

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.
@@ -272,7 +272,7 @@ class BaseFramework {
272
272
  return this.informationService.getProjectName();
273
273
  }
274
274
  getFrameworkName() {
275
- return '';
275
+ return this.constructor.name;
276
276
  }
277
277
  useMiddleware(middleware) {
278
278
  this.middlewareManager.insertLast(middleware);
@@ -55,6 +55,10 @@ let MidwayFrameworkService = class MidwayFrameworkService {
55
55
  debug(`[core]: Found Framework length = ${frameworks.length}`);
56
56
  if (frameworks.length) {
57
57
  for (const frameworkClz of frameworks) {
58
+ if (!this.applicationContext.hasDefinition((0, decorator_1.getProviderUUId)(frameworkClz))) {
59
+ debug(`[core]: Found Framework "${frameworkClz.name}" but missing definition, skip initialize.`);
60
+ continue;
61
+ }
58
62
  const frameworkInstance = await this.applicationContext.getAsync(frameworkClz, [this.applicationContext]);
59
63
  // if enable, just init framework
60
64
  if (frameworkInstance.isEnable()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/core",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
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": "b12b41188879296f9863265baa5bbdb4158bddc5"
48
+ "gitHead": "f603b622b205ec126de628eeab59f90045a75dd2"
49
49
  }