Skip to content

Commit 6818dd4

Browse files
MathiasWPbenmccann
andauthored
docs: refer to @sentry/sveltekit rather than @sentry/node (#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]>
1 parent e062261 commit 6818dd4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

documentation/docs/30-advanced/20-hooks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ export {};
164164
/// file: src/hooks.server.js
165165
// @errors: 2322
166166
// @filename: ambient.d.ts
167-
declare module '@sentry/node' {
167+
declare module '@sentry/sveltekit' {
168168
export const init: (opts: any) => void;
169169
export const captureException: (error: any, opts: any) => void;
170170
}
171171

172172
// @filename: index.js
173173
// ---cut---
174-
import * as Sentry from '@sentry/node';
174+
import * as Sentry from '@sentry/sveltekit';
175175
import crypto from 'crypto';
176176

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

201201
// @filename: index.js
202202
// ---cut---
203-
import * as Sentry from '@sentry/svelte';
203+
import * as Sentry from '@sentry/sveltekit';
204204

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

documentation/docs/30-advanced/25-errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ Unexpected errors will go through the [`handleError`](hooks#shared-hooks-handlee
8383
/// file: src/hooks.server.js
8484
// @errors: 2322 1360 2571 2339
8585
// @filename: ambient.d.ts
86-
declare module '@sentry/node' {
86+
declare module '@sentry/sveltekit' {
8787
export const init: (opts: any) => void;
8888
export const captureException: (error: any, opts: any) => void;
8989
}
9090

9191
// @filename: index.js
9292
// ---cut---
93-
import * as Sentry from '@sentry/node';
93+
import * as Sentry from '@sentry/sveltekit';
9494

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

0 commit comments

Comments
 (0)