File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ export function resetFileContentCache(): void {
26
26
}
27
27
28
28
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
+ * */
29
34
frameContextLines ?: number ;
30
35
}
31
36
Original file line number Diff line number Diff line change @@ -20,7 +20,19 @@ export interface NodeOptions extends Options {
20
20
/** HTTPS proxy certificates path */
21
21
caCerts ?: string ;
22
22
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
+ * */
24
36
frameContextLines ?: number ;
25
37
26
38
/** Callback that is executed when a fatal global error occurs. */
You can’t perform that action at this time.
0 commit comments