@breadhead/nest-throwable-bus
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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!

Readme

Keywords

Package Sidebar

Install

npm i @breadhead/nest-throwable-bus

Weekly Downloads

6

Version

1.0.7

License

MIT

Unpacked Size

9.14 kB

Total Files

15

Last publish

Collaborators

  • uncleseneca
  • iwanttobealight
  • igor.kamyshev