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

1.0.17 • Public • Published

Ticketing app commons

Errors

  • Includes a set of predefined errors and an abstract class CustomError that can be used by the error-handler middleware
    • bad-request-error
    • custom-error
    • database-connection-error
    • not-authorized-error
    • not-found-error
    • request-validation-error

Events

  • Includes objects that can be used to interact with the nats server
    • base-listener
    • base-publisher
    • subjects
    • ticket-created-event
    • ticket-updated-event

Middlewares

  • Includes a set of middlewares that can be used for micro services developement
    • current-user
    • error-handler
    • require-auth
    • validate-requests

Readme

Keywords

none

Package Sidebar

Install

npm i @ghergtickets/common

Weekly Downloads

1

Version

1.0.17

License

ISC

Unpacked Size

18.4 kB

Total Files

44

Last publish

Collaborators

  • andrei.gherghin