@nestjs/cqrs
Advanced tools
Comparing version 7.0.0-next.1 to 7.0.0-next.2
@@ -1,2 +0,2 @@ | ||
import { OnModuleInit } from '@nestjs/common'; | ||
import { OnApplicationBootstrap } from '@nestjs/common'; | ||
import { CommandBus } from './command-bus'; | ||
@@ -7,3 +7,3 @@ import { EventBus } from './event-bus'; | ||
import { ExplorerService } from './services/explorer.service'; | ||
export declare class CqrsModule<EventBase extends IEvent = IEvent> implements OnModuleInit { | ||
export declare class CqrsModule<EventBase extends IEvent = IEvent> implements OnApplicationBootstrap { | ||
private readonly explorerService; | ||
@@ -14,3 +14,3 @@ private readonly eventsBus; | ||
constructor(explorerService: ExplorerService<EventBase>, eventsBus: EventBus<EventBase>, commandsBus: CommandBus, queryBus: QueryBus); | ||
onModuleInit(): void; | ||
onApplicationBootstrap(): void; | ||
} |
@@ -27,3 +27,3 @@ "use strict"; | ||
} | ||
onModuleInit() { | ||
onApplicationBootstrap() { | ||
const { events, queries, sagas, commands } = this.explorerService.explore(); | ||
@@ -30,0 +30,0 @@ this.eventsBus.register(events); |
{ | ||
"name": "@nestjs/cqrs", | ||
"version": "7.0.0-next.1", | ||
"version": "7.0.0-next.2", | ||
"description": "A lightweight CQRS module for Nest framework (node.js)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
68028