Skip to content

Commit

Permalink
docs: refer to @sentry/sveltekit rather than @sentry/node (svelte…
Browse files Browse the repository at this point in the history
…js#11216)

* Update 20-hooks.md

Update from using "@sentry/node" and "@sentry/svelte" to "@sentry/sveltekit";

* Update 25-errors.md

---------

Co-authored-by: Ben McCann <[email protected]>
  • Loading branch information
MathiasWP and benmccann authored Dec 8, 2023
1 parent e062261 commit 6818dd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions documentation/docs/30-advanced/20-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ export {};
/// file: src/hooks.server.js
// @errors: 2322
// @filename: ambient.d.ts
declare module '@sentry/node' {
declare module '@sentry/sveltekit' {
export const init: (opts: any) => void;
export const captureException: (error: any, opts: any) => void;
}

// @filename: index.js
// ---cut---
import * as Sentry from '@sentry/node';
import * as Sentry from '@sentry/sveltekit';
import crypto from 'crypto';

Sentry.init({/*...*/})
Expand All @@ -193,14 +193,14 @@ export async function handleError({ error, event }) {
/// file: src/hooks.client.js
// @errors: 2322
// @filename: ambient.d.ts
declare module '@sentry/svelte' {
declare module '@sentry/sveltekit' {
export const init: (opts: any) => void;
export const captureException: (error: any, opts: any) => void;
}

// @filename: index.js
// ---cut---
import * as Sentry from '@sentry/svelte';
import * as Sentry from '@sentry/sveltekit';

Sentry.init({/*...*/})

Expand Down
4 changes: 2 additions & 2 deletions documentation/docs/30-advanced/25-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ Unexpected errors will go through the [`handleError`](hooks#shared-hooks-handlee
/// file: src/hooks.server.js
// @errors: 2322 1360 2571 2339
// @filename: ambient.d.ts
declare module '@sentry/node' {
declare module '@sentry/sveltekit' {
export const init: (opts: any) => void;
export const captureException: (error: any, opts: any) => void;
}

// @filename: index.js
// ---cut---
import * as Sentry from '@sentry/node';
import * as Sentry from '@sentry/sveltekit';

Sentry.init({/*...*/})

Expand Down

0 comments on commit 6818dd4

Please sign in to comment.