8000 Move to core and don't use it by default · mcous/sentry-javascript@bd4fafa · GitHub
[go: up one dir, main page]

Skip to content

Commit bd4fafa

Browse files
committed
Move to core and don't use it by default
1 parent 406cb00 commit bd4fafa

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

packages/browser/src/exports.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,5 @@ export { globalHandlersIntegration } from './integrations/globalhandlers';
9696
export { httpContextIntegration } from './integrations/httpcontext';
9797
export { linkedErrorsIntegration } from './integrations/linkederrors';
9898
export { browserApiErrorsIntegration } from './integrations/browserapierrors';
99-
export { inAppIntegration } from './integrations/in-app';
10099

101100
export { lazyLoadIntegration } from './utils/lazyLoadIntegration';

packages/browser/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export {
1010
extraErrorDataIntegration,
1111
rewriteFramesIntegration,
1212
sessionTimingIntegration,
13+
inAppIntegration,
1314
} from '@sentry/core';
1415

1516
export {

packages/browser/src/sdk.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { dedupeIntegration } from '@sentry/core';
1616
import type { BrowserClientOptions, BrowserOptions } from './client';
1717
import { BrowserClient } from './client';
1818
import { DEBUG_BUILD } from './debug-build';
19-
import { inAppIntegration } from './exports';
2019
import { WINDOW } from './helpers';
2120
import { breadcrumbsIntegration } from './integrations/breadcrumbs';
2221
import { browserApiErrorsIntegration } from './integrations/browserapierrors';
@@ -41,7 +40,6 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
4140
linkedErrorsIntegration(),
4241
dedupeIntegration(),
4342
httpContextIntegration(),
44-
inAppIntegration(),
4543
];
4644
}
4745

packages/core/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export { parseSampleRate } from './utils/parseSampleRate';
8181
export { applySdkMetadata } from './utils/sdkMetadata';
8282
export { DEFAULT_ENVIRONMENT } from './constants';
8383
export { addBreadcrumb } from './breadcrumbs';
84+
export { inAppIntegration } from './integrations/in-app';
8485
export { functionToStringIntegration } from './integrations/functiontostring';
8586
export { inboundFiltersIntegration } from './integrations/inboundfilters';
8687
export { linkedErrorsIntegration } from './integrations/linkederrors';

packages/browser/src/integrations/in-app.ts renamed to packages/core/src/integrations/in-app.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import { defineIntegration, getFilenameDebugIdMap } from '@sentry/core';
1+
import type { Client, Event, EventHint } from '@sentry/types';
2+
import { defineIntegration } from '../integration';
3+
import { getFilenameDebugIdMap } from '../utils/prepareEvent';
24

35
/**
46
* Sets the `in_app` property on stack frames according to whether the file has a debugId.
57
*/
68
export const inAppIntegration = defineIntegration(() => {
79
return {
810
name: 'InApp',
9-
processEvent: (event, _, client) => {
11+
processEvent: (event: Event, _: EventHint, client: Client) => {
1012
const stackParser = client.getOptions().stackParser;
1113
const debugIds = new Set(Object.keys(getFilenameDebugIdMap(stackParser)));
1214

0 commit comments

Comments
 (0)
0