1.0.12 • Published 1 year ago

@mcticketingapp/common v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Common Library for Error Handling and Middleware

This library contains common logic for error handling, middleware and event definitions that can be shared across different services in a microservices architecture for Ticketing app. The library is published on NPM and can be downloaded and used by other services.

Installation

You can install the package using NPM:

npm install @mcticketingapp/common

Error Example

To use the error handling middleware, simply add the following code to your express app:

const { errorHandler } = require('@mcticketingapp/common');
app.use(errorHandler);

The error handler middleware will catch any unhandled errors in your express app and return an appropriate response.

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago