@sentry/react-native 5.16.0 → 5.18.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 +64 -0
- package/RNSentry.podspec +1 -0
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +2 -2
- package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +4 -3
- package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +6 -5
- package/dist/js/NativeRNSentry.d.ts +2 -2
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +21 -6
- package/dist/js/integrations/debugsymbolicator.js.map +1 -1
- package/dist/js/integrations/default.d.ts.map +1 -1
- package/dist/js/integrations/default.js +13 -2
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/integrations/index.d.ts +1 -0
- package/dist/js/integrations/index.d.ts.map +1 -1
- package/dist/js/integrations/index.js +1 -0
- package/dist/js/integrations/index.js.map +1 -1
- package/dist/js/integrations/nativelinkederrors.d.ts +6 -2
- package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
- package/dist/js/integrations/nativelinkederrors.js +63 -72
- package/dist/js/integrations/nativelinkederrors.js.map +1 -1
- package/dist/js/integrations/spotlight.d.ts +18 -0
- package/dist/js/integrations/spotlight.d.ts.map +1 -0
- package/dist/js/integrations/spotlight.js +84 -0
- package/dist/js/integrations/spotlight.js.map +1 -0
- package/dist/js/options.d.ts +19 -0
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/sdk.d.ts.map +1 -1
- package/dist/js/sdk.js +4 -1
- package/dist/js/sdk.js.map +1 -1
- package/dist/js/tools/metroconfig.d.ts +19 -0
- package/dist/js/tools/metroconfig.d.ts.map +1 -0
- package/dist/js/tools/metroconfig.js +67 -0
- package/dist/js/tools/metroconfig.js.map +1 -0
- package/dist/js/tools/sentryMetroSerializer.d.ts +7 -4
- package/dist/js/tools/sentryMetroSerializer.d.ts.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.js +3 -19
- package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
- package/dist/js/utils/worldwide.d.ts +2 -0
- package/dist/js/utils/worldwide.d.ts.map +1 -1
- package/dist/js/utils/worldwide.js.map +1 -1
- package/dist/js/utils/xhr.d.ts +20 -0
- package/dist/js/utils/xhr.d.ts.map +1 -0
- package/dist/js/utils/xhr.js +31 -0
- package/dist/js/utils/xhr.js.map +1 -0
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts +2 -2
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +14 -18
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry.mm +5 -8
- package/metro.d.ts +1 -1
- package/metro.js +1 -1
- package/package.json +7 -3
- package/scripts/expo-upload-sourcemaps.js +54 -12
- package/scripts/sentry-xcode-debug-files.sh +5 -4
- package/scripts/sentry-xcode.sh +2 -2
- package/sentry.gradle +3 -4
- package/src/js/NativeRNSentry.ts +2 -2
- package/ts3.8/dist/js/NativeRNSentry.d.ts +2 -2
- package/ts3.8/dist/js/integrations/index.d.ts +1 -0
- package/ts3.8/dist/js/integrations/nativelinkederrors.d.ts +6 -2
- package/ts3.8/dist/js/integrations/spotlight.d.ts +18 -0
- package/ts3.8/dist/js/options.d.ts +19 -0
- package/ts3.8/dist/js/utils/worldwide.d.ts +2 -0
- package/ts3.8/dist/js/utils/xhr.d.ts +20 -0
- package/ts3.8/dist/js/version.d.ts +1 -1
- package/ts3.8/dist/js/wrapper.d.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventProcessor, Hub, Integration } from '@sentry/types';
|
|
1
|
+
import type { Client, Event, EventHint, EventProcessor, Hub, Integration } from '@sentry/types';
|
|
2
2
|
interface LinkedErrorsOptions {
|
|
3
3
|
key: string;
|
|
4
4
|
limit: number;
|
|
@@ -25,7 +25,11 @@ export declare class NativeLinkedErrors implements Integration {
|
|
|
25
25
|
/**
|
|
26
26
|
* @inheritDoc
|
|
27
27
|
*/
|
|
28
|
-
setupOnce(
|
|
28
|
+
setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void, _getCurrentHub: () => Hub): void;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
preprocessEvent(event: Event, hint: EventHint | undefined, client: Client): void;
|
|
29
33
|
/**
|
|
30
34
|
* Enriches passed event with linked exceptions and native debug meta images.
|
|
31
35
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Integration } from '@sentry/types';
|
|
2
|
+
type SpotlightReactNativeIntegrationOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* The URL of the Sidecar instance to connect and forward events to.
|
|
5
|
+
* If not set, Spotlight will try to connect to the Sidecar running on localhost:8969.
|
|
6
|
+
*
|
|
7
|
+
* @default "http://localhost:8969/stream"
|
|
8
|
+
*/
|
|
9
|
+
sidecarUrl?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Use this integration to send errors and transactions to Spotlight.
|
|
13
|
+
*
|
|
14
|
+
* Learn more about spotlight at https://spotlightjs.com
|
|
15
|
+
*/
|
|
16
|
+
export declare function Spotlight({ sidecarUrl, }?: SpotlightReactNativeIntegrationOptions): Integration;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=spotlight.d.ts.map
|
|
@@ -134,6 +134,25 @@ export interface BaseReactNativeOptions {
|
|
|
134
134
|
* @default false
|
|
135
135
|
*/
|
|
136
136
|
enableCaptureFailedRequests?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* This option will enable forwarding captured Sentry events to Spotlight.
|
|
139
|
+
*
|
|
140
|
+
* More details: https://spotlightjs.com/
|
|
141
|
+
*
|
|
142
|
+
* IMPORTANT: Only set this option to `true` while developing, not in production!
|
|
143
|
+
*/
|
|
144
|
+
enableSpotlight?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* This option changes the default Spotlight Sidecar URL.
|
|
147
|
+
*
|
|
148
|
+
* By default, the SDK expects the Sidecar to be running
|
|
149
|
+
* on the same host as React Native Metro Dev Server.
|
|
150
|
+
*
|
|
151
|
+
* More details: https://spotlightjs.com/
|
|
152
|
+
*
|
|
153
|
+
* @default "http://localhost:8969/stream"
|
|
154
|
+
*/
|
|
155
|
+
spotlightSidecarUrl?: string;
|
|
137
156
|
}
|
|
138
157
|
export interface ReactNativeTransportOptions extends BrowserTransportOptions {
|
|
139
158
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react-native" />
|
|
1
2
|
import type { InternalGlobal } from '@sentry/utils';
|
|
2
3
|
import type { ErrorUtils } from 'react-native/types';
|
|
3
4
|
import type { ExpoGlobalObject } from './expoglobalobject';
|
|
@@ -13,6 +14,7 @@ export interface ReactNativeInternalGlobal extends InternalGlobal {
|
|
|
13
14
|
nativeFabricUIManager: unknown;
|
|
14
15
|
ErrorUtils?: ErrorUtils;
|
|
15
16
|
expo?: ExpoGlobalObject;
|
|
17
|
+
XMLHttpRequest?: typeof XMLHttpRequest;
|
|
16
18
|
}
|
|
17
19
|
/** Get's the global object for the current JavaScript runtime */
|
|
18
20
|
export declare const RN_GLOBAL_OBJ: ReactNativeInternalGlobal;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react-native" />
|
|
2
|
+
/**
|
|
3
|
+
* The DONE ready state for XmlHttpRequest
|
|
4
|
+
*
|
|
5
|
+
* Defining it here as a constant b/c XMLHttpRequest.DONE is not always defined
|
|
6
|
+
* (e.g. during testing, it is `undefined`)
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState}
|
|
9
|
+
*/
|
|
10
|
+
export declare const XHR_READYSTATE_DONE = 4;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new XMLHttpRequest object which is not instrumented by the SDK.
|
|
13
|
+
*
|
|
14
|
+
* This request won't be captured by the HttpClient Errors integration
|
|
15
|
+
* and won't be added to breadcrumbs and won't be traced.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createStealthXhr(customGlobal?: {
|
|
18
|
+
XMLHttpRequest?: typeof XMLHttpRequest;
|
|
19
|
+
}): XMLHttpRequest | null;
|
|
20
|
+
//# sourceMappingURL=xhr.d.ts.map
|
|
@@ -52,11 +52,11 @@ interface SentryNativeWrapper {
|
|
|
52
52
|
hermesProfile: Hermes.Profile;
|
|
53
53
|
nativeProfile?: NativeProfileEvent;
|
|
54
54
|
} | null;
|
|
55
|
-
fetchNativePackageName():
|
|
55
|
+
fetchNativePackageName(): string | null;
|
|
56
56
|
/**
|
|
57
57
|
* Fetches native stack frames and debug images for the instructions addresses.
|
|
58
58
|
*/
|
|
59
|
-
fetchNativeStackFramesBy(instructionsAddr: number[]):
|
|
59
|
+
fetchNativeStackFramesBy(instructionsAddr: number[]): NativeStackFrames | null;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Our internal interface for calling native functions
|