Skip to content

Commit a443517

Browse files
authored
fix(node): Revert to only use sync debugger for LocalVariables (#10077)
1 parent ecb4f7f commit a443517

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 numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
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';
162

173
/**
184
* Adds local variables to exception frames
195
*/
20-
// eslint-disable-next-line deprecation/deprecation
21-
export const LocalVariables = convertIntegrationFnToClass(INTEGRATION_NAME, localVariables);
6+
export const LocalVariables = LocalVariablesSync;

0 commit comments

Comments
 (0)