@sentry/react-native 7.3.0 → 7.5.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.
Files changed (78) hide show
  1. package/RNSentry.podspec +2 -2
  2. package/android/build.gradle +1 -1
  3. package/android/libs/replay-stubs.jar +0 -0
  4. package/android/replay-stubs/build.gradle +1 -1
  5. package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +67 -13
  6. package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
  7. package/android/src/main/java/io/sentry/react/replay/RNSentryReplayFragmentLifecycleTracer.java +137 -0
  8. package/dist/js/NativeRNSentry.d.ts +0 -1
  9. package/dist/js/NativeRNSentry.d.ts.map +1 -1
  10. package/dist/js/NativeRNSentry.js.map +1 -1
  11. package/dist/js/RNSentryReplayMaskNativeComponent.js +1 -1
  12. package/dist/js/RNSentryReplayMaskNativeComponent.js.map +1 -1
  13. package/dist/js/RNSentryReplayUnmaskNativeComponent.js +1 -1
  14. package/dist/js/RNSentryReplayUnmaskNativeComponent.js.map +1 -1
  15. package/dist/js/integrations/default.d.ts.map +1 -1
  16. package/dist/js/integrations/default.js +2 -1
  17. package/dist/js/integrations/default.js.map +1 -1
  18. package/dist/js/integrations/exports.d.ts +2 -0
  19. package/dist/js/integrations/exports.d.ts.map +1 -1
  20. package/dist/js/integrations/exports.js +2 -0
  21. package/dist/js/integrations/exports.js.map +1 -1
  22. package/dist/js/integrations/graphql.d.ts +11 -0
  23. package/dist/js/integrations/graphql.d.ts.map +1 -0
  24. package/dist/js/integrations/graphql.js +9 -0
  25. package/dist/js/integrations/graphql.js.map +1 -0
  26. package/dist/js/integrations/supabase.d.ts +12 -0
  27. package/dist/js/integrations/supabase.d.ts.map +1 -0
  28. package/dist/js/integrations/supabase.js +10 -0
  29. package/dist/js/integrations/supabase.js.map +1 -0
  30. package/dist/js/options.d.ts +25 -1
  31. package/dist/js/options.d.ts.map +1 -1
  32. package/dist/js/options.js.map +1 -1
  33. package/dist/js/replay/mobilereplay.d.ts +22 -0
  34. package/dist/js/replay/mobilereplay.d.ts.map +1 -1
  35. package/dist/js/replay/mobilereplay.js +1 -0
  36. package/dist/js/replay/mobilereplay.js.map +1 -1
  37. package/dist/js/replay/networkUtils.d.ts +0 -1
  38. package/dist/js/replay/networkUtils.d.ts.map +1 -1
  39. package/dist/js/sdk.d.ts.map +1 -1
  40. package/dist/js/sdk.js +1 -0
  41. package/dist/js/sdk.js.map +1 -1
  42. package/dist/js/tools/vendor/metro/utils.js +1 -1
  43. package/dist/js/tools/vendor/metro/utils.js.map +1 -1
  44. package/dist/js/tracing/timetodisplaynative.types.d.ts +0 -1
  45. package/dist/js/tracing/timetodisplaynative.types.d.ts.map +1 -1
  46. package/dist/js/vendor/react-native/index.d.ts +0 -1
  47. package/dist/js/vendor/react-native/index.d.ts.map +1 -1
  48. package/dist/js/version.d.ts +1 -1
  49. package/dist/js/version.js +1 -1
  50. package/dist/js/version.js.map +1 -1
  51. package/dist/js/wrapper.d.ts.map +1 -1
  52. package/dist/js/wrapper.js +2 -3
  53. package/dist/js/wrapper.js.map +1 -1
  54. package/ios/RNSentry+fetchNativeStack.m +0 -2
  55. package/ios/RNSentry.h +0 -1
  56. package/ios/RNSentry.mm +33 -9
  57. package/ios/RNSentryDependencyContainer.m +1 -1
  58. package/ios/RNSentryExperimentalOptions.h +9 -0
  59. package/ios/RNSentryExperimentalOptions.m +9 -0
  60. package/ios/RNSentryOnDrawReporter.m +1 -2
  61. package/ios/RNSentryReplay.h +5 -1
  62. package/ios/RNSentryReplay.mm +10 -6
  63. package/ios/RNSentryVersion.m +1 -1
  64. package/package.json +20 -18
  65. package/sentry.gradle +269 -277
  66. package/src/js/NativeRNSentry.ts +0 -1
  67. package/src/js/RNSentryReplayMaskNativeComponent.ts +1 -1
  68. package/src/js/RNSentryReplayUnmaskNativeComponent.ts +1 -1
  69. package/ts3.8/dist/js/NativeRNSentry.d.ts +0 -1
  70. package/ts3.8/dist/js/integrations/exports.d.ts +2 -0
  71. package/ts3.8/dist/js/integrations/graphql.d.ts +11 -0
  72. package/ts3.8/dist/js/integrations/supabase.d.ts +12 -0
  73. package/ts3.8/dist/js/options.d.ts +25 -1
  74. package/ts3.8/dist/js/replay/mobilereplay.d.ts +22 -0
  75. package/ts3.8/dist/js/replay/networkUtils.d.ts +0 -1
  76. package/ts3.8/dist/js/tracing/timetodisplaynative.types.d.ts +0 -1
  77. package/ts3.8/dist/js/vendor/react-native/index.d.ts +0 -1
  78. package/ts3.8/dist/js/version.d.ts +1 -1
package/RNSentry.podspec CHANGED
@@ -34,7 +34,7 @@ Pod::Spec.new do |s|
34
34
  s.homepage = "https://github.com/getsentry/sentry-react-native"
35
35
  s.source = { :git => 'https://github.com/getsentry/sentry-react-native.git', :tag => "#{s.version}"}
36
36
 
37
- s.ios.deployment_target = "11.0"
37
+ s.ios.deployment_target = "12.0"
38
38
  s.osx.deployment_target = "10.13"
39
39
  s.tvos.deployment_target = "11.0"
40
40
  s.visionos.deployment_target = "1.0" if s.respond_to?(:visionos)
@@ -46,7 +46,7 @@ Pod::Spec.new do |s|
46
46
 
47
47
  s.compiler_flags = other_cflags
48
48
 
49
- s.dependency 'Sentry/HybridSDK', '8.56.2'
49
+ s.dependency 'Sentry/HybridSDK', '8.57.1'
50
50
 
51
51
  if defined? install_modules_dependencies
52
52
  # Default React Native dependencies for 0.71 and above (new and legacy architecture)
@@ -55,5 +55,5 @@ android {
55
55
  dependencies {
56
56
  compileOnly files('libs/replay-stubs.jar')
57
57
  implementation 'com.facebook.react:react-native:+'
58
- api 'io.sentry:sentry-android:8.23.0'
58
+ api 'io.sentry:sentry-android:8.25.0'
59
59
  }
Binary file
@@ -18,5 +18,5 @@ tasks.named('jar', Jar) {
18
18
  }
19
19
 
20
20
  dependencies {
21
- compileOnly 'io.sentry:sentry:8.23.0'
21
+ compileOnly 'io.sentry:sentry:8.25.0'
22
22
  }
@@ -37,6 +37,7 @@ import io.sentry.ISentryExecutorService;
37
37
  import io.sentry.ISerializer;
38
38
  import io.sentry.Integration;
39
39
  import io.sentry.ScopesAdapter;
40
+ import io.sentry.ScreenshotStrategyType;
40
41
  import io.sentry.Sentry;
41
42
  import io.sentry.SentryDate;
42
43
  import io.sentry.SentryDateProvider;
@@ -62,11 +63,13 @@ import io.sentry.android.core.ViewHierarchyEventProcessor;
62
63
  import io.sentry.android.core.internal.debugmeta.AssetsDebugMetaLoader;
63
64
  import io.sentry.android.core.internal.util.SentryFrameMetricsCollector;
64
65
  import io.sentry.android.core.performance.AppStartMetrics;
66
+ import io.sentry.protocol.Geo;
65
67
  import io.sentry.protocol.SdkVersion;
66
68
  import io.sentry.protocol.SentryId;
67
69
  import io.sentry.protocol.SentryPackage;
68
70
  import io.sentry.protocol.User;
69
71
  import io.sentry.protocol.ViewHierarchy;
72
+ import io.sentry.react.replay.RNSentryReplayFragmentLifecycleTracer;
70
73
  import io.sentry.react.replay.RNSentryReplayMask;
71
74
  import io.sentry.react.replay.RNSentryReplayUnmask;
72
75
  import io.sentry.util.DebugMetaPropertiesApplier;
@@ -181,6 +184,23 @@ public class RNSentryModuleImpl {
181
184
  }
182
185
  }
183
186
 
187
+ private void initFragmentReplayTracking() {
188
+ final RNSentryReplayFragmentLifecycleTracer fragmentLifecycleTracer =
189
+ new RNSentryReplayFragmentLifecycleTracer(logger);
190
+
191
+ final @Nullable Activity currentActivity = getCurrentActivity();
192
+ if (!(currentActivity instanceof FragmentActivity)) {
193
+ return;
194
+ }
195
+
196
+ final @NotNull FragmentActivity fragmentActivity = (FragmentActivity) currentActivity;
197
+ final @Nullable FragmentManager supportFragmentManager =
198
+ fragmentActivity.getSupportFragmentManager();
199
+ if (supportFragmentManager != null) {
200
+ supportFragmentManager.registerFragmentLifecycleCallbacks(fragmentLifecycleTracer, true);
201
+ }
202
+ }
203
+
184
204
  public void initNativeReactNavigationNewFrameTracking(Promise promise) {
185
205
  this.initFragmentInitialFrameTracking();
186
206
  }
@@ -307,6 +327,7 @@ public class RNSentryModuleImpl {
307
327
  loadClass.isClassAvailable("io.sentry.android.replay.ReplayIntegration", logger);
308
328
  if (isReplayEnabled(replayOptions) && isReplayAvailable) {
309
329
  options.getReplayController().setBreadcrumbConverter(new RNSentryReplayBreadcrumbConverter());
330
+ initFragmentReplayTracking();
310
331
  }
311
332
 
312
333
  // Exclude Dev Server and Sentry Dsn request from Breadcrumbs
@@ -415,30 +436,46 @@ public class RNSentryModuleImpl {
415
436
  androidReplayOptions.addMaskViewClass("com.horcrux.svg.SvgView"); // react-native-svg
416
437
  }
417
438
 
439
+ if (rnMobileReplayOptions.hasKey("screenshotStrategy")) {
440
+ final String screenshotStrategyString = rnMobileReplayOptions.getString("screenshotStrategy");
441
+ final ScreenshotStrategyType screenshotStrategy =
442
+ parseScreenshotStrategy(screenshotStrategyString);
443
+ androidReplayOptions.setScreenshotStrategy(screenshotStrategy);
444
+ }
445
+
418
446
  androidReplayOptions.setMaskViewContainerClass(RNSentryReplayMask.class.getName());
419
447
  androidReplayOptions.setUnmaskViewContainerClass(RNSentryReplayUnmask.class.getName());
420
448
 
421
449
  return androidReplayOptions;
422
450
  }
423
451
 
452
+ private ScreenshotStrategyType parseScreenshotStrategy(@Nullable String strategyString) {
453
+ if (strategyString == null) {
454
+ return ScreenshotStrategyType.PIXEL_COPY;
455
+ }
456
+
457
+ switch (strategyString.toLowerCase(Locale.ROOT)) {
458
+ case "canvas":
459
+ return ScreenshotStrategyType.CANVAS;
460
+ default:
461
+ return ScreenshotStrategyType.PIXEL_COPY;
462
+ }
463
+ }
464
+
424
465
  private SentryReplayQuality parseReplayQuality(@Nullable String qualityString) {
425
466
  if (qualityString == null) {
426
467
  return SentryReplayQuality.MEDIUM;
427
468
  }
428
469
 
429
- try {
430
- switch (qualityString.toLowerCase(Locale.ROOT)) {
431
- case "low":
432
- return SentryReplayQuality.LOW;
433
- case "medium":
434
- return SentryReplayQuality.MEDIUM;
435
- case "high":
436
- return SentryReplayQuality.HIGH;
437
- default:
438
- return SentryReplayQuality.MEDIUM;
439
- }
440
- } catch (Exception e) {
441
- return SentryReplayQuality.MEDIUM;
470
+ switch (qualityString.toLowerCase(Locale.ROOT)) {
471
+ case "low":
472
+ return SentryReplayQuality.LOW;
473
+ case "medium":
474
+ return SentryReplayQuality.MEDIUM;
475
+ case "high":
476
+ return SentryReplayQuality.HIGH;
477
+ default:
478
+ return SentryReplayQuality.MEDIUM;
442
479
  }
443
480
  }
444
481
 
@@ -722,6 +759,23 @@ public class RNSentryModuleImpl {
722
759
  if (userKeys.hasKey("ip_address")) {
723
760
  userInstance.setIpAddress(userKeys.getString("ip_address"));
724
761
  }
762
+
763
+ if (userKeys.hasKey("geo")) {
764
+ ReadableMap geoMap = userKeys.getMap("geo");
765
+ if (geoMap != null) {
766
+ Geo geoData = new Geo();
767
+ if (geoMap.hasKey("city")) {
768
+ geoData.setCity(geoMap.getString("city"));
769
+ }
770
+ if (geoMap.hasKey("country_code")) {
771
+ geoData.setCountryCode(geoMap.getString("country_code"));
772
+ }
773
+ if (geoMap.hasKey("region")) {
774
+ geoData.setRegion(geoMap.getString("region"));
775
+ }
776
+ userInstance.setGeo(geoData);
777
+ }
778
+ }
725
779
  }
726
780
 
727
781
  if (userDataKeys != null) {
@@ -2,7 +2,7 @@ package io.sentry.react;
2
2
 
3
3
  class RNSentryVersion {
4
4
  static final String REACT_NATIVE_SDK_PACKAGE_NAME = "npm:@sentry/react-native";
5
- static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "7.3.0";
5
+ static final String REACT_NATIVE_SDK_PACKAGE_VERSION = "7.5.0";
6
6
  static final String NATIVE_SDK_NAME = "sentry.native.android.react-native";
7
7
  static final String ANDROID_SDK_NAME = "sentry.java.android.react-native";
8
8
  static final String REACT_NATIVE_SDK_NAME = "sentry.javascript.react-native";
@@ -0,0 +1,137 @@
1
+ package io.sentry.react.replay;
2
+
3
+ import android.os.Bundle;
4
+ import android.util.DisplayMetrics;
5
+ import android.view.View;
6
+ import android.view.ViewTreeObserver;
7
+ import androidx.annotation.NonNull;
8
+ import androidx.fragment.app.Fragment;
9
+ import androidx.fragment.app.FragmentManager;
10
+ import androidx.fragment.app.FragmentManager.FragmentLifecycleCallbacks;
11
+ import io.sentry.ILogger;
12
+ import io.sentry.ReplayController;
13
+ import io.sentry.ScopesAdapter;
14
+ import io.sentry.SentryLevel;
15
+ import io.sentry.android.replay.ReplayIntegration;
16
+ import java.lang.ref.WeakReference;
17
+ import org.jetbrains.annotations.NotNull;
18
+ import org.jetbrains.annotations.Nullable;
19
+
20
+ public class RNSentryReplayFragmentLifecycleTracer extends FragmentLifecycleCallbacks {
21
+ private @NotNull final ILogger logger;
22
+
23
+ private @Nullable ReplayIntegration replayIntegration;
24
+
25
+ private int lastWidth = -1;
26
+ private int lastHeight = -1;
27
+
28
+ private @Nullable WeakReference<View> currentViewRef;
29
+ private @Nullable ViewTreeObserver.OnGlobalLayoutListener currentListener;
30
+
31
+ public RNSentryReplayFragmentLifecycleTracer(@NotNull ILogger logger) {
32
+ this.logger = logger;
33
+ }
34
+
35
+ @Override
36
+ public void onFragmentViewCreated(
37
+ @NotNull FragmentManager fm,
38
+ @NotNull Fragment f,
39
+ @NotNull View v,
40
+ @Nullable Bundle savedInstanceState) {
41
+ // Add layout listener to detect configuration changes after detaching any previous one
42
+ detachLayoutChangeListener();
43
+ attachLayoutChangeListener(v);
44
+ }
45
+
46
+ @Override
47
+ public void onFragmentViewDestroyed(@NonNull FragmentManager fm, @NonNull Fragment f) {
48
+ detachLayoutChangeListener();
49
+ }
50
+
51
+ private void attachLayoutChangeListener(final View view) {
52
+ final WeakReference<View> weakView = new WeakReference<>(view);
53
+
54
+ final ViewTreeObserver.OnGlobalLayoutListener listener =
55
+ new ViewTreeObserver.OnGlobalLayoutListener() {
56
+ @Override
57
+ public void onGlobalLayout() {
58
+ final View v = weakView.get();
59
+ if (v != null) {
60
+ checkAndNotifyWindowSizeChange(v);
61
+ }
62
+ }
63
+ };
64
+
65
+ currentViewRef = new WeakReference<>(view);
66
+ currentListener = listener;
67
+
68
+ view.getViewTreeObserver().addOnGlobalLayoutListener(listener);
69
+ }
70
+
71
+ private void detachLayoutChangeListener() {
72
+ final View view = currentViewRef != null ? currentViewRef.get() : null;
73
+ if (view != null && currentListener != null) {
74
+ try {
75
+ ViewTreeObserver observer = view.getViewTreeObserver();
76
+ if (observer != null) {
77
+ observer.removeOnGlobalLayoutListener(currentListener);
78
+ }
79
+ } catch (Exception e) {
80
+ logger.log(SentryLevel.DEBUG, "Failed to remove layout change listener", e);
81
+ }
82
+ }
83
+
84
+ currentViewRef = null;
85
+ currentListener = null;
86
+ }
87
+
88
+ private void checkAndNotifyWindowSizeChange(View view) {
89
+ try {
90
+ DisplayMetrics metrics = view.getContext().getResources().getDisplayMetrics();
91
+ int currentWidth = metrics.widthPixels;
92
+ int currentHeight = metrics.heightPixels;
93
+
94
+ if (lastWidth == currentWidth && lastHeight == currentHeight) {
95
+ return;
96
+ }
97
+ lastWidth = currentWidth;
98
+ lastHeight = currentHeight;
99
+
100
+ notifyReplayIntegrationOfSizeChange(currentWidth, currentHeight);
101
+ } catch (Exception e) {
102
+ logger.log(SentryLevel.DEBUG, "Failed to check window size", e);
103
+ }
104
+ }
105
+
106
+ private void notifyReplayIntegrationOfSizeChange(int width, int height) {
107
+ if (replayIntegration == null) {
108
+ replayIntegration = getReplayIntegration();
109
+ }
110
+
111
+ if (replayIntegration == null) {
112
+ return;
113
+ }
114
+
115
+ try {
116
+ replayIntegration.onWindowSizeChanged(width, height);
117
+ } catch (Exception e) {
118
+ logger.log(SentryLevel.DEBUG, "Failed to notify replay integration of size change", e);
119
+ }
120
+ }
121
+
122
+ private @Nullable ReplayIntegration getReplayIntegration() {
123
+ try {
124
+ final ReplayController replayController =
125
+ ScopesAdapter.getInstance().getOptions().getReplayController();
126
+
127
+ if (replayController instanceof ReplayIntegration) {
128
+ return (ReplayIntegration) replayController;
129
+ } else {
130
+ logger.log(SentryLevel.DEBUG, "Error getting replay integration");
131
+ }
132
+ } catch (Exception e) {
133
+ logger.log(SentryLevel.DEBUG, "Error getting replay integration", e);
134
+ }
135
+ return null;
136
+ }
137
+ }
@@ -124,7 +124,6 @@ export type NativeDeviceContextsResponse = {
124
124
  email?: string;
125
125
  username?: string;
126
126
  ipAddress?: string;
127
- segment?: string;
128
127
  data?: Record<string, unknown>;
129
128
  };
130
129
  dist?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeRNSentry.d.ts","sourceRoot":"","sources":["../../src/js/NativeRNSentry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAIjE,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,yBAAyB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;IAChE,aAAa,CAAC,UAAU,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9C,eAAe,CACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE;QACP,WAAW,EAAE,OAAO,CAAC;KACtB,GACA,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;IACpE,gBAAgB,IAAI,IAAI,CAAC;IACzB,KAAK,IAAI,IAAI,CAAC;IACd,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,2BAA2B,IAAI,IAAI,CAAC;IACpC,kBAAkB,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACrD,kBAAkB,IAAI,OAAO,CAAC,OAAO,GAAG,IA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ChC,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;;AAGF,wBAAkE"}
@@ -1 +1 @@
1
- {"version":3,"file":"NativeRNSentry.js","sourceRoot":"","sources":["../../src/js/NativeRNSentry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA8JnD,2DAA2D;AAC3D,eAAe,mBAAmB,CAAC,YAAY,CAAO,UAAU,CAAC,CAAC","sourcesContent":["import type { Package } from '@sentry/core';\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\nimport type { UnsafeObject } from './utils/rnlibrariesinterface';\n\n// There has to be only one interface and it has to be named `Spec`\n// Only extra allowed definitions are types (probably codegen bug)\nexport interface Spec extends TurboModule {\n addListener: (eventType: string) => void;\n removeListeners: (id: number) => void;\n getNewScreenTimeToDisplay(): Promise<number | undefined | null>;\n addBreadcrumb(breadcrumb: UnsafeObject): void;\n captureEnvelope(\n bytes: string,\n options: {\n hardCrashed: boolean;\n },\n ): Promise<boolean>;\n captureScreenshot(): Promise<NativeScreenshot[] | undefined | null>;\n clearBreadcrumbs(): void;\n crash(): void;\n closeNativeSdk(): Promise<void>;\n disableNativeFramesTracking(): void;\n fetchNativeRelease(): Promise<NativeReleaseResponse>;\n fetchNativeSdkInfo(): Promise<Package | null>;\n fetchNativeDeviceContexts(): Promise<NativeDeviceContextsResponse | null>;\n fetchNativeLogAttributes(): Promise<NativeDeviceContextsResponse | null>;\n fetchNativeAppStart(): Promise<NativeAppStartResponse | null>;\n fetchNativeFrames(): Promise<NativeFramesResponse | null>;\n initNativeSdk(options: UnsafeObject): Promise<boolean>;\n setUser(defaultUserKeys: UnsafeObject | null, otherUserKeys: UnsafeObject | null): void;\n setContext(key: string, value: UnsafeObject | null): void;\n setExtra(key: string, value: string): void;\n setTag(key: string, value: string): void;\n enableNativeFramesTracking(): void;\n fetchModules(): Promise<string | undefined | null>;\n fetchViewHierarchy(): Promise<number[] | undefined | null>;\n startProfiling(platformProfilers: boolean): { started?: boolean; error?: string };\n stopProfiling(): {\n profile?: string;\n nativeProfile?: UnsafeObject;\n androidProfile?: UnsafeObject;\n error?: string;\n };\n fetchNativePackageName(): string | undefined | null;\n fetchNativeStackFramesBy(instructionsAddr: number[]): NativeStackFrames | undefined | null;\n initNativeReactNavigationNewFrameTracking(): Promise<void>;\n captureReplay(isHardCrash: boolean): Promise<string | undefined | null>;\n getCurrentReplayId(): string | undefined | null;\n crashedLastRun(): Promise<boolean | undefined | null>;\n getDataFromUri(uri: string): Promise<number[]>;\n popTimeToDisplayFor(key: string): Promise<number | undefined | null>;\n setActiveSpanId(spanId: string): boolean;\n encodeToBase64(data: number[]): Promise<string | undefined | null>;\n}\n\nexport type NativeStackFrame = {\n platform: string;\n /**\n * The instruction address of this frame.\n * Formatted as hex with 0x prefix.\n */\n instruction_addr: string;\n package?: string;\n /**\n * The debug image address of this frame.\n * Formatted as hex with 0x prefix.\n */\n image_addr?: string;\n in_app?: boolean;\n /**\n * The symbol name of this frame.\n * If symbolicated locally.\n */\n function?: string;\n /**\n * The symbol address of this frame.\n * If symbolicated locally.\n * Formatted as hex with 0x prefix.\n */\n symbol_addr?: string;\n};\n\nexport type NativeDebugImage = {\n name?: string;\n type?: string;\n uuid?: string;\n debug_id?: string;\n image_addr?: string;\n image_size?: number;\n code_file?: string;\n image_vmaddr?: string;\n};\n\nexport type NativeStackFrames = {\n frames: NativeStackFrame[];\n debugMetaImages?: NativeDebugImage[];\n};\n\nexport type NativeAppStartResponse = {\n type: 'cold' | 'warm' | 'unknown';\n has_fetched: boolean;\n app_start_timestamp_ms?: number;\n spans: {\n description: string;\n start_timestamp_ms: number;\n end_timestamp_ms: number;\n }[];\n};\n\nexport type NativeFramesResponse = {\n totalFrames: number;\n slowFrames: number;\n frozenFrames: number;\n};\n\nexport type NativeReleaseResponse = {\n build: string;\n id: string;\n version: string;\n};\n\n/**\n * This type describes serialized scope from sentry-cocoa and sentry-android\n * https://github.com/getsentry/sentry-cocoa/blob/master/Sources/Sentry/SentryScope.m\n * https://github.com/getsentry/sentry-java/blob/a461f7e125b65240004e6162b341f383ce2e1394/sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java#L32\n */\nexport type NativeDeviceContextsResponse = {\n [key: string]: unknown;\n tags?: Record<string, string>;\n extra?: Record<string, unknown>;\n contexts?: Record<string, Record<string, unknown>>;\n user?: {\n userId?: string;\n email?: string;\n username?: string;\n ipAddress?: string;\n segment?: string;\n data?: Record<string, unknown>;\n };\n dist?: string;\n environment?: string;\n fingerprint?: string[];\n level?: string;\n breadcrumbs?: {\n level?: string;\n timestamp?: string;\n category?: string;\n type?: string;\n message?: string;\n data?: Record<string, unknown>;\n }[];\n};\n\nexport type NativeScreenshot = {\n data: number[];\n contentType: string;\n filename: string;\n};\n\n// The export must be here to pass codegen even if not used\nexport default TurboModuleRegistry.getEnforcing<Spec>('RNSentry');\n"]}
1
+ {"version":3,"file":"NativeRNSentry.js","sourceRoot":"","sources":["../../src/js/NativeRNSentry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA6JnD,2DAA2D;AAC3D,eAAe,mBAAmB,CAAC,YAAY,CAAO,UAAU,CAAC,CAAC","sourcesContent":["import type { Package } from '@sentry/core';\nimport type { TurboModule } from 'react-native';\nimport { TurboModuleRegistry } from 'react-native';\nimport type { UnsafeObject } from './utils/rnlibrariesinterface';\n\n// There has to be only one interface and it has to be named `Spec`\n// Only extra allowed definitions are types (probably codegen bug)\nexport interface Spec extends TurboModule {\n addListener: (eventType: string) => void;\n removeListeners: (id: number) => void;\n getNewScreenTimeToDisplay(): Promise<number | undefined | null>;\n addBreadcrumb(breadcrumb: UnsafeObject): void;\n captureEnvelope(\n bytes: string,\n options: {\n hardCrashed: boolean;\n },\n ): Promise<boolean>;\n captureScreenshot(): Promise<NativeScreenshot[] | undefined | null>;\n clearBreadcrumbs(): void;\n crash(): void;\n closeNativeSdk(): Promise<void>;\n disableNativeFramesTracking(): void;\n fetchNativeRelease(): Promise<NativeReleaseResponse>;\n fetchNativeSdkInfo(): Promise<Package | null>;\n fetchNativeDeviceContexts(): Promise<NativeDeviceContextsResponse | null>;\n fetchNativeLogAttributes(): Promise<NativeDeviceContextsResponse | null>;\n fetchNativeAppStart(): Promise<NativeAppStartResponse | null>;\n fetchNativeFrames(): Promise<NativeFramesResponse | null>;\n initNativeSdk(options: UnsafeObject): Promise<boolean>;\n setUser(defaultUserKeys: UnsafeObject | null, otherUserKeys: UnsafeObject | null): void;\n setContext(key: string, value: UnsafeObject | null): void;\n setExtra(key: string, value: string): void;\n setTag(key: string, value: string): void;\n enableNativeFramesTracking(): void;\n fetchModules(): Promise<string | undefined | null>;\n fetchViewHierarchy(): Promise<number[] | undefined | null>;\n startProfiling(platformProfilers: boolean): { started?: boolean; error?: string };\n stopProfiling(): {\n profile?: string;\n nativeProfile?: UnsafeObject;\n androidProfile?: UnsafeObject;\n error?: string;\n };\n fetchNativePackageName(): string | undefined | null;\n fetchNativeStackFramesBy(instructionsAddr: number[]): NativeStackFrames | undefined | null;\n initNativeReactNavigationNewFrameTracking(): Promise<void>;\n captureReplay(isHardCrash: boolean): Promise<string | undefined | null>;\n getCurrentReplayId(): string | undefined | null;\n crashedLastRun(): Promise<boolean | undefined | null>;\n getDataFromUri(uri: string): Promise<number[]>;\n popTimeToDisplayFor(key: string): Promise<number | undefined | null>;\n setActiveSpanId(spanId: string): boolean;\n encodeToBase64(data: number[]): Promise<string | undefined | null>;\n}\n\nexport type NativeStackFrame = {\n platform: string;\n /**\n * The instruction address of this frame.\n * Formatted as hex with 0x prefix.\n */\n instruction_addr: string;\n package?: string;\n /**\n * The debug image address of this frame.\n * Formatted as hex with 0x prefix.\n */\n image_addr?: string;\n in_app?: boolean;\n /**\n * The symbol name of this frame.\n * If symbolicated locally.\n */\n function?: string;\n /**\n * The symbol address of this frame.\n * If symbolicated locally.\n * Formatted as hex with 0x prefix.\n */\n symbol_addr?: string;\n};\n\nexport type NativeDebugImage = {\n name?: string;\n type?: string;\n uuid?: string;\n debug_id?: string;\n image_addr?: string;\n image_size?: number;\n code_file?: string;\n image_vmaddr?: string;\n};\n\nexport type NativeStackFrames = {\n frames: NativeStackFrame[];\n debugMetaImages?: NativeDebugImage[];\n};\n\nexport type NativeAppStartResponse = {\n type: 'cold' | 'warm' | 'unknown';\n has_fetched: boolean;\n app_start_timestamp_ms?: number;\n spans: {\n description: string;\n start_timestamp_ms: number;\n end_timestamp_ms: number;\n }[];\n};\n\nexport type NativeFramesResponse = {\n totalFrames: number;\n slowFrames: number;\n frozenFrames: number;\n};\n\nexport type NativeReleaseResponse = {\n build: string;\n id: string;\n version: string;\n};\n\n/**\n * This type describes serialized scope from sentry-cocoa and sentry-android\n * https://github.com/getsentry/sentry-cocoa/blob/master/Sources/Sentry/SentryScope.m\n * https://github.com/getsentry/sentry-java/blob/a461f7e125b65240004e6162b341f383ce2e1394/sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java#L32\n */\nexport type NativeDeviceContextsResponse = {\n [key: string]: unknown;\n tags?: Record<string, string>;\n extra?: Record<string, unknown>;\n contexts?: Record<string, Record<string, unknown>>;\n user?: {\n userId?: string;\n email?: string;\n username?: string;\n ipAddress?: string;\n data?: Record<string, unknown>;\n };\n dist?: string;\n environment?: string;\n fingerprint?: string[];\n level?: string;\n breadcrumbs?: {\n level?: string;\n timestamp?: string;\n category?: string;\n type?: string;\n message?: string;\n data?: Record<string, unknown>;\n }[];\n};\n\nexport type NativeScreenshot = {\n data: number[];\n contentType: string;\n filename: string;\n};\n\n// The export must be here to pass codegen even if not used\nexport default TurboModuleRegistry.getEnforcing<Spec>('RNSentry');\n"]}
@@ -1,5 +1,5 @@
1
1
  // The default export exists in the file but eslint doesn't see it
2
2
  // eslint-disable-next-line import/default
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
3
+ import { codegenNativeComponent } from 'react-native';
4
4
  export default codegenNativeComponent('RNSentryReplayMask');
5
5
  //# sourceMappingURL=RNSentryReplayMaskNativeComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RNSentryReplayMaskNativeComponent.js","sourceRoot":"","sources":["../../src/js/RNSentryReplayMaskNativeComponent.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,0CAA0C;AAC1C,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAM7F,eAAe,sBAAsB,CAAc,oBAAoB,CAA+B,CAAC","sourcesContent":["import type { HostComponent, ViewProps } from 'react-native';\n// The default export exists in the file but eslint doesn't see it\n// eslint-disable-next-line import/default\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\n\n// If changed to type NativeProps = ViewProps, react native codegen will fail finding the NativeProps type\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface NativeProps extends ViewProps {}\n\nexport default codegenNativeComponent<NativeProps>('RNSentryReplayMask') as HostComponent<NativeProps>;\n"]}
1
+ {"version":3,"file":"RNSentryReplayMaskNativeComponent.js","sourceRoot":"","sources":["../../src/js/RNSentryReplayMaskNativeComponent.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,0CAA0C;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAMtD,eAAe,sBAAsB,CAAc,oBAAoB,CAA+B,CAAC","sourcesContent":["import type { HostComponent, ViewProps } from 'react-native';\n// The default export exists in the file but eslint doesn't see it\n// eslint-disable-next-line import/default\nimport { codegenNativeComponent } from 'react-native';\n\n// If changed to type NativeProps = ViewProps, react native codegen will fail finding the NativeProps type\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface NativeProps extends ViewProps {}\n\nexport default codegenNativeComponent<NativeProps>('RNSentryReplayMask') as HostComponent<NativeProps>;\n"]}
@@ -1,5 +1,5 @@
1
1
  // The default export exists in the file but eslint doesn't see it
2
2
  // eslint-disable-next-line import/default
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
3
+ import { codegenNativeComponent } from 'react-native';
4
4
  export default codegenNativeComponent('RNSentryReplayUnmask');
5
5
  //# sourceMappingURL=RNSentryReplayUnmaskNativeComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RNSentryReplayUnmaskNativeComponent.js","sourceRoot":"","sources":["../../src/js/RNSentryReplayUnmaskNativeComponent.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,0CAA0C;AAC1C,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAM7F,eAAe,sBAAsB,CAAc,sBAAsB,CAA+B,CAAC","sourcesContent":["import type { HostComponent, ViewProps } from 'react-native';\n// The default export exists in the file but eslint doesn't see it\n// eslint-disable-next-line import/default\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\n\n// If changed to type NativeProps = ViewProps, react native codegen will fail finding the NativeProps type\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface NativeProps extends ViewProps {}\n\nexport default codegenNativeComponent<NativeProps>('RNSentryReplayUnmask') as HostComponent<NativeProps>;\n"]}
1
+ {"version":3,"file":"RNSentryReplayUnmaskNativeComponent.js","sourceRoot":"","sources":["../../src/js/RNSentryReplayUnmaskNativeComponent.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,0CAA0C;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAMtD,eAAe,sBAAsB,CAAc,sBAAsB,CAA+B,CAAC","sourcesContent":["import type { HostComponent, ViewProps } from 'react-native';\n// The default export exists in the file but eslint doesn't see it\n// eslint-disable-next-line import/default\nimport { codegenNativeComponent } from 'react-native';\n\n// If changed to type NativeProps = ViewProps, react native codegen will fail finding the NativeProps type\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface NativeProps extends ViewProps {}\n\nexport default codegenNativeComponent<NativeProps>('RNSentryReplayUnmask') as HostComponent<NativeProps>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/default.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAuC3D;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW,EAAE,CAkHvF"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/default.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAuC3D;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW,EAAE,CAmHvF"}
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable complexity */
2
- import { browserSessionIntegration } from '@sentry/browser';
2
+ import { browserSessionIntegration, consoleLoggingIntegration } from '@sentry/browser';
3
3
  import { reactNativeTracingIntegration } from '../tracing';
4
4
  import { notWeb } from '../utils/environment';
5
5
  import { appRegistryIntegration, appStartIntegration, breadcrumbsIntegration, browserApiErrorsIntegration, browserGlobalHandlersIntegration, browserLinkedErrorsIntegration, createNativeFramesIntegrations, createReactNativeRewriteFrames, debugSymbolicatorIntegration, dedupeIntegration, deviceContextIntegration, eventOriginIntegration, expoContextIntegration, functionToStringIntegration, hermesProfilingIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, logEnricherIntegration, mobileReplayIntegration, modulesLoaderIntegration, nativeLinkedErrorsIntegration, nativeReleaseIntegration, primitiveTagIntegration, reactNativeErrorHandlersIntegration, reactNativeInfoIntegration, screenshotIntegration, sdkInfoIntegration, spotlightIntegration, stallTrackingIntegration, timeToDisplayIntegration, userInteractionIntegration, viewHierarchyIntegration, } from './exports';
@@ -44,6 +44,7 @@ export function getDefaultIntegrations(options) {
44
44
  integrations.push(modulesLoaderIntegration());
45
45
  if (options.enableLogs) {
46
46
  integrations.push(logEnricherIntegration());
47
+ integrations.push(consoleLoggingIntegration());
47
48
  }
48
49
  if (options.attachScreenshot) {
49
50
  integrations.push(screenshotIntegration());
@@ -1 +1 @@
1
- {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/js/integrations/default.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAG5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,EACvB,mCAAmC,EACnC,0BAA0B,EAC1B,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,WAAW,CAAC;AAEnB;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAAiC;;IACtE,MAAM,YAAY,GAAkB,EAAE,CAAC;IAEvC,IAAI,MAAM,EAAE,EAAE;QACZ,YAAY,CAAC,IAAI,CACf,mCAAmC,CAAC;YAClC,kB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C;IAED,IAAI,OAAO,IAAI,MAAM,EAAE,EAAE;QACvB,YAAY,CAAC,IAAI,CAAC,4BAA4B,EAAE,CAAC,CAAC;KACnD;IAED,YAAY,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC,CAAC;IAE7C,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["/* eslint-disable complexity */\nimport { browserSessionIntegration } from '@sentry/browser';\nimport type { Integration } from '@sentry/core';\nimport type { ReactNativeClientOptions } from '../options';\nimport { reactNativeTracingIntegration } from '../tracing';\nimport { notWeb } from '../utils/environment';\nimport {\n appRegistryIntegration,\n appStartIntegration,\n breadcrumbsIntegration,\n browserApiErrorsIntegration,\n browserGlobalHandlersIntegration,\n browserLinkedErrorsIntegration,\n createNativeFramesIntegrations,\n createReactNativeRewriteFrames,\n debugSymbolicatorIntegration,\n dedupeIntegration,\n deviceContextIntegration,\n eventOriginIntegration,\n expoContextIntegration,\n functionToStringIntegration,\n hermesProfilingIntegration,\n httpClientIntegration,\n httpContextIntegration,\n inboundFiltersIntegration,\n logEnricherIntegration,\n mobileReplayIntegration,\n modulesLoaderIntegration,\n nativeLinkedErrorsIntegration,\n nativeReleaseIntegration,\n primitiveTagIntegration,\n reactNativeErrorHandlersIntegration,\n reactNativeInfoIntegration,\n screenshotIntegration,\n sdkInfoIntegration,\n spotlightIntegration,\n stallTrackingIntegration,\n timeToDisplayIntegration,\n userInteractionIntegration,\n viewHierarchyIntegration,\n} from './exports';\n\n/**\n * Returns the default ReactNative integrations based on the current environment.\n *\n * Native integrations are only returned when native is enabled.\n *\n * Web integrations are only returned when running on web.\n */\nexport function getDefaultIntegrations(options: ReactNativeClientOptions): Integration[] {\n const integrations: Integration[] = [];\n\n if (notWeb()) {\n integrations.push(\n reactNativeErrorHandlersIntegration({\n patchGlobalPromise: options.patchGlobalPromise,\n }),\n );\n integrations.push(nativeLinkedErrorsIntegration());\n } else {\n integrations.push(browserApiErrorsIntegration());\n integrations.push(browserGlobalHandlersIntegration());\n integrations.push(browserLinkedErrorsIntegration());\n\n if (options.enableAutoSessionTracking) {\n integrations.push(browserSessionIntegration());\n }\n }\n\n // @sentry/react default integrations\n integrations.push(inboundFiltersIntegration());\n integrations.push(functionToStringIntegration());\n integrations.push(breadcrumbsIntegration());\n integrations.push(dedupeIntegration());\n integrations.push(httpContextIntegration());\n // end @sentry/react-native default integrations\n\n integrations.push(nativeReleaseIntegration());\n integrations.push(eventOriginIntegration());\n integrations.push(sdkInfoIntegration());\n integrations.push(reactNativeInfoIntegration());\n\n integrations.push(createReactNativeRewriteFrames());\n\n if (options.enableNative) {\n integrations.push(deviceContextIntegration());\n integrations.push(modulesLoaderIntegration());\n if (options.enableLogs) {\n integrations.push(logEnricherIntegration());\n }\n if (options.attachScreenshot) {\n integrations.push(screenshotIntegration());\n }\n if (options.attachViewHierarchy) {\n integrations.push(viewHierarchyIntegration());\n }\n if (typeof options.profilesSampleRate === 'number') {\n integrations.push(hermesProfilingIntegration());\n }\n }\n\n // hasTracingEnabled from `@sentry/core` only check if tracesSampler or tracesSampleRate keys are present\n // that's different from prev imp here and might lead misconfiguration\n // `tracesSampleRate: undefined` should not enable tracing\n const hasTracingEnabled = typeof options.tracesSampleRate === 'number' || typeof options.tracesSampler === 'function';\n if (hasTracingEnabled && options.enableAppStartTracking && options.enableNative) {\n integrations.push(appStartIntegration());\n }\n const nativeFramesIntegrationInstance = createNativeFramesIntegrations(\n hasTracingEnabled && options.enableNativeFramesTracking && options.enableNative,\n );\n if (nativeFramesIntegrationInstance) {\n integrations.push(nativeFramesIntegrationInstance);\n }\n if (hasTracingEnabled && options.enableStallTracking) {\n integrations.push(stallTrackingIntegration());\n }\n if (hasTracingEnabled && options.enableUserInteractionTracing) {\n integrations.push(userInteractionIntegration());\n }\n if (hasTracingEnabled && options.enableAutoPerformanceTracing) {\n integrations.push(appRegistryIntegration());\n integrations.push(reactNativeTracingIntegration());\n }\n if (hasTracingEnabled) {\n integrations.push(timeToDisplayIntegration());\n }\n if (options.enableCaptureFailedRequests) {\n integrations.push(httpClientIntegration());\n }\n\n integrations.push(expoContextIntegration());\n\n if (options.spotlight) {\n const sidecarUrl = typeof options.spotlight === 'string' ? options.spotlight : undefined;\n integrations.push(spotlightIntegration({ sidecarUrl }));\n }\n\n const hasReplayOptions =\n typeof options.replaysOnErrorSampleRate === 'number' || typeof options.replaysSessionSampleRate === 'number';\n const hasExperimentsReplayOptions =\n (options._experiments && typeof options._experiments.replaysOnErrorSampleRate === 'number') ||\n (options._experiments && typeof options._experiments.replaysSessionSampleRate === 'number');\n\n if (!hasReplayOptions && hasExperimentsReplayOptions) {\n // Remove in the next major version (v7)\n options.replaysOnErrorSampleRate = options._experiments?.replaysOnErrorSampleRate;\n options.replaysSessionSampleRate = options._experiments?.replaysSessionSampleRate;\n }\n\n if ((hasReplayOptions || hasExperimentsReplayOptions) && notWeb()) {\n // We can't create and add browserReplayIntegration as it overrides the users supplied one\n // The browser replay integration works differently than the rest of default integrations\n integrations.push(mobileReplayIntegration());\n }\n\n if (__DEV__ && notWeb()) {\n integrations.push(debugSymbolicatorIntegration());\n }\n\n integrations.push(primitiveTagIntegration());\n\n return integrations;\n}\n"]}
1
+ {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/js/integrations/default.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAGvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAq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AwB,KAAK,QAAQ,CAAC;QAC3F,CAAC,OAAO,CAAC,YAAY,IAAI,OAAO,OAAO,CAAC,YAAY,CAAC,wBAAwB,KAAK,QAAQ,CAAC,CAAC;IAE9F,IAAI,CAAC,gBAAgB,IAAI,2BAA2B,EAAE;QACpD,wCAAwC;QACxC,OAAO,CAAC,wBAAwB,GAAG,MAAA,OAAO,CAAC,YAAY,0CAAE,wBAAwB,CAAC;QAClF,OAAO,CAAC,wBAAwB,GAAG,MAAA,OAAO,CAAC,YAAY,0CAAE,wBAAwB,CAAC;KACnF;IAED,IAAI,CAAC,gBAAgB,IAAI,2BAA2B,CAAC,IAAI,MAAM,EAAE,EAAE;QACjE,0FAA0F;QAC1F,yFAAyF;QACzF,YAAY,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC,CAAC;KAC9C;IAED,IAAI,OAAO,IAAI,MAAM,EAAE,EAAE;QACvB,YAAY,CAAC,IAAI,CAAC,4BAA4B,EAAE,CAAC,CAAC;KACnD;IAED,YAAY,CAAC,IAAI,CAAC,uBAAuB,EAAE,CAAC,CAAC;IAE7C,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["/* eslint-disable complexity */\nimport { browserSessionIntegration, consoleLoggingIntegration } from '@sentry/browser';\nimport type { Integration } from '@sentry/core';\nimport type { ReactNativeClientOptions } from '../options';\nimport { reactNativeTracingIntegration } from '../tracing';\nimport { notWeb } from '../utils/environment';\nimport {\n appRegistryIntegration,\n appStartIntegration,\n breadcrumbsIntegration,\n browserApiErrorsIntegration,\n browserGlobalHandlersIntegration,\n browserLinkedErrorsIntegration,\n createNativeFramesIntegrations,\n createReactNativeRewriteFrames,\n debugSymbolicatorIntegration,\n dedupeIntegration,\n deviceContextIntegration,\n eventOriginIntegration,\n expoContextIntegration,\n functionToStringIntegration,\n hermesProfilingIntegration,\n httpClientIntegration,\n httpContextIntegration,\n inboundFiltersIntegration,\n logEnricherIntegration,\n mobileReplayIntegration,\n modulesLoaderIntegration,\n nativeLinkedErrorsIntegration,\n nativeReleaseIntegration,\n primitiveTagIntegration,\n reactNativeErrorHandlersIntegration,\n reactNativeInfoIntegration,\n screenshotIntegration,\n sdkInfoIntegration,\n spotlightIntegration,\n stallTrackingIntegration,\n timeToDisplayIntegration,\n userInteractionIntegration,\n viewHierarchyIntegration,\n} from './exports';\n\n/**\n * Returns the default ReactNative integrations based on the current environment.\n *\n * Native integrations are only returned when native is enabled.\n *\n * Web integrations are only returned when running on web.\n */\nexport function getDefaultIntegrations(options: ReactNativeClientOptions): Integration[] {\n const integrations: Integration[] = [];\n\n if (notWeb()) {\n integrations.push(\n reactNativeErrorHandlersIntegration({\n patchGlobalPromise: options.patchGlobalPromise,\n }),\n );\n integrations.push(nativeLinkedErrorsIntegration());\n } else {\n integrations.push(browserApiErrorsIntegration());\n integrations.push(browserGlobalHandlersIntegration());\n integrations.push(browserLinkedErrorsIntegration());\n\n if (options.enableAutoSessionTracking) {\n integrations.push(browserSessionIntegration());\n }\n }\n\n // @sentry/react default integrations\n integrations.push(inboundFiltersIntegration());\n integrations.push(functionToStringIntegration());\n integrations.push(breadcrumbsIntegration());\n integrations.push(dedupeIntegration());\n integrations.push(httpContextIntegration());\n // end @sentry/react-native default integrations\n\n integrations.push(nativeReleaseIntegration());\n integrations.push(eventOriginIntegration());\n integrations.push(sdkInfoIntegration());\n integrations.push(reactNativeInfoIntegration());\n\n integrations.push(createReactNativeRewriteFrames());\n\n if (options.enableNative) {\n integrations.push(deviceContextIntegration());\n integrations.push(modulesLoaderIntegration());\n if (options.enableLogs) {\n integrations.push(logEnricherIntegration());\n integrations.push(consoleLoggingIntegration());\n }\n if (options.attachScreenshot) {\n integrations.push(screenshotIntegration());\n }\n if (options.attachViewHierarchy) {\n integrations.push(viewHierarchyIntegration());\n }\n if (typeof options.profilesSampleRate === 'number') {\n integrations.push(hermesProfilingIntegration());\n }\n }\n\n // hasTracingEnabled from `@sentry/core` only check if tracesSampler or tracesSampleRate keys are present\n // that's different from prev imp here and might lead misconfiguration\n // `tracesSampleRate: undefined` should not enable tracing\n const hasTracingEnabled = typeof options.tracesSampleRate === 'number' || typeof options.tracesSampler === 'function';\n if (hasTracingEnabled && options.enableAppStartTracking && options.enableNative) {\n integrations.push(appStartIntegration());\n }\n const nativeFramesIntegrationInstance = createNativeFramesIntegrations(\n hasTracingEnabled && options.enableNativeFramesTracking && options.enableNative,\n );\n if (nativeFramesIntegrationInstance) {\n integrations.push(nativeFramesIntegrationInstance);\n }\n if (hasTracingEnabled && options.enableStallTracking) {\n integrations.push(stallTrackingIntegration());\n }\n if (hasTracingEnabled && options.enableUserInteractionTracing) {\n integrations.push(userInteractionIntegration());\n }\n if (hasTracingEnabled && options.enableAutoPerformanceTracing) {\n integrations.push(appRegistryIntegration());\n integrations.push(reactNativeTracingIntegration());\n }\n if (hasTracingEnabled) {\n integrations.push(timeToDisplayIntegration());\n }\n if (options.enableCaptureFailedRequests) {\n integrations.push(httpClientIntegration());\n }\n\n integrations.push(expoContextIntegration());\n\n if (options.spotlight) {\n const sidecarUrl = typeof options.spotlight === 'string' ? options.spotlight : undefined;\n integrations.push(spotlightIntegration({ sidecarUrl }));\n }\n\n const hasReplayOptions =\n typeof options.replaysOnErrorSampleRate === 'number' || typeof options.replaysSessionSampleRate === 'number';\n const hasExperimentsReplayOptions =\n (options._experiments && typeof options._experiments.replaysOnErrorSampleRate === 'number') ||\n (options._experiments && typeof options._experiments.replaysSessionSampleRate === 'number');\n\n if (!hasReplayOptions && hasExperimentsReplayOptions) {\n // Remove in the next major version (v7)\n options.replaysOnErrorSampleRate = options._experiments?.replaysOnErrorSampleRate;\n options.replaysSessionSampleRate = options._experiments?.replaysSessionSampleRate;\n }\n\n if ((hasReplayOptions || hasExperimentsReplayOptions) && notWeb()) {\n // We can't create and add browserReplayIntegration as it overrides the users supplied one\n // The browser replay integration works differently than the rest of default integrations\n integrations.push(mobileReplayIntegration());\n }\n\n if (__DEV__ && notWeb()) {\n integrations.push(debugSymbolicatorIntegration());\n }\n\n integrations.push(primitiveTagIntegration());\n\n return integrations;\n}\n"]}
@@ -25,5 +25,7 @@ export { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayI
25
25
  export { breadcrumbsIntegration } from './breadcrumbs';
26
26
  export { primitiveTagIntegration } from './primitiveTagIntegration';
27
27
  export { logEnricherIntegration } from './logEnricherIntegration';
28
+ export { graphqlIntegration } from './graphql';
29
+ export { supabaseIntegration } from './supabase';
28
30
  export { browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, extraErrorDataIntegration, } from '@sentry/react';
29
31
  //# sourceMappingURL=exports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,sBAA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,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,2BAA2B,EAC3B,yBAAyB,IAAI,gCAAgC,EAC7D,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,IAAI,8BAA8B,EACzD,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC"}
@@ -25,5 +25,7 @@ export { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayI
25
25
  export { breadcrumbsIntegration } from './breadcrumbs';
26
26
  export { primitiveTagIntegration } from './primitiveTagIntegration';
27
27
  export { logEnricherIntegration } from './logEnricherIntegration';
28
+ export { graphqlIntegration } from './graphql';
29
+ export { supabaseIntegration } from './supabase';
28
30
  export { browserApiErrorsIntegration, dedupeIntegration, functionToStringIntegration, globalHandlersIntegration as browserGlobalHandlersIntegration, httpClientIntegration, httpContextIntegration, inboundFiltersIntegration, linkedErrorsIntegration as browserLinkedErrorsIntegration, rewriteFramesIntegration, extraErrorDataIntegration, } from '@sentry/react';
29
31
  //# sourceMappingURL=exports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/js/integrations/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAA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B,IAAI,8BAA8B,EACzD,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC","sourcesContent":["export { debugSymbolicatorIntegration } from './debugsymbolicator';\nexport { deviceContextIntegration } from './devicecontext';\nexport { reactNativeErrorHandlersIntegration } from './reactnativeerrorhandlers';\nexport { nativeLinkedErrorsIntegration } from './nativelinkederrors';\nexport { nativeReleaseIntegration } from './release';\nexport { eventOriginIntegration } from './eventorigin';\nexport { sdkInfoIntegration } from './sdkinfo';\nexport { reactNativeInfoIntegration } from './reactnativeinfo';\nexport { modulesLoaderIntegration } from './modulesloader';\nexport { hermesProfilingIntegration } from '../profiling/integration';\nexport { screenshotIntegration } from './screenshot';\nexport { viewHierarchyIntegration } from './viewhierarchy';\nexport { expoContextIntegration } from './expocontext';\nexport { spotlightIntegration } from './spotlight';\nexport { mobileReplayIntegration } from '../replay/mobilereplay';\nexport { feedbackIntegration } from '../feedback/integration';\nexport { browserReplayIntegration } from '../replay/browserReplay';\nexport { appStartIntegration } from '../tracing/integrations/appStart';\nexport { nativeFramesIntegration, createNativeFramesIntegrations } from '../tracing/integrations/nativeFrames';\nexport { stallTrackingIntegration } from '../tracing/integrations/stalltracking';\nexport { userInteractionIntegration } from '../tracing/integrations/userInteraction';\nexport { createReactNativeRewriteFrames } from './rewriteframes';\nexport { appRegistryIntegration } from './appRegistry';\nexport { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayIntegration';\nexport { breadcrumbsIntegration } from './breadcrumbs';\nexport { primitiveTagIntegration } from './primitiveTagIntegration';\nexport { logEnricherIntegration } from './logEnricherIntegration';\n\nexport {\n browserApiErrorsIntegration,\n dedupeIntegration,\n functionToStringIntegration,\n globalHandlersIntegration as browserGlobalHandlersIntegration,\n httpClientIntegration,\n httpContextIntegration,\n inboundFiltersIntegration,\n linkedErrorsIntegration as browserLinkedErrorsIntegration,\n rewriteFramesIntegration,\n extraErrorDataIntegration,\n} from '@sentry/react';\n"]}
1
+ {"version":3,"file":"exports.js","s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O,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,EACjB,2BAA2B,EAC3B,yBAAyB,IAAI,gCAAgC,EAC7D,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,IAAI,8BAA8B,EACzD,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC","sourcesContent":["export { debugSymbolicatorIntegration } from './debugsymbolicator';\nexport { deviceContextIntegration } from './devicecontext';\nexport { reactNativeErrorHandlersIntegration } from './reactnativeerrorhandlers';\nexport { nativeLinkedErrorsIntegration } from './nativelinkederrors';\nexport { nativeReleaseIntegration } from './release';\nexport { eventOriginIntegration } from './eventorigin';\nexport { sdkInfoIntegration } from './sdkinfo';\nexport { reactNativeInfoIntegration } from './reactnativeinfo';\nexport { modulesLoaderIntegration } from './modulesloader';\nexport { hermesProfilingIntegration } from '../profiling/integration';\nexport { screenshotIntegration } from './screenshot';\nexport { viewHierarchyIntegration } from './viewhierarchy';\nexport { expoContextIntegration } from './expocontext';\nexport { spotlightIntegration } from './spotlight';\nexport { mobileReplayIntegration } from '../replay/mobilereplay';\nexport { feedbackIntegration } from '../feedback/integration';\nexport { browserReplayIntegration } from '../replay/browserReplay';\nexport { appStartIntegration } from '../tracing/integrations/appStart';\nexport { nativeFramesIntegration, createNativeFramesIntegrations } from '../tracing/integrations/nativeFrames';\nexport { stallTrackingIntegration } from '../tracing/integrations/stalltracking';\nexport { userInteractionIntegration } from '../tracing/integrations/userInteraction';\nexport { createReactNativeRewriteFrames } from './rewriteframes';\nexport { appRegistryIntegration } from './appRegistry';\nexport { timeToDisplayIntegration } from '../tracing/integrations/timeToDisplayIntegration';\nexport { breadcrumbsIntegration } from './breadcrumbs';\nexport { primitiveTagIntegration } from './primitiveTagIntegration';\nexport { logEnricherIntegration } from './logEnricherIntegration';\nexport { graphqlIntegration } from './graphql';\nexport { supabaseIntegration } from './supabase';\n\nexport {\n browserApiErrorsIntegration,\n dedupeIntegration,\n functionToStringIntegration,\n globalHandlersIntegration as browserGlobalHandlersIntegration,\n httpClientIntegration,\n httpContextIntegration,\n inboundFiltersIntegration,\n linkedErrorsIntegration as browserLinkedErrorsIntegration,\n rewriteFramesIntegration,\n extraErrorDataIntegration,\n} from '@sentry/react';\n"]}
@@ -0,0 +1,11 @@
1
+ import type { Integration } from '@sentry/core';
2
+ interface GraphQLReactNativeIntegrationOptions {
3
+ endpoints: Array<string | RegExp>;
4
+ }
5
+ /**
6
+ * This integration ensures that GraphQL requests made in the React Native apps
7
+ * have their GraphQL-specific data captured and attached to spans and breadcrumbs.
8
+ */
9
+ export declare function graphqlIntegration(options: GraphQLReactNativeIntegrationOptions): Integration;
10
+ export {};
11
+ //# sourceMappingURL=graphql.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/graphql.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,UAAU,oCAAoC;IAC5C,SAAS,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,oCAAoC,GAAG,WAAW,CAE7F"}
@@ -0,0 +1,9 @@
1
+ import { graphqlClientIntegration as browserGraphqlClientIntegration } from '@sentry/browser';
2
+ /**
3
+ * This integration ensures that GraphQL requests made in the React Native apps
4
+ * have their GraphQL-specific data captured and attached to spans and breadcrumbs.
5
+ */
6
+ export function graphqlIntegration(options) {
7
+ return browserGraphqlClientIntegration({ endpoints: options.endpoints });
8
+ }
9
+ //# sourceMappingURL=graphql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../../src/js/integrations/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,IAAI,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAO9F;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAA6C;IAC9E,OAAO,+BAA+B,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;AAC3E,CAAC","sourcesContent":["import { graphqlClientIntegration as browserGraphqlClientIntegration } from '@sentry/browser';\nimport type { Integration } from '@sentry/core';\n\ninterface GraphQLReactNativeIntegrationOptions {\n endpoints: Array<string | RegExp>;\n}\n\n/**\n * This integration ensures that GraphQL requests made in the React Native apps\n * have their GraphQL-specific data captured and attached to spans and breadcrumbs.\n */\nexport function graphqlIntegration(options: GraphQLReactNativeIntegrationOptions): Integration {\n return browserGraphqlClientIntegration({ endpoints: options.endpoints });\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import type { Integration } from '@sentry/core';
2
+ type SupabaseReactNativeIntegrationOptions = {
3
+ supabaseClient: unknown;
4
+ };
5
+ /**
6
+ * Use this integration to instrument your Supabase client.
7
+ *
8
+ * Learn more about Supabase at https://supabase.com
9
+ */
10
+ export declare function supabaseIntegration(options: SupabaseReactNativeIntegrationOptions): Integration;
11
+ export {};
12
+ //# sourceMappingURL=supabase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../../src/js/integrations/supabase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,KAAK,qCAAqC,GAAG;IAC3C,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qCAAqC,GAAG,WAAW,CAE/F"}
@@ -0,0 +1,10 @@
1
+ import { supabaseIntegration as browserSupabaseIntegration } from '@sentry/browser';
2
+ /**
3
+ * Use this integration to instrument your Supabase client.
4
+ *
5
+ * Learn more about Supabase at https://supabase.com
6
+ */
7
+ export function supabaseIntegration(options) {
8
+ return browserSupabaseIntegration({ supabaseClient: options.supabaseClient });
9
+ }
10
+ //# sourceMappingURL=supabase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supabase.js","sourceRoot":"","sources":["../../../src/js/integrations/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAOpF;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAA8C;IAChF,OAAO,0BAA0B,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;AAChF,CAAC","sourcesContent":["import { supabaseIntegration as browserSupabaseIntegration } from '@sentry/browser';\nimport type { Integration } from '@sentry/core';\n\ntype SupabaseReactNativeIntegrationOptions = {\n supabaseClient: unknown;\n};\n\n/**\n * Use this integration to instrument your Supabase client.\n *\n * Learn more about Supabase at https://supabase.com\n */\nexport function supabaseIntegration(options: SupabaseReactNativeIntegrationOptions): Integration {\n return browserSupabaseIntegration({ supabaseClient: options.supabaseClient });\n}\n"]}