chore: rename `@honojs/sentry` to `@hono/sentry`
parent
a3c84f15da
commit
01d488a1d0
12
README.md
12
README.md
|
@ -1,12 +1,20 @@
|
|||
# Sentry middleware for Hono
|
||||
|
||||
## Information
|
||||
|
||||
Sentry Middleware `@honojs/sentry` is renamed to `@hono/sentry`.
|
||||
`@honojs/sentry` is not maintained, please use `@hono/sentry`.
|
||||
Also, for Deno, you can use import with `npm:` prefix like `npm:@hono/sentry`.
|
||||
|
||||
---
|
||||
|
||||
Sentry middleware for [Hono](https://github.com/honojs/hono).
|
||||
This middleware sends captured exceptions to the specified Sentry data source name via [toucan-js](https://github.com/robertcepa/toucan-js).
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { sentry } from '@honojs/sentry'
|
||||
import { sentry } from '@hono/sentry'
|
||||
import { Hono } from 'hono'
|
||||
|
||||
const app = new Hono()
|
||||
|
@ -21,7 +29,7 @@ export default app
|
|||
|
||||
```ts
|
||||
import { serve } from 'https://deno.land/std/http/server.ts'
|
||||
import { sentry } from 'https://deno.land/x/hono_sentry/mod.ts'
|
||||
import { sentry } from 'npm:@hono/sentry'
|
||||
import { Hono } from 'https://deno.land/x/hono/mod.ts'
|
||||
|
||||
const app = new Hono()
|
||||
|
|
|
@ -1,12 +1,20 @@
|
|||
# Sentry middleware for Hono
|
||||
|
||||
## Information
|
||||
|
||||
Sentry Middleware `@honojs/sentry` is renamed to `@hono/sentry`.
|
||||
`@honojs/sentry` is not maintained, please use `@hono/sentry`.
|
||||
Also, for Deno, you can use import with `npm:` prefix like `npm:@hono/sentry`.
|
||||
|
||||
---
|
||||
|
||||
Sentry middleware for [Hono](https://github.com/honojs/hono).
|
||||
This middleware sends captured exceptions to the specified Sentry data source name via [toucan-js](https://github.com/robertcepa/toucan-js).
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { sentry } from '@honojs/sentry'
|
||||
import { sentry } from '@hono/sentry'
|
||||
import { Hono } from 'hono'
|
||||
|
||||
const app = new Hono()
|
||||
|
@ -21,7 +29,7 @@ export default app
|
|||
|
||||
```ts
|
||||
import { serve } from 'https://deno.land/std/http/server.ts'
|
||||
import { sentry } from 'https://deno.land/x/hono_sentry/mod.ts'
|
||||
import { sentry } from 'npm:@hono/sentry'
|
||||
import { Hono } from 'https://deno.land/x/hono/mod.ts'
|
||||
|
||||
const app = new Hono()
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
"private": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/honojs/sentry.git"
|
||||
"url": "https://github.com/honojs/middleware.git"
|
||||
},
|
||||
"homepage": "https://github.com/honojs/sentry",
|
||||
"homepage": "https://github.com/honojs/middleware",
|
||||
"author": "Samuel Lippert <samuel@driv.ly> (https://github.com/sam-lippert)",
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org",
|
||||
|
@ -61,4 +61,4 @@
|
|||
"ts-jest": "^28.0.5",
|
||||
"typescript": "^4.7.4"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue