Skip to content

Commit

Permalink
ref(node): Remove class based export for local variable integration (#…
Browse files Browse the repository at this point in the history
…11128)

I think we missed this from removing the other class-based exports.
  • Loading branch information
AbhiPrasad committed Mar 15, 2024
1 parent b8c75f4 commit d26b25d
Showing 1 changed file with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { convertIntegrationFnToClass, defineIntegration, getClient } from '@sentry/core';
import type { Event, Exception, Integration, IntegrationClass, IntegrationFn, StackParser } from '@sentry/types';
import { defineIntegration, getClient } from '@sentry/core';
import type { Event, Exception, IntegrationFn, StackParser } from '@sentry/types';
import { LRUMap, logger } from '@sentry/utils';
import type { Debugger, InspectorNotification, Runtime } from 'inspector';
import { Session } from 'inspector';
Expand Down Expand Up @@ -384,19 +384,7 @@ const _localVariablesSyncIntegration = ((
};
}) satisfies IntegrationFn;

export const localVariablesSyncIntegration = defineIntegration(_localVariablesSyncIntegration);

/**
* Adds local variables to exception frames.
* @deprecated Use `localVariablesSyncIntegration()` instead.
*/
// eslint-disable-next-line deprecation/deprecation
export const LocalVariablesSync = convertIntegrationFnToClass(
INTEGRATION_NAME,
localVariablesSyncIntegration,
) as IntegrationClass<Integration & { processEvent: (event: Event) => Event; setup: (client: NodeClient) => void }> & {
new (options?: LocalVariablesIntegrationOptions, session?: DebugSession): Integration;
};

// eslint-disable-next-line deprecation/deprecation
export type LocalVariablesSync = typeof LocalVariablesSync;
export const localVariablesSyncIntegration = defineIntegration(_localVariablesSyncIntegration);

0 comments on commit d26b25d

Please sign in to comment.