0.2.1 • Published 8 months ago

@inialum/error-notification-service-hono-middleware v0.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

@inialum/error-notification-service-hono-middleware

Hono middleware for inialum-error-notification-service.

npm version

Installation

pnpm add @inialum/error-notification-service-hono-middleware

Usage

import { Hono } from 'hono'
import { notifyError } from '@inialum/error-notification-service-hono-middleware'

const app = new Hono()

app.use('*', await notifyError({
 token: 'dummy',
 serviceName: 'service-name',
 environment: 'production'
}))

app.get('/', (c) => c.text('foo'))

export default app

You can refer to the example project for more details.

Development

Testing

pnpm run test

If you want to run test with coverage report, run this command instead

pnpm run test:coverage

License

Licensed under Apache License 2.0.

0.2.1

8 months ago

0.2.0

8 months ago

0.1.5

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago