@sentry/react-native 6.15.0 → 7.0.0-beta.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/android/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +11 -14
- package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +5 -1
- package/dist/js/client.js.map +1 -1
- package/dist/js/feedback/FeedbackButton.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackButton.js +1 -1
- package/dist/js/feedback/FeedbackButton.js.map +1 -1
- package/dist/js/feedback/FeedbackWidget.d.ts +1 -1
- package/dist/js/feedback/FeedbackWidget.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidget.js +60 -46
- package/dist/js/feedback/FeedbackWidget.js.map +1 -1
- package/dist/js/feedback/FeedbackWidget.styles.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidget.styles.js.map +1 -1
- package/dist/js/feedback/FeedbackWidget.theme.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidget.theme.js.map +1 -1
- package/dist/js/feedback/FeedbackWidget.types.d.ts +30 -30
- package/dist/js/feedback/FeedbackWidget.types.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidget.types.js.map +1 -1
- package/dist/js/feedback/FeedbackWidgetManager.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidgetManager.js +6 -3
- package/dist/js/feedback/FeedbackWidgetManager.js.map +1 -1
- package/dist/js/feedback/FeedbackWidgetProvider.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidgetProvider.js +9 -10
- package/dist/js/feedback/FeedbackWidgetProvider.js.map +1 -1
- package/dist/js/feedback/ScreenshotButton.d.ts.map +1 -1
- package/dist/js/feedback/ScreenshotButton.js.map +1 -1
- package/dist/js/feedback/defaults.d.ts +1 -1
- package/dist/js/feedback/defaults.d.ts.map +1 -1
- package/dist/js/feedback/defaults.js.map +1 -1
- package/dist/js/feedback/integration.d.ts +1 -1
- package/dist/js/feedback/integration.d.ts.map +1 -1
- package/dist/js/feedback/integration.js +1 -1
- package/dist/js/feedback/integration.js.map +1 -1
- package/dist/js/feedback/lazy.d.ts.map +1 -1
- package/dist/js/feedback/lazy.js.map +1 -1
- package/dist/js/feedback/utils.d.ts.map +1 -1
- package/dist/js/feedback/utils.js +2 -2
- package/dist/js/feedback/utils.js.map +1 -1
- package/dist/js/index.d.ts +3 -3
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +2 -2
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/appRegistry.d.ts.map +1 -1
- package/dist/js/integrations/appRegistry.js.map +1 -1
- package/dist/js/integrations/breadcrumbs.d.ts +47 -0
- package/dist/js/integrations/breadcrumbs.d.ts.map +1 -0
- package/dist/js/integrations/breadcrumbs.js +15 -0
- package/dist/js/integrations/breadcrumbs.js.map +1 -0
- package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +2 -1
- package/dist/js/integrations/debugsymbolicator.js.map +1 -1
- package/dist/js/integrations/debugsymbolicatorutils.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicatorutils.js +12 -2
- package/dist/js/integrations/debugsymbolicatorutils.js.map +1 -1
- package/dist/js/integrations/default.d.ts.map +1 -1
- package/dist/js/integrations/default.js +9 -5
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/integrations/devicecontext.d.ts.map +1 -1
- package/dist/js/integrations/devicecontext.js.map +1 -1
- package/dist/js/integrations/expocontext.d.ts.map +1 -1
- package/dist/js/integrations/expocontext.js.map +1 -1
- package/dist/js/integrations/exports.d.ts +2 -1
- package/dist/js/integrations/exports.d.ts.map +1 -1
- package/dist/js/integrations/exports.js +2 -1
- package/dist/js/integrations/exports.js.map +1 -1
- package/dist/js/integrations/modulesloader.d.ts.map +1 -1
- package/dist/js/integrations/modulesloader.js.map +1 -1
- package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
- package/dist/js/integrations/nativelinkederrors.js +4 -3
- package/dist/js/integrations/nativelinkederrors.js.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.js +2 -1
- package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlersutils.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlersutils.js.map +1 -1
- package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeinfo.js.map +1 -1
- package/dist/js/integrations/release.d.ts.map +1 -1
- package/dist/js/integrations/release.js.map +1 -1
- package/dist/js/integrations/rewriteframes.d.ts.map +1 -1
- package/dist/js/integrations/rewriteframes.js.map +1 -1
- package/dist/js/integrations/screenshot.d.ts.map +1 -1
- package/dist/js/integrations/screenshot.js +3 -3
- package/dist/js/integrations/screenshot.js.map +1 -1
- package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
- package/dist/js/integrations/sdkinfo.js.map +1 -1
- package/dist/js/integrations/spotlight.d.ts.map +1 -1
- package/dist/js/integrations/spotlight.js +8 -4
- package/dist/js/integrations/spotlight.js.map +1 -1
- package/dist/js/integrations/viewhierarchy.d.ts.map +1 -1
- package/dist/js/integrations/viewhierarchy.js +2 -1
- package/dist/js/integrations/viewhierarchy.js.map +1 -1
- package/dist/js/options.d.ts +8 -1
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/profiling/cache.d.ts +1 -1
- package/dist/js/profiling/convertHermesProfile.d.ts.map +1 -1
- package/dist/js/profiling/convertHermesProfile.js +18 -5
- package/dist/js/profiling/convertHermesProfile.js.map +1 -1
- package/dist/js/profiling/debugid.d.ts.map +1 -1
- package/dist/js/profiling/debugid.js +9 -1
- package/dist/js/profiling/debugid.js.map +1 -1
- package/dist/js/profiling/hermes.d.ts +1 -1
- package/dist/js/profiling/hermes.d.ts.map +1 -1
- package/dist/js/profiling/hermes.js.map +1 -1
- package/dist/js/profiling/integration.d.ts.map +1 -1
- package/dist/js/profiling/integration.js +2 -1
- package/dist/js/profiling/integration.js.map +1 -1
- package/dist/js/profiling/types.d.ts.map +1 -1
- package/dist/js/profiling/types.js.map +1 -1
- package/dist/js/profiling/utils.d.ts.map +1 -1
- package/dist/js/profiling/utils.js +15 -17
- package/dist/js/profiling/utils.js.map +1 -1
- package/dist/js/replay/CustomMask.d.ts.map +1 -1
- package/dist/js/replay/CustomMask.js +1 -1
- package/dist/js/replay/CustomMask.js.map +1 -1
- package/dist/js/replay/browserReplay.d.ts +13 -1
- package/dist/js/replay/browserReplay.d.ts.map +1 -1
- package/dist/js/replay/browserReplay.js +26 -0
- package/dist/js/replay/browserReplay.js.map +1 -1
- package/dist/js/replay/mobilereplay.d.ts.map +1 -1
- package/dist/js/replay/mobilereplay.js +2 -7
- package/dist/js/replay/mobilereplay.js.map +1 -1
- package/dist/js/replay/networkUtils.d.ts.map +1 -1
- package/dist/js/replay/networkUtils.js +4 -11
- package/dist/js/replay/networkUtils.js.map +1 -1
- package/dist/js/replay/replayInterface.d.ts +52 -0
- package/dist/js/replay/replayInterface.d.ts.map +1 -0
- package/dist/js/replay/replayInterface.js +2 -0
- package/dist/js/replay/replayInterface.js.map +1 -0
- package/dist/js/replay/xhrUtils.d.ts.map +1 -1
- package/dist/js/replay/xhrUtils.js.map +1 -1
- package/dist/js/scopeSync.d.ts.map +1 -1
- package/dist/js/scopeSync.js +7 -1
- package/dist/js/scopeSync.js.map +1 -1
- package/dist/js/sdk.d.ts +1 -6
- package/dist/js/sdk.d.ts.map +1 -1
- package/dist/js/sdk.js +3 -16
- package/dist/js/sdk.js.map +1 -1
- package/dist/js/tools/ModulesCollector.js +1 -0
- package/dist/js/tools/ModulesCollector.js.map +1 -1
- package/dist/js/tools/collectModules.js +1 -0
- package/dist/js/tools/collectModules.js.map +1 -1
- package/dist/js/tools/enableLogger.js +1 -0
- package/dist/js/tools/enableLogger.js.map +1 -1
- package/dist/js/tools/metroMiddleware.js +2 -1
- package/dist/js/tools/metroMiddleware.js.map +1 -1
- package/dist/js/tools/metroconfig.d.ts.map +1 -1
- package/dist/js/tools/metroconfig.js +6 -4
- package/dist/js/tools/metroconfig.js.map +1 -1
- package/dist/js/tools/sentryBabelTransformer.js +1 -0
- package/dist/js/tools/sentryBabelTransformer.js.map +1 -1
- package/dist/js/tools/sentryBabelTransformerUtils.d.ts.map +1 -1
- package/dist/js/tools/sentryBabelTransformerUtils.js +2 -1
- package/dist/js/tools/sentryBabelTransformerUtils.js.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.d.ts.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.js +1 -0
- package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
- package/dist/js/tools/utils.js +1 -0
- package/dist/js/tools/utils.js.map +1 -1
- package/dist/js/tools/vendor/expo/expoconfig.js +1 -0
- package/dist/js/tools/vendor/expo/expoconfig.js.map +1 -1
- package/dist/js/tools/vendor/metro/metroBabelTransformer.js +1 -0
- package/dist/js/tools/vendor/metro/metroBabelTransformer.js.map +1 -1
- package/dist/js/tools/vendor/metro/utils.d.ts.map +1 -1
- package/dist/js/tools/vendor/metro/utils.js +1 -0
- package/dist/js/tools/vendor/metro/utils.js.map +1 -1
- package/dist/js/touchevents.d.ts.map +1 -1
- package/dist/js/touchevents.js +4 -0
- package/dist/js/touchevents.js.map +1 -1
- package/dist/js/tracing/gesturetracing.d.ts.map +1 -1
- package/dist/js/tracing/gesturetracing.js.map +1 -1
- package/dist/js/tracing/integrations/appStart.d.ts +1 -1
- package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
- package/dist/js/tracing/integrations/appStart.js +10 -3
- package/dist/js/tracing/integrations/appStart.js.map +1 -1
- package/dist/js/tracing/integrations/nativeFrames.d.ts.map +1 -1
- package/dist/js/tracing/integrations/nativeFrames.js.map +1 -1
- package/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
- package/dist/js/tracing/integrations/stalltracking.d.ts.map +1 -1
- package/dist/js/tracing/integrations/stalltracking.js.map +1 -1
- package/dist/js/tracing/integrations/timeToDisplayIntegration.d.ts.map +1 -1
- package/dist/js/tracing/integrations/timeToDisplayIntegration.js +14 -10
- package/dist/js/tracing/integrations/timeToDisplayIntegration.js.map +1 -1
- package/dist/js/tracing/integrations/userInteraction.d.ts.map +1 -1
- package/dist/js/tracing/integrations/userInteraction.js.map +1 -1
- package/dist/js/tracing/onSpanEndUtils.d.ts +1 -1
- package/dist/js/tracing/onSpanEndUtils.d.ts.map +1 -1
- package/dist/js/tracing/onSpanEndUtils.js +2 -1
- package/dist/js/tracing/onSpanEndUtils.js.map +1 -1
- package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnativenavigation.js +1 -1
- package/dist/js/tracing/reactnativenavigation.js.map +1 -1
- package/dist/js/tracing/reactnativeprofiler.d.ts +3 -1
- package/dist/js/tracing/reactnativeprofiler.d.ts.map +1 -1
- package/dist/js/tracing/reactnativeprofiler.js +2 -1
- package/dist/js/tracing/reactnativeprofiler.js.map +1 -1
- package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
- package/dist/js/tracing/reactnativetracing.js.map +1 -1
- package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnavigation.js +5 -4
- package/dist/js/tracing/reactnavigation.js.map +1 -1
- package/dist/js/tracing/span.d.ts.map +1 -1
- package/dist/js/tracing/span.js +5 -5
- package/dist/js/tracing/span.js.map +1 -1
- package/dist/js/tracing/timeToDisplayFallback.d.ts +1 -1
- package/dist/js/tracing/timeToDisplayFallback.d.ts.map +1 -1
- package/dist/js/tracing/timeToDisplayFallback.js.map +1 -1
- package/dist/js/tracing/timetodisplay.d.ts.map +1 -1
- package/dist/js/tracing/timetodisplay.js +13 -13
- package/dist/js/tracing/timetodisplay.js.map +1 -1
- package/dist/js/tracing/timetodisplaynative.d.ts.map +1 -1
- package/dist/js/tracing/timetodisplaynative.js.map +1 -1
- package/dist/js/tracing/utils.d.ts.map +1 -1
- package/dist/js/tracing/utils.js.map +1 -1
- package/dist/js/transports/encodePolyfill.d.ts +4 -0
- package/dist/js/transports/encodePolyfill.d.ts.map +1 -1
- package/dist/js/transports/encodePolyfill.js +17 -3
- package/dist/js/transports/encodePolyfill.js.map +1 -1
- package/dist/js/transports/native.d.ts.map +1 -1
- package/dist/js/transports/native.js.map +1 -1
- package/dist/js/utils/AsyncExpiringMap.d.ts.map +1 -1
- package/dist/js/utils/AsyncExpiringMap.js +8 -4
- package/dist/js/utils/AsyncExpiringMap.js.map +1 -1
- package/dist/js/utils/carrier.d.ts +5 -0
- package/dist/js/utils/carrier.d.ts.map +1 -0
- package/dist/js/utils/carrier.js +11 -0
- package/dist/js/utils/carrier.js.map +1 -0
- package/dist/js/utils/encode.d.ts +5 -0
- package/dist/js/utils/encode.d.ts.map +1 -0
- package/dist/js/utils/encode.js +13 -0
- package/dist/js/utils/encode.js.map +1 -0
- package/dist/js/utils/envelope.d.ts.map +1 -1
- package/dist/js/utils/envelope.js +1 -2
- package/dist/js/utils/envelope.js.map +1 -1
- package/dist/js/utils/environment.d.ts.map +1 -1
- package/dist/js/utils/environment.js +5 -6
- package/dist/js/utils/environment.js.map +1 -1
- package/dist/js/utils/rnlibraries.d.ts.map +1 -1
- package/dist/js/utils/rnlibraries.js.map +1 -1
- package/dist/js/utils/safe.d.ts.map +1 -1
- package/dist/js/utils/safe.js.map +1 -1
- package/dist/js/utils/worldwide.d.ts +3 -2
- package/dist/js/utils/worldwide.d.ts.map +1 -1
- package/dist/js/utils/worldwide.js.map +1 -1
- package/dist/js/vendor/base64-js/fromByteArray.d.ts.map +1 -1
- package/dist/js/vendor/base64-js/fromByteArray.js +6 -0
- package/dist/js/vendor/base64-js/fromByteArray.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.map +1 -1
- package/dist/js/wrapper.js +10 -8
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentryVersion.m +1 -1
- package/package.json +9 -10
- package/plugin/build/withSentry.js +3 -3
- package/plugin/build/withSentryAndroidGradlePlugin.js +3 -3
- package/scripts/expo-upload-sourcemaps.js +2 -2
- package/src/js/NativeRNSentry.ts +0 -1
- package/ts3.8/dist/js/feedback/FeedbackWidget.d.ts +1 -1
- package/ts3.8/dist/js/feedback/FeedbackWidget.types.d.ts +30 -30
- package/ts3.8/dist/js/feedback/defaults.d.ts +1 -1
- package/ts3.8/dist/js/feedback/integration.d.ts +1 -1
- package/ts3.8/dist/js/index.d.ts +3 -3
- package/ts3.8/dist/js/integrations/breadcrumbs.d.ts +47 -0
- package/ts3.8/dist/js/integrations/exports.d.ts +2 -1
- package/ts3.8/dist/js/options.d.ts +8 -1
- package/ts3.8/dist/js/profiling/cache.d.ts +1 -1
- package/ts3.8/dist/js/profiling/hermes.d.ts +1 -1
- package/ts3.8/dist/js/replay/browserReplay.d.ts +13 -1
- package/ts3.8/dist/js/replay/replayInterface.d.ts +52 -0
- package/ts3.8/dist/js/sdk.d.ts +1 -6
- package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +1 -1
- package/ts3.8/dist/js/tracing/integrations/stalltracking.d.ts +1 -1
- package/ts3.8/dist/js/tracing/onSpanEndUtils.d.ts +1 -1
- package/ts3.8/dist/js/tracing/reactnativeprofiler.d.ts +3 -1
- package/ts3.8/dist/js/tracing/timeToDisplayFallback.d.ts +1 -1
- package/ts3.8/dist/js/transports/encodePolyfill.d.ts +4 -0
- package/ts3.8/dist/js/utils/carrier.d.ts +5 -0
- package/ts3.8/dist/js/utils/encode.d.ts +5 -0
- package/ts3.8/dist/js/utils/worldwide.d.ts +3 -2
- package/ts3.8/dist/js/version.d.ts +1 -1
package/ts3.8/dist/js/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type { Breadcrumb,
|
|
2
|
-
export { addBreadcrumb, captureException, captureEvent, captureFeedback, captureMessage, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, getRootSpan, withActiveSpan, suppressTracing, spanToJSON, spanIsSampled, setMeasurement, getCurrentScope, getGlobalScope, getIsolationScope, getClient, setCurrentClient, addEventProcessor,
|
|
1
|
+
export type { Breadcrumb, SdkInfo, Event, Exception, SendFeedbackParams, SeverityLevel, Span, StackFrame, Stacktrace, Thread, User, UserFeedback, ErrorEvent, TransactionEvent, } from '@sentry/core';
|
|
2
|
+
export { addBreadcrumb, captureException, captureEvent, captureFeedback, captureMessage, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, getRootSpan, withActiveSpan, suppressTracing, spanToJSON, spanIsSampled, setMeasurement, getCurrentScope, getGlobalScope, getIsolationScope, getClient, setCurrentClient, addEventProcessor, lastEventId, } from '@sentry/core';
|
|
3
3
|
export { ErrorBoundary, withErrorBoundary, createReduxEnhancer, Profiler, useProfiler, withProfiler, } from '@sentry/react';
|
|
4
4
|
export * from './integrations/exports';
|
|
5
5
|
export { SDK_NAME, SDK_VERSION } from './version';
|
|
6
6
|
export type { ReactNativeOptions } from './options';
|
|
7
7
|
export { ReactNativeClient } from './client';
|
|
8
|
-
export { init, wrap, nativeCrash, flush, close,
|
|
8
|
+
export { init, wrap, nativeCrash, flush, close, withScope, crashedLastRun } from './sdk';
|
|
9
9
|
export { TouchEventBoundary, withTouchEventBoundary } from './touchevents';
|
|
10
10
|
export { reactNativeTracingIntegration, getCurrentReactNativeTracingIntegration, getReactNativeTracingIntegration, reactNavigationIntegration, reactNativeNavigationIntegration, sentryTraceGesture, TimeToInitialDisplay, TimeToFullDisplay, startTimeToInitialDisplaySpan, startTimeToFullDisplaySpan, startIdleNavigationSpan, startIdleSpan, getDefaultIdleNavigationSpanOptions, createTimeToFullDisplay, createTimeToInitialDisplay, } from './tracing';
|
|
11
11
|
export type { TimeToDisplayProps } from './tracing';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Integration } from '@sentry/core';
|
|
2
|
+
interface BreadcrumbsOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Log calls to console.log, console.debug, and so on.
|
|
5
|
+
*/
|
|
6
|
+
console: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Log all click and keypress events.
|
|
9
|
+
*
|
|
10
|
+
* Only available on web. In React Native this is a no-op.
|
|
11
|
+
*/
|
|
12
|
+
dom: boolean | {
|
|
13
|
+
serializeAttribute?: string | string[];
|
|
14
|
+
maxStringLength?: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Log HTTP requests done with the global Fetch API.
|
|
18
|
+
*
|
|
19
|
+
* Disabled by default in React Native because fetch is built on XMLHttpRequest.
|
|
20
|
+
* Enabled by default on web.
|
|
21
|
+
*
|
|
22
|
+
* Setting `fetch: true` and `xhr: true` will cause duplicates in React Native.
|
|
23
|
+
*/
|
|
24
|
+
fetch: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Log calls to history.pushState and related APIs.
|
|
27
|
+
*
|
|
28
|
+
* Only available on web. In React Native this is a no-op.
|
|
29
|
+
*/
|
|
30
|
+
history: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Log whenever we send an event to the server.
|
|
33
|
+
*/
|
|
34
|
+
sentry: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Log HTTP requests done with the XHR API.
|
|
37
|
+
*
|
|
38
|
+
* Because React Native global fetch is built on XMLHttpRequest,
|
|
39
|
+
* this will also log `fetch` network requests.
|
|
40
|
+
*
|
|
41
|
+
* Setting `fetch: true` and `xhr: true` will cause duplicates in React Native.
|
|
42
|
+
*/
|
|
43
|
+
xhr: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const breadcrumbsIntegration: (options?: Partial<BreadcrumbsOptions>) => Integration;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -22,5 +22,6 @@ export { userInteractionIntegration } from '../tracing/integrations/userInteract
|
|
|
22
22
|
export { createReactNativeRewriteFrames } from './rewriteframes';
|
|
23
23
|
export { appRegistryIntegration } from './appRegistry';
|
|
24
24
|
export { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayIntegration';
|
|
25
|
-
export { breadcrumbsIntegration
|
|
25
|
+
export { breadcrumbsIntegration } from './breadcrumbs';
|
|
26
|
+
export { browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, extraErrorDataIntegration, } from '@sentry/react';
|
|
26
27
|
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -198,6 +198,13 @@ export interface BaseReactNativeOptions {
|
|
|
198
198
|
* 1.0 will record all sessions and 0 will record none.
|
|
199
199
|
*/
|
|
200
200
|
replaysOnErrorSampleRate?: number;
|
|
201
|
+
/**
|
|
202
|
+
* Controls how many milliseconds to wait before shutting down. The default is 2 seconds. Setting this too low can cause
|
|
203
|
+
* problems for sending events from command line applications. Setting it too
|
|
204
|
+
* high can cause the application to block for users with network connectivity
|
|
205
|
+
* problems.
|
|
206
|
+
*/
|
|
207
|
+
shutdownTimeout?: number;
|
|
201
208
|
/**
|
|
202
209
|
* Options which are in beta, or otherwise not guaranteed to be stable.
|
|
203
210
|
*/
|
|
@@ -240,7 +247,7 @@ export interface ReactNativeClientOptions extends Omit<ClientOptions<ReactNative
|
|
|
240
247
|
}
|
|
241
248
|
export interface ReactNativeWrapperOptions {
|
|
242
249
|
/** Props for the root React profiler */
|
|
243
|
-
profilerProps?: ProfilerProps
|
|
250
|
+
profilerProps?: Omit<ProfilerProps, 'updateProps' | 'children' | 'name'>;
|
|
244
251
|
/** Props for the root touch event boundary */
|
|
245
252
|
touchEventBoundaryProps?: TouchEventBoundaryProps;
|
|
246
253
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AndroidCombinedProfileEvent, CombinedProfileEvent } from './types';
|
|
2
2
|
export declare const PROFILE_QUEUE: {
|
|
3
|
-
get: (key: string) => AndroidCombinedProfileEvent | CombinedProfileEvent;
|
|
3
|
+
get: (key: string) => AndroidCombinedProfileEvent | CombinedProfileEvent | undefined;
|
|
4
4
|
add: (key: string, value: AndroidCombinedProfileEvent | CombinedProfileEvent) => void;
|
|
5
5
|
delete: (key: string) => boolean;
|
|
6
6
|
clear: () => void;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { replayIntegration } from '@sentry/react';
|
|
2
|
-
|
|
2
|
+
import type { Replay } from './replayInterface';
|
|
3
|
+
/**
|
|
4
|
+
* ReplayConfiguration for browser replay integration.
|
|
5
|
+
*
|
|
6
|
+
* See the [Configuration documentation](https://docs.sentry.io/platforms/javascript/session-replay/configuration/) for more information.
|
|
7
|
+
*/
|
|
8
|
+
type ReplayConfiguration = Parameters<typeof replayIntegration>[0];
|
|
9
|
+
/**
|
|
10
|
+
* Browser Replay integration for React Native.
|
|
11
|
+
*
|
|
12
|
+
* See the [Browser Replay documentation](https://docs.sentry.io/platforms/javascript/session-replay/) for more information.
|
|
13
|
+
*/
|
|
14
|
+
declare const browserReplayIntegration: (options?: ReplayConfiguration) => Replay;
|
|
3
15
|
export { browserReplayIntegration };
|
|
4
16
|
//# sourceMappingURL=browserReplay.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Integration, ReplayRecordingMode } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* Common interface for React Native Replay integrations.
|
|
4
|
+
*
|
|
5
|
+
* Both browser and mobile replay integrations should implement this interface
|
|
6
|
+
* to allow user manually control the replay.
|
|
7
|
+
*/
|
|
8
|
+
export interface Replay extends Integration {
|
|
9
|
+
/**
|
|
10
|
+
* Start a replay regardless of sampling rate. Calling this will always
|
|
11
|
+
* create a new session. Will log a message if replay is already in progress.
|
|
12
|
+
*
|
|
13
|
+
* Creates or loads a session, attaches listeners to varying events (DOM,
|
|
14
|
+
* PerformanceObserver, Recording, Sentry SDK, etc)
|
|
15
|
+
*/
|
|
16
|
+
start(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Start replay buffering. Buffers until `flush()` is called or, if
|
|
19
|
+
* `replaysOnErrorSampleRate` > 0, until an error occurs.
|
|
20
|
+
*/
|
|
21
|
+
startBuffering(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Currently, this needs to be manually called (e.g. for tests). Sentry SDK
|
|
24
|
+
* does not support a teardown
|
|
25
|
+
*/
|
|
26
|
+
stop(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* If not in "session" recording mode, flush event buffer which will create a new replay.
|
|
29
|
+
* If replay is not enabled, a new session replay is started.
|
|
30
|
+
* Unless `continueRecording` is false, the replay will continue to record and
|
|
31
|
+
* behave as a "session"-based replay.
|
|
32
|
+
*
|
|
33
|
+
* Otherwise, queue up a flush.
|
|
34
|
+
*/
|
|
35
|
+
flush(options?: {
|
|
36
|
+
continueRecording?: boolean;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Get the current session ID.
|
|
40
|
+
*/
|
|
41
|
+
getReplayId(): string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Get the current recording mode. This can be either `session` or `buffer`.
|
|
44
|
+
*
|
|
45
|
+
* `session`: Recording the whole session, sending it continuously
|
|
46
|
+
* `buffer`: Always keeping the last 60s of recording, requires:
|
|
47
|
+
* - having replaysOnErrorSampleRate > 0 to capture replay when an error occurs
|
|
48
|
+
* - or calling `flush()` to send the replay
|
|
49
|
+
*/
|
|
50
|
+
getRecordingMode(): ReplayRecordingMode | undefined;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=replayInterface.d.ts.map
|
package/ts3.8/dist/js/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Scope
|
|
1
|
+
import type { Scope } from '@sentry/core';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import type { ReactNativeOptions, ReactNativeWrapperOptions } from './options';
|
|
4
4
|
/**
|
|
@@ -23,11 +23,6 @@ export declare function flush(): Promise<boolean>;
|
|
|
23
23
|
* Closes the SDK, stops sending events.
|
|
24
24
|
*/
|
|
25
25
|
export declare function close(): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Captures user feedback and sends it to Sentry.
|
|
28
|
-
* @deprecated Use `Sentry.captureFeedback` instead.
|
|
29
|
-
*/
|
|
30
|
-
export declare function captureUserFeedback(feedback: UserFeedback): void;
|
|
31
26
|
/**
|
|
32
27
|
* Creates a new scope with and executes the given operation within.
|
|
33
28
|
* The scope is automatically removed once the operation
|
|
@@ -26,6 +26,6 @@ export declare const stallTrackingIntegration: ({ minimumStallThresholdMs, }?: {
|
|
|
26
26
|
* How long in milliseconds an event loop iteration can be delayed for before being considered a "stall."
|
|
27
27
|
* @default 50
|
|
28
28
|
*/
|
|
29
|
-
minimumStallThresholdMs?: number;
|
|
29
|
+
minimumStallThresholdMs?: number | undefined;
|
|
30
30
|
}) => Integration;
|
|
31
31
|
//# sourceMappingURL=stalltracking.d.ts.map
|
|
@@ -4,7 +4,7 @@ import type { Client, Span } from '@sentry/core';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare function onThisSpanEnd(client: Client, span: Span, callback: (span: Span) => void): void;
|
|
6
6
|
export declare const adjustTransactionDuration: (client: Client, span: Span, maxDurationMs: number) => void;
|
|
7
|
-
export declare const ignoreEmptyBackNavigation: (client: Client | undefined, span: Span) => void;
|
|
7
|
+
export declare const ignoreEmptyBackNavigation: (client: Client | undefined, span: Span | undefined) => void;
|
|
8
8
|
/**
|
|
9
9
|
* Idle Transaction callback to only sample transactions with child spans.
|
|
10
10
|
* To avoid side effects of other callbacks this should be hooked as the last callback.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Profiler } from '@sentry/react';
|
|
2
|
+
type ProfilerConstructorProps = ConstructorParameters<typeof Profiler>[0];
|
|
2
3
|
/**
|
|
3
4
|
* Custom profiler for the React Native app root.
|
|
4
5
|
*/
|
|
5
6
|
export declare class ReactNativeProfiler extends Profiler {
|
|
6
7
|
readonly name: string;
|
|
7
|
-
constructor(props:
|
|
8
|
+
constructor(props: ProfilerConstructorProps);
|
|
8
9
|
/**
|
|
9
10
|
* Get the app root mount time.
|
|
10
11
|
*/
|
|
@@ -14,4 +15,5 @@ export declare class ReactNativeProfiler extends Profiler {
|
|
|
14
15
|
*/
|
|
15
16
|
private _reportAppStart;
|
|
16
17
|
}
|
|
18
|
+
export {};
|
|
17
19
|
//# sourceMappingURL=reactnativeprofiler.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const addTimeToInitialDisplayFallback: (spanId: string, timestampSeconds: Promise<number | undefined | null>) => void;
|
|
2
|
-
export declare const getTimeToInitialDisplayFallback: (spanId: string) => Promise<number | undefined>;
|
|
2
|
+
export declare const getTimeToInitialDisplayFallback: (spanId: string) => Promise<number | undefined | null>;
|
|
3
3
|
//# sourceMappingURL=timeToDisplayFallback.d.ts.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { RN_GLOBAL_OBJ } from '../utils/worldwide';
|
|
1
2
|
export declare const useEncodePolyfill: () => void;
|
|
3
|
+
export declare const globalEncodeFactory: (Encoder: EncoderClass) => (text: string) => Uint8Array;
|
|
4
|
+
type EncoderClass = Required<typeof RN_GLOBAL_OBJ>['TextEncoder'];
|
|
2
5
|
export declare const encodePolyfill: (text: string) => Uint8Array;
|
|
6
|
+
export {};
|
|
3
7
|
//# sourceMappingURL=encodePolyfill.d.ts.map
|
|
@@ -33,8 +33,9 @@ export interface ReactNativeInternalGlobal extends InternalGlobal {
|
|
|
33
33
|
alert?: (message: string) => void;
|
|
34
34
|
}
|
|
35
35
|
type TextEncoder = {
|
|
36
|
-
new ():
|
|
37
|
-
|
|
36
|
+
new (): {
|
|
37
|
+
encode(input?: string): Uint8Array;
|
|
38
|
+
};
|
|
38
39
|
};
|
|
39
40
|
/** Get's the global object for the current JavaScript runtime */
|
|
40
41
|
export declare const RN_GLOBAL_OBJ: ReactNativeInternalGlobal;
|
|
@@ -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 = "
|
|
3
|
+
export declare const SDK_VERSION = "7.0.0-beta.0";
|
|
4
4
|
//# sourceMappingURL=version.d.ts.map
|