vona-core 5.0.74 → 5.0.75

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.
@@ -1,6 +1,6 @@
1
1
  import type { IModule } from '@cabloy/module-info';
2
2
  import type { TypeModuleResourceLocaleModules, TypeModuleResourceLocales, VonaConfigEnv } from '../../types/index.ts';
3
- import type { AppMonkeyConstructable } from '../../types/interface/monkey.ts';
3
+ import type { IAppMonkey } from '../../types/interface/monkey.ts';
4
4
  import type { ErrorClass, IModuleLocaleText } from '../bean/index.ts';
5
5
  import type { AppMetadata } from './metadata.ts';
6
6
  import type { AppResource } from './resource.ts';
@@ -20,7 +20,7 @@ export declare class AppMeta extends BeanSimple {
20
20
  locale: AppLocale;
21
21
  text: IModuleLocaleText;
22
22
  scopeContainer: BeanScopeContainer;
23
- appMonkey?: AppMonkeyConstructable;
23
+ appMonkey?: IAppMonkey;
24
24
  resource: AppResource;
25
25
  metadata: AppMetadata;
26
26
  modules: Record<string, IModule>;
@@ -47,7 +47,7 @@ export class AppMeta extends BeanSimple {
47
47
  // ctxCounter
48
48
  this.ctxCounter = new CtxCounter();
49
49
  // appMonkey
50
- this.appMonkey = this.app.options.AppMonkey;
50
+ this.appMonkey = this.app.options.AppMonkey ? new (this.app.options.AppMonkey)() : undefined;
51
51
  // logger
52
52
  this.logger = this.bean._newBean(AppLogger);
53
53
  // locale
@@ -28,4 +28,5 @@ export interface IMonkeyAppClose {
28
28
  export interface IMonkeyAppClosed {
29
29
  appClosed: () => Promise<void>;
30
30
  }
31
- export type AppMonkeyConstructable = Constructable<IMonkeyModule & IMonkeySystem>;
31
+ export type IAppMonkey = IMonkeyModule & IMonkeySystem;
32
+ export type AppMonkeyConstructable = Constructable<IAppMonkey>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-core",
3
3
  "type": "module",
4
- "version": "5.0.74",
4
+ "version": "5.0.75",
5
5
  "description": "vona",
6
6
  "publishConfig": {
7
7
  "access": "public"