File tree 1 file changed +2
-17
lines changed
packages/node/src/integrations/local-variables
1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 1
- import { convertIntegrationFnToClass } from '@sentry/core' ;
2
- import type { IntegrationFn } from '@sentry/types' ;
3
- import { NODE_VERSION } from '../../nodeVersion' ;
4
- import type { Options } from './common' ;
5
- import { localVariablesAsync } from './local-variables-async' ;
6
- import { localVariablesSync } from './local-variables-sync' ;
7
-
8
- const INTEGRATION_NAME = 'LocalVariables' ;
9
-
10
- /**
11
- * Adds local variables to exception frames
12
- */
13
- const localVariables : IntegrationFn = ( options : Options = { } ) => {
14
- return NODE_VERSION . major < 19 ? localVariablesSync ( options ) : localVariablesAsync ( options ) ;
15
- } ;
1
+ import { LocalVariablesSync } from './local-variables-sync' ;
16
2
17
3
/**
18
4
* Adds local variables to exception frames
19
5
*/
20
- // eslint-disable-next-line deprecation/deprecation
21
- export const LocalVariables = convertIntegrationFnToClass ( INTEGRATION_NAME , localVariables ) ;
6
+ export const LocalVariables = LocalVariablesSync ;
You can’t perform that action at this time.
0 commit comments