Skip to content

Commit ddb8406

Browse files
committed
Add docs and @deprecated
1 parent 76d8998 commit ddb8406

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

packages/node/src/integrations/contextlines.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ export function resetFileContentCache(): void {
2626
}
2727

2828
interface ContextLinesOptions {
29+
/**
30+
* Sets the number of context lines for each frame when loading a file
31+
*
32+
* Set to 0 to disable loading and inclusion of source files.
33+
* */
2934
frameContextLines?: number;
3035
}
3136

packages/node/src/types.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@ export interface NodeOptions extends Options {
2020
/** HTTPS proxy certificates path */
2121
caCerts?: string;
2222

23-
/** Sets the number of context lines for each frame when loading a file. */
23+
/**
24+
* Sets the number of context lines for each frame when loading a file.
25+
*
26+
* @deprecated Context lines configuration has moved to the `ContextLines` integration.
27+
*
28+
* ```
29+
* init({
30+
* dsn: '__DSN__',
31+
* integrations: [new ContextLines({ frameContextLines: 10 })]
32+
* })
33+
* ```
34+
*
35+
* */
2436
frameContextLines?: number;
2537

2638
/** Callback that is executed when a fatal global error occurs. */

0 commit comments

Comments
 (0)