Skip to content

Commit

Permalink
fix(node): Revert to only use sync debugger for LocalVariables (#10077
Browse files Browse the repository at this point in the history
)
  • Loading branch information
timfish authored Jan 5, 2024
1 parent ecb4f7f commit a443517
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions packages/node/src/integrations/local-variables/index.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
import { convertIntegrationFnToClass } from '@sentry/core';
import type { IntegrationFn } from '@sentry/types';
import { NODE_VERSION } from '../../nodeVersion';
import type { Options } from './common';
import { localVariablesAsync } from './local-variables-async';
import { localVariablesSync } from './local-variables-sync';

const INTEGRATION_NAME = 'LocalVariables';

/**
* Adds local variables to exception frames
*/
const localVariables: IntegrationFn = (options: Options = {}) => {
return NODE_VERSION.major < 19 ? localVariablesSync(options) : localVariablesAsync(options);
};
import { LocalVariablesSync } from './local-variables-sync';

/**
* Adds local variables to exception frames
*/
// eslint-disable-next-line deprecation/deprecation
export const LocalVariables = convertIntegrationFnToClass(INTEGRATION_NAME, localVariables);
export const LocalVariables = LocalVariablesSync;

0 comments on commit a443517

Please sign in to comment.