-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sentry): bump up
toucan-js
to v3 (#137)
* feat(sentry): bump up `toucan-js` to v3 * update readme * add changeset * update readme
- Loading branch information
Showing
9 changed files
with
149 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hono/sentry': major | ||
--- | ||
|
||
feat: bump up `toucan-js` to v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import type { Context, MiddlewareHandler } from 'https://deno.land/x/hono/mod.ts' | ||
import Toucan from 'https://cdn.skypack.dev/[email protected]' | ||
import type { Options as ToucanOptions } from 'https://cdn.skypack.dev/[email protected]' | ||
import { Toucan, type Options as ToucanOptions } from 'https://esm.sh/[email protected]' | ||
|
||
declare module 'https://deno.land/x/hono/mod.ts' { | ||
interface ContextVariableMap { | ||
|
@@ -33,8 +32,10 @@ export const sentry = ( | |
} | ||
const sentry = new Toucan({ | ||
dsn: c.env?.SENTRY_DSN ?? c.env?.NEXT_PUBLIC_SENTRY_DSN, | ||
allowedHeaders: ['user-agent'], | ||
allowedSearchParams: /(.*)/, | ||
requestDataOptions: { | ||
allowedHeaders: ['user-agent'], | ||
allowedSearchParams: /(.*)/, | ||
}, | ||
request: c.req.raw, | ||
context: hasExecutionContext ? c.executionCtx : new MockContext(), | ||
...options, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { assert, assertEquals } from 'https://deno.land/[email protected]/testing/asserts.ts' | ||
export { Hono } from 'https://deno.land/x/hono@v3.2.3/mod.ts' | ||
export { Hono } from 'https://deno.land/x/hono/mod.ts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.