@sentry/react-native 5.23.0-alpha.1 → 5.23.1
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 +60 -48
- 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 +3 -19
- 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/tracing/reactnativetracing.d.ts.map +1 -1
- package/dist/js/tracing/reactnativetracing.js +9 -2
- package/dist/js/tracing/reactnativetracing.js.map +1 -1
- package/dist/js/tracing/timetodisplay.d.ts +1 -1
- package/dist/js/tracing/timetodisplay.d.ts.map +1 -1
- package/dist/js/tracing/timetodisplay.js +15 -7
- package/dist/js/tracing/timetodisplay.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 +3 -73
- package/ios/RNSentryBreadcrumb.h +9 -0
- package/ios/RNSentryBreadcrumb.m +33 -0
- package/ios/RNSentryOnDrawReporter.h +23 -0
- package/ios/RNSentryOnDrawReporter.m +2 -17
- package/package.json +1 -9
- 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/tracing/timetodisplay.d.ts +1 -1
- 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
|
@@ -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>, 'tunnel'
|
|
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 */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { EventProcessor, Integration, ThreadCpuProfile } from '@sentry/types';
|
|
1
|
+
import type { Integration, IntegrationClass, IntegrationFn, ThreadCpuProfile } from '@sentry/types';
|
|
3
2
|
import type { NativeAndroidProfileEvent, NativeProfileEvent } from './nativeTypes';
|
|
4
3
|
import type { AndroidCombinedProfileEvent, CombinedProfileEvent, HermesProfileEvent } from './types';
|
|
5
4
|
/**
|
|
@@ -7,36 +6,13 @@ import type { AndroidCombinedProfileEvent, CombinedProfileEvent, HermesProfileEv
|
|
|
7
6
|
*
|
|
8
7
|
* @experimental
|
|
9
8
|
*/
|
|
10
|
-
export declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
private _getCurrentHub?;
|
|
20
|
-
private _currentProfile;
|
|
21
|
-
private _currentProfileTimeout;
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
setupOnce(_: (e: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
|
26
|
-
private _startCurrentProfileForActiveTransaction;
|
|
27
|
-
private _startCurrentProfile;
|
|
28
|
-
private _shouldStartProfiling;
|
|
29
|
-
/**
|
|
30
|
-
* Starts a new profile and links it to the transaction.
|
|
31
|
-
*/
|
|
32
|
-
private _startNewProfile;
|
|
33
|
-
/**
|
|
34
|
-
* Stops profiling and adds the profile to the queue to be processed on beforeEnvelope.
|
|
35
|
-
*/
|
|
36
|
-
private _finishCurrentProfile;
|
|
37
|
-
private _createProfileEventFor;
|
|
38
|
-
private _clearCurrentProfileTimeout;
|
|
39
|
-
}
|
|
9
|
+
export declare const hermesProfilingIntegration: IntegrationFn;
|
|
10
|
+
/**
|
|
11
|
+
* Profiling integration creates a profile for each transaction and adds it to the event envelope.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Use `hermesProfilingIntegration()` instead.
|
|
14
|
+
*/
|
|
15
|
+
export declare const HermesProfiling: IntegrationClass<Integration>;
|
|
40
16
|
/**
|
|
41
17
|
* Starts Profilers and returns the timestamp when profiling started in nanoseconds.
|
|
42
18
|
*/
|
|
@@ -18,10 +18,6 @@ export interface FramesMeasurements extends Measurements {
|
|
|
18
18
|
* Instrumentation to add native slow/frozen frames measurements onto transactions.
|
|
19
19
|
*/
|
|
20
20
|
export declare class NativeFramesInstrumentation {
|
|
21
|
-
/** The native frames at the transaction finish time, keyed by traceId. */
|
|
22
|
-
private _finishFrames;
|
|
23
|
-
/** The listeners for each native frames response, keyed by traceId */
|
|
24
|
-
private _framesListeners;
|
|
25
21
|
/** The native frames at the finish time of the most recent span. */
|
|
26
22
|
private _lastSpanFinishFrames?;
|
|
27
23
|
constructor(addGlobalEventProcessor: (e: EventProcessor) => void, doesExist: () => boolean);
|
|
@@ -30,7 +30,7 @@ export declare function TimeToFullDisplay(props: TimeToDisplayProps): React.Reac
|
|
|
30
30
|
*
|
|
31
31
|
* Returns current span if already exists in the currently active span.
|
|
32
32
|
*/
|
|
33
|
-
export declare function startTimeToInitialDisplaySpan(options?:
|
|
33
|
+
export declare function startTimeToInitialDisplaySpan(options?: Omit<StartSpanOptions, 'op' | 'name'> & {
|
|
34
34
|
name?: string;
|
|
35
35
|
isAutoInstrumented?: boolean;
|
|
36
36
|
}): Span | undefined;
|
|
@@ -16,10 +16,6 @@ export declare function getExpoGoVersion(): string | undefined;
|
|
|
16
16
|
export declare function getExpoSdkVersion(): string | undefined;
|
|
17
17
|
/** Checks if the current platform is not web */
|
|
18
18
|
export declare function notWeb(): boolean;
|
|
19
|
-
/** Checks if the current platform is supported mobile platform (iOS or Android) */
|
|
20
|
-
export declare function isMobileOs(): boolean;
|
|
21
|
-
/** Checks if the current platform is not supported mobile platform (iOS or Android) */
|
|
22
|
-
export declare function notMobileOs(): boolean;
|
|
23
19
|
/** Returns Hermes Version if hermes is present in the runtime */
|
|
24
20
|
export declare function getHermesVersion(): string | undefined;
|
|
25
21
|
/** Returns default environment based on __DEV__ */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const SDK_PACKAGE_NAME = "npm:@sentry/react-native";
|
|
2
2
|
export declare const SDK_NAME = "sentry.javascript.react-native";
|
|
3
|
-
export declare const SDK_VERSION = "5.23.
|
|
3
|
+
export declare const SDK_VERSION = "5.23.1";
|
|
4
4
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Breadcrumb, Envelope, EnvelopeItem, Event, Package, SeverityLevel, User } from '@sentry/types';
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
|
-
import type { MobileReplayOptions } from './integrations/mobilereplay';
|
|
4
3
|
import type { NativeAppStartResponse, NativeDeviceContextsResponse, NativeFramesResponse, NativeReleaseResponse, NativeStackFrames, Spec } from './NativeRNSentry';
|
|
5
4
|
import type { ReactNativeClientOptions } from './options';
|
|
6
5
|
import type * as Hermes from './profiling/hermes';
|
|
@@ -14,9 +13,6 @@ export interface Screenshot {
|
|
|
14
13
|
contentType: string;
|
|
15
14
|
filename: string;
|
|
16
15
|
}
|
|
17
|
-
export type NativeSdkOptions = Partial<ReactNativeClientOptions> & {
|
|
18
|
-
mobileReplayOptions: MobileReplayOptions | undefined;
|
|
19
|
-
};
|
|
20
16
|
interface SentryNativeWrapper {
|
|
21
17
|
enableNative: boolean;
|
|
22
18
|
nativeIsReady: boolean;
|
|
@@ -33,7 +29,7 @@ interface SentryNativeWrapper {
|
|
|
33
29
|
};
|
|
34
30
|
_isModuleLoaded(module: Spec | undefined): module is Spec;
|
|
35
31
|
isNativeAvailable(): boolean;
|
|
36
|
-
initNativeSdk(options:
|
|
32
|
+
initNativeSdk(options: Partial<ReactNativeClientOptions>): PromiseLike<boolean>;
|
|
37
33
|
closeNativeSdk(): PromiseLike<void>;
|
|
38
34
|
sendEnvelope(envelope: Envelope): Promise<void>;
|
|
39
35
|
captureScreenshot(): Promise<Screenshot[] | null>;
|
|
@@ -67,8 +63,6 @@ interface SentryNativeWrapper {
|
|
|
67
63
|
*/
|
|
68
64
|
fetchNativeStackFramesBy(instructionsAddr: number[]): NativeStackFrames | null;
|
|
69
65
|
initNativeReactNavigationNewFrameTracking(): Promise<void>;
|
|
70
|
-
startReplay(isHardCrash: boolean): Promise<string | null>;
|
|
71
|
-
getCurrentReplayId(): string | null;
|
|
72
66
|
}
|
|
73
67
|
/**
|
|
74
68
|
* Our internal interface for calling native functions
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { IntegrationFnResult } from '@sentry/types';
|
|
2
|
-
export declare const MOBILE_REPLAY_INTEGRATION_NAME = "MobileReplay";
|
|
3
|
-
export interface MobileReplayOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Mask all text in recordings
|
|
6
|
-
*/
|
|
7
|
-
maskAllText?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Mask all text in recordings
|
|
10
|
-
*/
|
|
11
|
-
maskAllImages?: boolean;
|
|
12
|
-
}
|
|
13
|
-
type MobileReplayIntegration = IntegrationFnResult & {
|
|
14
|
-
options: Required<MobileReplayOptions>;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* The Mobile Replay Integration, let's you adjust the default mobile replay options.
|
|
18
|
-
* To be passed to `Sentry.init` with `replaysOnErrorSampleRate` or `replaysSessionSampleRate`.
|
|
19
|
-
*
|
|
20
|
-
* ```javascript
|
|
21
|
-
* Sentry.init({
|
|
22
|
-
* _experiments: {
|
|
23
|
-
* replaysOnErrorSampleRate: 1.0,
|
|
24
|
-
* replaysSessionSampleRate: 1.0,
|
|
25
|
-
* },
|
|
26
|
-
* integrations: [mobileReplayIntegration({
|
|
27
|
-
* // Adjust the default options
|
|
28
|
-
* })],
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @experimental
|
|
33
|
-
*/
|
|
34
|
-
export declare const mobileReplayIntegration: (initOptions?: MobileReplayOptions) => MobileReplayIntegration;
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=mobilereplay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobilereplay.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/mobilereplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyC,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAQhG,eAAO,MAAM,8BAA8B,iBAAiB,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAOD,KAAK,uBAAuB,GAAG,mBAAmB,GAAG;IACnD,OAAO,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;CACxC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,uBAAuB,iBAAiB,mBAAmB,KAAoB,uBAqE3F,CAAC"}
|