1.0.7 • Published 6 years ago

@breadhead/nest-throwable-bus v1.0.7

Weekly downloads
21
License
MIT
Repository
github
Last release
6 years ago

Nest Throwable Bus

In the CQRS module for Nest Framework we found one minor problem. Exceptions from the handler aren't thrown into the calling code. In the original repository a solution was proposed that it would severely pollute the code. Our solution allows to continue working with the module as before, but with improved exception handling.

Instalation

yarn add @breadhead/nest-throwable-bus

Usage

Just replace:

  • import { CommandHandler } from '@nestjs/cqrs' to import { CommandHandler } from '@breadhead/nest-throwable-bus'
  • import { CommandBus } from '@nestjs/cqrs' to import { CommandBus } from '@breadhead/nest-throwable-bus'

All done!

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.1

6 years ago