@brunomiketickets/common
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

Common

Common contains a set of reusable middlewares, event related classes base of node-nats-streaming and pre-defined error classes.

Error

It consists of the following errors:

  • bad-request-error
  • custom-error
  • database-connection-error
  • not-authorized-error
  • not-found-error
  • request-validation-error

Event

It consists of the following events:

  • base-listener
  • base-publisher
  • subjects
  • ticket-created-event
  • ticket-updated-event

Middleware

It consists of the following middleware:

  • current-user
  • require-auth
  • error-handler
  • validate-request

Readme

Keywords

none

Package Sidebar

Install

npm i @brunomiketickets/common

Weekly Downloads

1

Version

1.0.13

License

ISC

Unpacked Size

25.1 kB

Total Files

44

Last publish

Collaborators

  • brunomike254