@sentry/react-native 5.23.0-alpha.0 → 5.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -18
- package/LICENSE.md +1 -1
- package/RNSentry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +1 -54
- package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +0 -10
- package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +0 -10
- package/dist/js/NativeRNSentry.d.ts +0 -2
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/client.d.ts +0 -8
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +4 -20
- package/dist/js/client.js.map +1 -1
- package/dist/js/index.d.ts +5 -3
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +5 -3
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/debugsymbolicator.d.ts +8 -60
- package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +137 -209
- package/dist/js/integrations/debugsymbolicator.js.map +1 -1
- package/dist/js/integrations/debugsymbolicatorutils.d.ts +18 -0
- package/dist/js/integrations/debugsymbolicatorutils.d.ts.map +1 -0
- package/dist/js/integrations/debugsymbolicatorutils.js +70 -0
- package/dist/js/integrations/debugsymbolicatorutils.js.map +1 -0
- package/dist/js/integrations/default.d.ts.map +1 -1
- package/dist/js/integrations/default.js +24 -49
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/integrations/devicecontext.d.ts +8 -15
- package/dist/js/integrations/devicecontext.d.ts.map +1 -1
- package/dist/js/integrations/devicecontext.js +74 -74
- package/dist/js/integrations/devicecontext.js.map +1 -1
- package/dist/js/integrations/eventorigin.d.ts +8 -15
- package/dist/js/integrations/eventorigin.d.ts.map +1 -1
- package/dist/js/integrations/eventorigin.js +17 -17
- package/dist/js/integrations/eventorigin.js.map +1 -1
- package/dist/js/integrations/expocontext.d.ts +8 -15
- package/dist/js/integrations/expocontext.d.ts.map +1 -1
- package/dist/js/integrations/expocontext.js +28 -32
- package/dist/js/integrations/expocontext.js.map +1 -1
- package/dist/js/integrations/exports.d.ts +16 -0
- package/dist/js/integrations/exports.d.ts.map +1 -0
- package/dist/js/integrations/exports.js +16 -0
- package/dist/js/integrations/exports.js.map +1 -0
- package/dist/js/integrations/index.d.ts +4 -1
- package/dist/js/integrations/index.d.ts.map +1 -1
- package/dist/js/integrations/index.js +5 -1
- package/dist/js/integrations/index.js.map +1 -1
- package/dist/js/integrations/modulesloader.d.ts +8 -15
- package/dist/js/integrations/modulesloader.d.ts.map +1 -1
- package/dist/js/integrations/modulesloader.js +34 -31
- package/dist/js/integrations/modulesloader.js.map +1 -1
- package/dist/js/integrations/nativelinkederrors.d.ts +8 -51
- package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
- package/dist/js/integrations/nativelinkederrors.js +112 -124
- package/dist/js/integrations/nativelinkederrors.js.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.d.ts +8 -54
- package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.js +109 -199
- package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlersutils.d.ts +27 -0
- package/dist/js/integrations/reactnativeerrorhandlersutils.d.ts.map +1 -0
- package/dist/js/integrations/reactnativeerrorhandlersutils.js +77 -0
- package/dist/js/integrations/reactnativeerrorhandlersutils.js.map +1 -0
- package/dist/js/integrations/reactnativeinfo.d.ts +8 -15
- package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeinfo.js +51 -51
- package/dist/js/integrations/reactnativeinfo.js.map +1 -1
- package/dist/js/integrations/release.d.ts +8 -15
- package/dist/js/integrations/release.d.ts.map +1 -1
- package/dist/js/integrations/release.js +55 -57
- package/dist/js/integrations/release.js.map +1 -1
- package/dist/js/integrations/rewriteframes.js +2 -2
- package/dist/js/integrations/rewriteframes.js.map +1 -1
- package/dist/js/integrations/screenshot.d.ts +8 -23
- package/dist/js/integrations/screenshot.d.ts.map +1 -1
- package/dist/js/integrations/screenshot.js +31 -47
- package/dist/js/integrations/screenshot.js.map +1 -1
- package/dist/js/integrations/sdkinfo.d.ts +8 -16
- package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
- package/dist/js/integrations/sdkinfo.js +54 -41
- package/dist/js/integrations/sdkinfo.js.map +1 -1
- package/dist/js/integrations/spotlight.d.ts +10 -2
- package/dist/js/integrations/spotlight.d.ts.map +1 -1
- package/dist/js/integrations/spotlight.js +14 -9
- package/dist/js/integrations/spotlight.js.map +1 -1
- package/dist/js/integrations/viewhierarchy.d.ts +8 -18
- package/dist/js/integrations/viewhierarchy.d.ts.map +1 -1
- package/dist/js/integrations/viewhierarchy.js +46 -43
- package/dist/js/integrations/viewhierarchy.js.map +1 -1
- package/dist/js/options.d.ts +2 -24
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/profiling/integration.d.ts +8 -32
- package/dist/js/profiling/integration.d.ts.map +1 -1
- package/dist/js/profiling/integration.js +120 -119
- package/dist/js/profiling/integration.js.map +1 -1
- package/dist/js/tracing/nativeframes.d.ts +0 -4
- package/dist/js/tracing/nativeframes.d.ts.map +1 -1
- package/dist/js/tracing/nativeframes.js +14 -14
- package/dist/js/tracing/nativeframes.js.map +1 -1
- package/dist/js/utils/environment.d.ts +0 -4
- package/dist/js/utils/environment.d.ts.map +1 -1
- package/dist/js/utils/environment.js +0 -8
- package/dist/js/utils/environment.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.d.ts.map +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts +1 -7
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +0 -24
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry.mm +14 -49
- package/ios/RNSentryDependencyContainer.h +4 -1
- package/ios/RNSentryDependencyContainer.m +4 -0
- package/ios/RNSentryFramesTrackerListener.h +6 -0
- package/ios/RNSentryFramesTrackerListener.m +4 -0
- package/ios/RNSentryOnDrawReporter.h +23 -0
- package/ios/RNSentryOnDrawReporter.m +5 -16
- package/ios/RNSentryRNSScreen.h +6 -0
- package/ios/RNSentryRNSScreen.m +6 -1
- package/package.json +12 -20
- package/src/js/NativeRNSentry.ts +0 -2
- package/ts3.8/dist/js/NativeRNSentry.d.ts +0 -2
- package/ts3.8/dist/js/client.d.ts +0 -8
- package/ts3.8/dist/js/index.d.ts +5 -3
- package/ts3.8/dist/js/integrations/debugsymbolicator.d.ts +8 -60
- package/ts3.8/dist/js/integrations/debugsymbolicatorutils.d.ts +18 -0
- package/ts3.8/dist/js/integrations/devicecontext.d.ts +8 -15
- package/ts3.8/dist/js/integrations/eventorigin.d.ts +8 -15
- package/ts3.8/dist/js/integrations/expocontext.d.ts +8 -15
- package/ts3.8/dist/js/integrations/exports.d.ts +16 -0
- package/ts3.8/dist/js/integrations/index.d.ts +4 -1
- package/ts3.8/dist/js/integrations/modulesloader.d.ts +8 -15
- package/ts3.8/dist/js/integrations/nativelinkederrors.d.ts +8 -51
- package/ts3.8/dist/js/integrations/reactnativeerrorhandlers.d.ts +8 -54
- package/ts3.8/dist/js/integrations/reactnativeerrorhandlersutils.d.ts +27 -0
- package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +8 -15
- package/ts3.8/dist/js/integrations/release.d.ts +8 -15
- package/ts3.8/dist/js/integrations/screenshot.d.ts +8 -23
- package/ts3.8/dist/js/integrations/sdkinfo.d.ts +8 -16
- package/ts3.8/dist/js/integrations/spotlight.d.ts +10 -2
- package/ts3.8/dist/js/integrations/viewhierarchy.d.ts +8 -18
- package/ts3.8/dist/js/options.d.ts +2 -24
- package/ts3.8/dist/js/profiling/integration.d.ts +8 -32
- package/ts3.8/dist/js/tracing/nativeframes.d.ts +0 -4
- package/ts3.8/dist/js/utils/environment.d.ts +0 -4
- package/ts3.8/dist/js/version.d.ts +1 -1
- package/ts3.8/dist/js/wrapper.d.ts +1 -7
- package/dist/js/integrations/mobilereplay.d.ts +0 -36
- package/dist/js/integrations/mobilereplay.d.ts.map +0 -1
- package/dist/js/integrations/mobilereplay.js +0 -97
- package/dist/js/integrations/mobilereplay.js.map +0 -1
- package/dist/js/utils/clientutils.d.ts +0 -8
- package/dist/js/utils/clientutils.d.ts.map +0 -1
- package/dist/js/utils/clientutils.js +0 -7
- package/dist/js/utils/clientutils.js.map +0 -1
- package/ts3.8/dist/js/integrations/mobilereplay.d.ts +0 -36
- package/ts3.8/dist/js/utils/clientutils.d.ts +0 -8
package/ts3.8/dist/js/index.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ export { addGlobalEventProcessor, addBreadcrumb, captureException, captureEvent,
|
|
|
3
3
|
export { Integrations as BrowserIntegrations, ErrorBoundary, withErrorBoundary, createReduxEnhancer, Profiler, useProfiler, withProfiler, } from '@sentry/react';
|
|
4
4
|
export { lastEventId } from '@sentry/browser';
|
|
5
5
|
import * as Integrations from './integrations';
|
|
6
|
-
export
|
|
7
|
-
|
|
6
|
+
export * from './integrations/exports';
|
|
7
|
+
export { SDK_NAME, SDK_VERSION } from './version';
|
|
8
8
|
export type { ReactNativeOptions } from './options';
|
|
9
9
|
export { ReactNativeClient } from './client';
|
|
10
10
|
export { init, wrap, setDist, setRelease, nativeCrash, flush, close, captureUserFeedback, withScope, configureScope, } from './sdk';
|
|
11
11
|
export { TouchEventBoundary, withTouchEventBoundary } from './touchevents';
|
|
12
12
|
export { ReactNativeTracing, ReactNavigationV4Instrumentation, ReactNavigationV5Instrumentation, ReactNavigationInstrumentation, ReactNativeNavigationInstrumentation, RoutingInstrumentation, sentryTraceGesture, TimeToInitialDisplay, TimeToFullDisplay, startTimeToInitialDisplaySpan, startTimeToFullDisplaySpan, } from './tracing';
|
|
13
13
|
export type { ReactNavigationTransactionContext, TimeToDisplayProps } from './tracing';
|
|
14
|
-
export {
|
|
14
|
+
export {
|
|
15
|
+
/** @deprecated Import the integration function directly, e.g. `screenshotIntegration()` instead of `new Integrations.Screenshot(). */
|
|
16
|
+
Integrations, };
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/**
|
|
3
3
|
* React Native Error
|
|
4
4
|
*/
|
|
@@ -9,63 +9,11 @@ export type ReactNativeError = Error & {
|
|
|
9
9
|
componentStack?: string;
|
|
10
10
|
};
|
|
11
11
|
/** Tries to symbolicate the JS stack trace on the device. */
|
|
12
|
-
export declare
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
name: string;
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
|
25
|
-
/**
|
|
26
|
-
* Symbolicates the stack on the device talking to local dev server.
|
|
27
|
-
* Mutates the passed event.
|
|
28
|
-
*/
|
|
29
|
-
private _symbolicate;
|
|
30
|
-
/**
|
|
31
|
-
* Converts ReactNativeFrames to frames in the Sentry format
|
|
32
|
-
* @param frames ReactNativeFrame[]
|
|
33
|
-
*/
|
|
34
|
-
private _convertReactNativeFramesToSentryFrames;
|
|
35
|
-
/**
|
|
36
|
-
* Replaces the frames in the exception of a error.
|
|
37
|
-
* @param event Event
|
|
38
|
-
* @param frames StackFrame[]
|
|
39
|
-
*/
|
|
40
|
-
private _replaceExceptionFramesInEvent;
|
|
41
|
-
/**
|
|
42
|
-
* Replaces the frames in the thread of a message.
|
|
43
|
-
* @param event Event
|
|
44
|
-
* @param frames StackFrame[]
|
|
45
|
-
*/
|
|
46
|
-
private _replaceThreadFramesInEvent;
|
|
47
|
-
/**
|
|
48
|
-
* This tries to add source context for in_app Frames
|
|
49
|
-
*
|
|
50
|
-
* @param frame StackFrame
|
|
51
|
-
* @param getDevServer function from RN to get DevServer URL
|
|
52
|
-
*/
|
|
53
|
-
private _addSourceContext;
|
|
54
|
-
/**
|
|
55
|
-
* Get source context for segment
|
|
56
|
-
*/
|
|
57
|
-
private _fetchSourceContext;
|
|
58
|
-
/**
|
|
59
|
-
* Loads and calls RN Core Devtools parseErrorStack function.
|
|
60
|
-
*/
|
|
61
|
-
private _parseErrorStack;
|
|
62
|
-
/**
|
|
63
|
-
* Loads and calls RN Core Devtools symbolicateStackTrace function.
|
|
64
|
-
*/
|
|
65
|
-
private _symbolicateStackTrace;
|
|
66
|
-
/**
|
|
67
|
-
* Loads and returns the RN DevServer URL.
|
|
68
|
-
*/
|
|
69
|
-
private _getDevServer;
|
|
70
|
-
}
|
|
12
|
+
export declare const debugSymbolicatorIntegration: () => IntegrationFnResult;
|
|
13
|
+
/**
|
|
14
|
+
* Tries to symbolicate the JS stack trace on the device.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated Use `debugSymbolicatorIntegration()` instead.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DebugSymbolicator: IntegrationClass<Integration>;
|
|
71
19
|
//# sourceMappingURL=debugsymbolicator.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as ReactNative from '../vendor/react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Get source context for segment
|
|
4
|
+
*/
|
|
5
|
+
export declare function fetchSourceContext(url: string, segments: Array<string>, start: number): Promise<string | null>;
|
|
6
|
+
/**
|
|
7
|
+
* Loads and calls RN Core Devtools parseErrorStack function.
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseErrorStack(errorStack: string): Array<ReactNative.StackFrame>;
|
|
10
|
+
/**
|
|
11
|
+
* Loads and calls RN Core Devtools symbolicateStackTrace function.
|
|
12
|
+
*/
|
|
13
|
+
export declare function symbolicateStackTrace(stack: Array<ReactNative.StackFrame>, extraData?: Record<string, unknown>): Promise<ReactNative.SymbolicatedStackTrace>;
|
|
14
|
+
/**
|
|
15
|
+
* Loads and returns the RN DevServer URL.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getDevServer(): ReactNative.DevServerInfo | undefined;
|
|
18
|
+
//# sourceMappingURL=debugsymbolicatorutils.d.ts.map
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** Load device context from native. */
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
|
16
|
-
}
|
|
3
|
+
export declare const deviceContextIntegration: () => IntegrationFnResult;
|
|
4
|
+
/**
|
|
5
|
+
* Load device context from native.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `deviceContextIntegration()` instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DeviceContext: IntegrationClass<Integration>;
|
|
17
10
|
//# sourceMappingURL=devicecontext.d.ts.map
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** Default EventOrigin instrumentation */
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
setupOnce(addGlobalEventProcessor: (e: EventProcessor) => void): void;
|
|
16
|
-
}
|
|
3
|
+
export declare const eventOriginIntegration: () => IntegrationFnResult;
|
|
4
|
+
/**
|
|
5
|
+
* Default EventOrigin instrumentation
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `eventOriginIntegration()` instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EventOrigin: IntegrationClass<Integration>;
|
|
17
10
|
//# sourceMappingURL=eventorigin.d.ts.map
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** Load device context from expo modules. */
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
|
16
|
-
}
|
|
3
|
+
export declare const expoContextIntegration: () => IntegrationFnResult;
|
|
4
|
+
/**
|
|
5
|
+
* Load device context from expo modules.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `expoContextIntegration()` instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ExpoContext: IntegrationClass<Integration>;
|
|
17
10
|
//# sourceMappingURL=expocontext.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { debugSymbolicatorIntegration } from './debugsymbolicator';
|
|
2
|
+
export { deviceContextIntegration } from './devicecontext';
|
|
3
|
+
export { reactNativeErrorHandlersIntegration } from './reactnativeerrorhandlers';
|
|
4
|
+
export { nativeLinkedErrorsIntegration } from './nativelinkederrors';
|
|
5
|
+
export { nativeReleaseIntegration } from './release';
|
|
6
|
+
export { eventOriginIntegration } from './eventorigin';
|
|
7
|
+
export { sdkInfoIntegration } from './sdkinfo';
|
|
8
|
+
export { reactNativeInfoIntegration } from './reactnativeinfo';
|
|
9
|
+
export { modulesLoaderIntegration } from './modulesloader';
|
|
10
|
+
export { hermesProfilingIntegration } from '../profiling/integration';
|
|
11
|
+
export { screenshotIntegration } from './screenshot';
|
|
12
|
+
export { viewHierarchyIntegration } from './viewhierarchy';
|
|
13
|
+
export { expoContextIntegration } from './expocontext';
|
|
14
|
+
export { spotlightIntegration } from './spotlight';
|
|
15
|
+
export { breadcrumbsIntegration, browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, } from '@sentry/react';
|
|
16
|
+
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export { DebugSymbolicator } from './debugsymbolicator';
|
|
2
2
|
export { DeviceContext } from './devicecontext';
|
|
3
3
|
export { ReactNativeErrorHandlers } from './reactnativeerrorhandlers';
|
|
4
|
+
export { NativeLinkedErrors } from './nativelinkederrors';
|
|
4
5
|
export { Release } from './release';
|
|
5
6
|
export { EventOrigin } from './eventorigin';
|
|
6
7
|
export { SdkInfo } from './sdkinfo';
|
|
7
8
|
export { ReactNativeInfo } from './reactnativeinfo';
|
|
8
9
|
export { ModulesLoader } from './modulesloader';
|
|
9
10
|
export { HermesProfiling } from '../profiling/integration';
|
|
11
|
+
export { Screenshot } from './screenshot';
|
|
12
|
+
export { ViewHierarchy } from './viewhierarchy';
|
|
13
|
+
export { ExpoContext } from './expocontext';
|
|
10
14
|
export { Spotlight } from './spotlight';
|
|
11
|
-
export { mobileReplayIntegration } from './mobilereplay';
|
|
12
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** Loads runtime JS modules from prepared file. */
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
setupOnce(addGlobalEventProcessor: (e: EventProcessor) => void): void;
|
|
16
|
-
}
|
|
3
|
+
export declare const modulesLoaderIntegration: () => IntegrationFnResult;
|
|
4
|
+
/**
|
|
5
|
+
* Loads runtime JS modules from prepared file.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `modulesLoaderIntegration()` instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ModulesLoader: IntegrationClass<Integration>;
|
|
17
10
|
//# sourceMappingURL=modulesloader.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
interface LinkedErrorsOptions {
|
|
3
3
|
key: string;
|
|
4
4
|
limit: number;
|
|
@@ -6,55 +6,12 @@ interface LinkedErrorsOptions {
|
|
|
6
6
|
/**
|
|
7
7
|
* Processes JS and RN native linked errors.
|
|
8
8
|
*/
|
|
9
|
-
export declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
name: string;
|
|
18
|
-
private readonly _key;
|
|
19
|
-
private readonly _limit;
|
|
20
|
-
private _nativePackage;
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
constructor(options?: Partial<LinkedErrorsOptions>);
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void;
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
preprocessEvent(event: Event, hint: EventHint | undefined, client: Client): void;
|
|
33
|
-
/**
|
|
34
|
-
* Enriches passed event with linked exceptions and native debug meta images.
|
|
35
|
-
*/
|
|
36
|
-
private _handler;
|
|
37
|
-
/**
|
|
38
|
-
* Walks linked errors and created Sentry exceptions chain.
|
|
39
|
-
* Collects debug images from native errors stack frames.
|
|
40
|
-
*/
|
|
41
|
-
private _walkErrorTree;
|
|
42
|
-
/**
|
|
43
|
-
* Converts a Java Throwable to an SentryException
|
|
44
|
-
*/
|
|
45
|
-
private _exceptionFromJavaStackElements;
|
|
46
|
-
/**
|
|
47
|
-
* Converts StackAddresses to a SentryException with DebugMetaImages
|
|
48
|
-
*/
|
|
49
|
-
private _exceptionFromAppleStackReturnAddresses;
|
|
50
|
-
/**
|
|
51
|
-
* Fetches the native package/image name from the native layer
|
|
52
|
-
*/
|
|
53
|
-
private _fetchNativePackage;
|
|
54
|
-
/**
|
|
55
|
-
* Fetches native debug image information on iOS
|
|
56
|
-
*/
|
|
57
|
-
private _fetchNativeStackFrames;
|
|
58
|
-
}
|
|
9
|
+
export declare const nativeLinkedErrorsIntegration: (options?: Partial<LinkedErrorsOptions>) => IntegrationFnResult;
|
|
10
|
+
/**
|
|
11
|
+
* Processes JS and RN native linked errors.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Use `nativeLinkedErrorsIntegration()` instead.
|
|
14
|
+
*/
|
|
15
|
+
export declare const NativeLinkedErrors: IntegrationClass<Integration> & (new (options?: Partial<LinkedErrorsOptions>) => Integration);
|
|
59
16
|
export {};
|
|
60
17
|
//# sourceMappingURL=nativelinkederrors.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Integration } from '@sentry/types';
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** ReactNativeErrorHandlers Options */
|
|
3
3
|
interface ReactNativeErrorHandlersOptions {
|
|
4
4
|
onerror: boolean;
|
|
@@ -6,58 +6,12 @@ interface ReactNativeErrorHandlersOptions {
|
|
|
6
6
|
patchGlobalPromise: boolean;
|
|
7
7
|
}
|
|
8
8
|
/** ReactNativeErrorHandlers Integration */
|
|
9
|
-
export declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
name: string;
|
|
18
|
-
/** ReactNativeOptions */
|
|
19
|
-
private readonly _options;
|
|
20
|
-
/** Constructor */
|
|
21
|
-
constructor(options?: Partial<ReactNativeErrorHandlersOptions>);
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
setupOnce(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Handle Promises
|
|
28
|
-
*/
|
|
29
|
-
private _handleUnhandledRejections;
|
|
30
|
-
/**
|
|
31
|
-
* Polyfill the global promise instance with one we can be sure that we can attach the tracking to.
|
|
32
|
-
*
|
|
33
|
-
* In newer RN versions >=0.63, the global promise is not the same reference as the one imported from the promise library.
|
|
34
|
-
* This is due to a version mismatch between promise versions.
|
|
35
|
-
* Originally we tried a solution where we would have you put a package resolution to ensure the promise instances match. However,
|
|
36
|
-
* - Using a package resolution requires the you to manually troubleshoot.
|
|
37
|
-
* - The package resolution fix no longer works with 0.67 on iOS Hermes.
|
|
38
|
-
*/
|
|
39
|
-
private _polyfillPromise;
|
|
40
|
-
/**
|
|
41
|
-
* Single source of truth for the Promise implementation we want to use.
|
|
42
|
-
* This is important for verifying that the rejected promise tracing will work as expected.
|
|
43
|
-
*/
|
|
44
|
-
private _getPromisePolyfill;
|
|
45
|
-
/**
|
|
46
|
-
* Attach the unhandled rejection handler
|
|
47
|
-
*/
|
|
48
|
-
private _attachUnhandledRejectionHandler;
|
|
49
|
-
/**
|
|
50
|
-
* Checks if the promise is the same one or not, if not it will warn the user
|
|
51
|
-
*/
|
|
52
|
-
private _checkPromiseAndWarn;
|
|
53
|
-
/**
|
|
54
|
-
* Handle errors
|
|
55
|
-
*/
|
|
56
|
-
private _handleOnError;
|
|
57
|
-
/**
|
|
58
|
-
* Loads and returns rejection tracking module
|
|
59
|
-
*/
|
|
60
|
-
private _loadRejectionTracking;
|
|
61
|
-
}
|
|
9
|
+
export declare const reactNativeErrorHandlersIntegration: (options?: Partial<ReactNativeErrorHandlersOptions>) => IntegrationFnResult;
|
|
10
|
+
/**
|
|
11
|
+
* ReactNativeErrorHandlers Integration
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Use `reactNativeErrorHandlersIntegration()` instead.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ReactNativeErrorHandlers: IntegrationClass<Integration> & (new (options?: Partial<ReactNativeErrorHandlersOptions>) => Integration);
|
|
62
16
|
export {};
|
|
63
17
|
//# sourceMappingURL=reactnativeerrorhandlers.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Polyfill the global promise instance with one we can be sure that we can attach the tracking to.
|
|
3
|
+
*
|
|
4
|
+
* In newer RN versions >=0.63, the global promise is not the same reference as the one imported from the promise library.
|
|
5
|
+
* This is due to a version mismatch between promise versions.
|
|
6
|
+
* Originally we tried a solution where we would have you put a package resolution to ensure the promise instances match. However,
|
|
7
|
+
* - Using a package resolution requires the you to manually troubleshoot.
|
|
8
|
+
* - The package resolution fix no longer works with 0.67 on iOS Hermes.
|
|
9
|
+
*/
|
|
10
|
+
export declare function polyfillPromise(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Single source of truth for the Promise implementation we want to use.
|
|
13
|
+
* This is important for verifying that the rejected promise tracing will work as expected.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getPromisePolyfill(): unknown;
|
|
16
|
+
/**
|
|
17
|
+
* Lazy require the rejection tracking module
|
|
18
|
+
*/
|
|
19
|
+
export declare function requireRejectionTracking(): {
|
|
20
|
+
disable: () => void;
|
|
21
|
+
enable: (arg: unknown) => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Checks if the promise is the same one or not, if not it will warn the user
|
|
25
|
+
*/
|
|
26
|
+
export declare function checkPromiseAndWarn(): void;
|
|
27
|
+
//# sourceMappingURL=reactnativeerrorhandlersutils.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Context,
|
|
1
|
+
import type { Context, Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
export interface ReactNativeContext extends Context {
|
|
3
3
|
js_engine?: string;
|
|
4
4
|
turbo_module: boolean;
|
|
@@ -12,18 +12,11 @@ export interface ReactNativeContext extends Context {
|
|
|
12
12
|
expo_sdk_version?: string;
|
|
13
13
|
}
|
|
14
14
|
/** Loads React Native context at runtime */
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void): void;
|
|
28
|
-
}
|
|
15
|
+
export declare const reactNativeInfoIntegration: () => IntegrationFnResult;
|
|
16
|
+
/**
|
|
17
|
+
* Loads React Native context at runtime
|
|
18
|
+
*
|
|
19
|
+
* @deprecated Use `reactNativeInfoIntegration()` instead.
|
|
20
|
+
*/
|
|
21
|
+
export declare const ReactNativeInfo: IntegrationClass<Integration>;
|
|
29
22
|
//# sourceMappingURL=reactnativeinfo.d.ts.map
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import type { Integration } from '@sentry/types';
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** Release integration responsible to load release from file. */
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
setupOnce(): void;
|
|
16
|
-
}
|
|
3
|
+
export declare const nativeReleaseIntegration: () => IntegrationFnResult;
|
|
4
|
+
/**
|
|
5
|
+
* Release integration responsible to load release from file.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `nativeReleaseIntegration()` instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Release: IntegrationClass<Integration>;
|
|
17
10
|
//# sourceMappingURL=release.d.ts.map
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** Adds screenshots to error events */
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* If enabled attaches a screenshot to the event hint.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated Screenshots are now added in global event processor.
|
|
16
|
-
*/
|
|
17
|
-
static attachScreenshotToEventHint(hint: EventHint, { attachScreenshot }: {
|
|
18
|
-
attachScreenshot?: boolean;
|
|
19
|
-
}): PromiseLike<EventHint>;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
setupOnce(addGlobalEventProcessor: (e: EventProcessor) => void): void;
|
|
24
|
-
}
|
|
3
|
+
export declare const screenshotIntegration: () => IntegrationFnResult;
|
|
4
|
+
/**
|
|
5
|
+
* Adds screenshots to error events
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `screenshotIntegration()` instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Screenshot: IntegrationClass<Integration>;
|
|
25
10
|
//# sourceMappingURL=screenshot.d.ts.map
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult, SdkInfo as SdkInfoType } from '@sentry/types';
|
|
2
2
|
type DefaultSdkInfo = Pick<Required<SdkInfoType>, 'name' | 'packages' | 'version'>;
|
|
3
3
|
export declare const defaultSdkInfo: DefaultSdkInfo;
|
|
4
4
|
/** Default SdkInfo instrumentation */
|
|
5
|
-
export declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
private _nativeSdkPackage;
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
setupOnce(addGlobalEventProcessor: (e: EventProcessor) => void): void;
|
|
19
|
-
}
|
|
5
|
+
export declare const sdkInfoIntegration: () => IntegrationFnResult;
|
|
6
|
+
/**
|
|
7
|
+
* Default SdkInfo instrumentation
|
|
8
|
+
*
|
|
9
|
+
* @deprecated Use `sdkInfoIntegration()` instead.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SdkInfo: IntegrationClass<Integration>;
|
|
20
12
|
export {};
|
|
21
13
|
//# sourceMappingURL=sdkinfo.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Integration } from '@sentry/types';
|
|
1
|
+
import type { Integration, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
type SpotlightReactNativeIntegrationOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* The URL of the Sidecar instance to connect and forward events to.
|
|
@@ -13,6 +13,14 @@ type SpotlightReactNativeIntegrationOptions = {
|
|
|
13
13
|
*
|
|
14
14
|
* Learn more about spotlight at https://spotlightjs.com
|
|
15
15
|
*/
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function spotlightIntegration({ sidecarUrl, }?: SpotlightReactNativeIntegrationOptions): IntegrationFnResult;
|
|
17
|
+
/**
|
|
18
|
+
* Use this integration to send errors and transactions to Spotlight.
|
|
19
|
+
*
|
|
20
|
+
* Learn more about spotlight at https://spotlightjs.com
|
|
21
|
+
*
|
|
22
|
+
* @deprecated Use `spotlightIntegration()` instead.
|
|
23
|
+
*/
|
|
24
|
+
export declare const Spotlight: (args_0?: SpotlightReactNativeIntegrationOptions | undefined) => Integration;
|
|
17
25
|
export {};
|
|
18
26
|
//# sourceMappingURL=spotlight.d.ts.map
|
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types';
|
|
2
2
|
/** Adds ViewHierarchy to error events */
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private static _attachmentType;
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
setupOnce(addGlobalEventProcessor: (e: EventProcessor) => void): void;
|
|
19
|
-
}
|
|
3
|
+
export declare const viewHierarchyIntegration: () => IntegrationFnResult;
|
|
4
|
+
/**
|
|
5
|
+
* Adds ViewHierarchy to error events
|
|
6
|
+
*
|
|
7
|
+
* @deprecated Use `viewHierarchyIntegration()` instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ViewHierarchy: IntegrationClass<Integration>;
|
|
20
10
|
//# sourceMappingURL=viewhierarchy.d.ts.map
|
|
@@ -159,28 +159,6 @@ export interface BaseReactNativeOptions {
|
|
|
159
159
|
* from the function, no screenshot will be attached.
|
|
160
160
|
*/
|
|
161
161
|
beforeScreenshot?: (event: Event, hint: EventHint) => boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Options which are in beta, or otherwise not guaranteed to be stable.
|
|
164
|
-
*/
|
|
165
|
-
_experiments?: {
|
|
166
|
-
[key: string]: unknown;
|
|
167
|
-
/**
|
|
168
|
-
* The sample rate for profiling
|
|
169
|
-
* 1.0 will profile all transactions and 0 will profile none.
|
|
170
|
-
*/
|
|
171
|
-
profilesSampleRate?: number;
|
|
172
|
-
/**
|
|
173
|
-
* The sample rate for session-long replays.
|
|
174
|
-
* 1.0 will record all sessions and 0 will record none.
|
|
175
|
-
*/
|
|
176
|
-
replaysSessionSampleRate?: number;
|
|
177
|
-
/**
|
|
178
|
-
* The sample rate for sessions that has had an error occur.
|
|
179
|
-
* This is independent of `sessionSampleRate`.
|
|
180
|
-
* 1.0 will record all sessions and 0 will record none.
|
|
181
|
-
*/
|
|
182
|
-
replaysOnErrorSampleRate?: number;
|
|
183
|
-
};
|
|
184
162
|
}
|
|
185
163
|
export interface ReactNativeTransportOptions extends BrowserTransportOptions {
|
|
186
164
|
/**
|
|
@@ -192,9 +170,9 @@ export interface ReactNativeTransportOptions extends BrowserTransportOptions {
|
|
|
192
170
|
* Configuration options for the Sentry ReactNative SDK.
|
|
193
171
|
* @see ReactNativeFrontend for more information.
|
|
194
172
|
*/
|
|
195
|
-
export interface ReactNativeOptions extends
|
|
173
|
+
export interface ReactNativeOptions extends Options<ReactNativeTransportOptions>, BaseReactNativeOptions {
|
|
196
174
|
}
|
|
197
|
-
export interface ReactNativeClientOptions extends Omit<ClientOptions<ReactNativeTransportOptions>, '
|
|
175
|
+
export interface ReactNativeClientOptions extends Omit<ClientOptions<ReactNativeTransportOptions>, 'tunnel'>, BaseReactNativeOptions {
|
|
198
176
|
}
|
|
199
177
|
export interface ReactNativeWrapperOptions {
|
|
200
178
|
/** Props for the root React profiler */
|