|
1 | | -import { convertIntegrationFnToClass, defineIntegration, getClient } from '@sentry/core'; |
2 | | -import type { Event, Exception, Integration, IntegrationClass, IntegrationFn, StackParser } from '@sentry/types'; |
| 1 | +import { defineIntegration, getClient } from '@sentry/core'; |
| 2 | +import type { Event, Exception, IntegrationFn, StackParser } from '@sentry/types'; |
3 | 3 | import { LRUMap, logger } from '@sentry/utils'; |
4 | 4 | import type { Debugger, InspectorNotification, Runtime } from 'inspector'; |
5 | 5 | import { Session } from 'inspector'; |
@@ -384,19 +384,7 @@ const _localVariablesSyncIntegration = (( |
384 | 384 | }; |
385 | 385 | }) satisfies IntegrationFn; |
386 | 386 |
|
387 | | -export const localVariablesSyncIntegration = defineIntegration(_localVariablesSyncIntegration); |
388 | | - |
389 | 387 | /** |
390 | 388 | * Adds local variables to exception frames. |
391 | | - * @deprecated Use `localVariablesSyncIntegration()` instead. |
392 | 389 | */ |
393 | | -// eslint-disable-next-line deprecation/deprecation |
394 | | -export const LocalVariablesSync = convertIntegrationFnToClass( |
395 | | - INTEGRATION_NAME, |
396 | | - localVariablesSyncIntegration, |
397 | | -) as IntegrationClass<Integration & { processEvent: (event: Event) => Event; setup: (client: NodeClient) => void }> & { |
398 | | - new (options?: LocalVariablesIntegrationOptions, session?: DebugSession): Integration; |
399 | | -}; |
400 | | - |
401 | | -// eslint-disable-next-line deprecation/deprecation |
402 | | -export type LocalVariablesSync = typeof LocalVariablesSync; |
| 390 | +export const localVariablesSyncIntegration = defineIntegration(_localVariablesSyncIntegration); |
0 commit comments