@sentry/react-native 5.23.0-alpha.1 → 5.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/CHANGELOG.md +50 -48
  2. package/RNSentry.podspec +1 -1
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +1 -54
  5. package/android/src/newarch/java/io/sentry/react/RNSentryModule.java +0 -10
  6. package/android/src/oldarch/java/io/sentry/react/RNSentryModule.java +0 -10
  7. package/dist/js/NativeRNSentry.d.ts +0 -2
  8. package/dist/js/NativeRNSentry.d.ts.map +1 -1
  9. package/dist/js/NativeRNSentry.js.map +1 -1
  10. package/dist/js/client.d.ts +0 -8
  11. package/dist/js/client.d.ts.map +1 -1
  12. package/dist/js/client.js +3 -19
  13. package/dist/js/client.js.map +1 -1
  14. package/dist/js/index.d.ts +5 -3
  15. package/dist/js/index.d.ts.map +1 -1
  16. package/dist/js/index.js +5 -3
  17. package/dist/js/index.js.map +1 -1
  18. package/dist/js/integrations/debugsymbolicator.d.ts +8 -60
  19. package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
  20. package/dist/js/integrations/debugsymbolicator.js +137 -209
  21. package/dist/js/integrations/debugsymbolicator.js.map +1 -1
  22. package/dist/js/integrations/debugsymbolicatorutils.d.ts +18 -0
  23. package/dist/js/integrations/debugsymbolicatorutils.d.ts.map +1 -0
  24. package/dist/js/integrations/debugsymbolicatorutils.js +70 -0
  25. package/dist/js/integrations/debugsymbolicatorutils.js.map +1 -0
  26. package/dist/js/integrations/default.d.ts.map +1 -1
  27. package/dist/js/integrations/default.js +24 -49
  28. package/dist/js/integrations/default.js.map +1 -1
  29. package/dist/js/integrations/devicecontext.d.ts +8 -15
  30. package/dist/js/integrations/devicecontext.d.ts.map +1 -1
  31. package/dist/js/integrations/devicecontext.js +74 -74
  32. package/dist/js/integrations/devicecontext.js.map +1 -1
  33. package/dist/js/integrations/eventorigin.d.ts +8 -15
  34. package/dist/js/integrations/eventorigin.d.ts.map +1 -1
  35. package/dist/js/integrations/eventorigin.js +17 -17
  36. package/dist/js/integrations/eventorigin.js.map +1 -1
  37. package/dist/js/integrations/expocontext.d.ts +8 -15
  38. package/dist/js/integrations/expocontext.d.ts.map +1 -1
  39. package/dist/js/integrations/expocontext.js +28 -32
  40. package/dist/js/integrations/expocontext.js.map +1 -1
  41. package/dist/js/integrations/exports.d.ts +16 -0
  42. package/dist/js/integrations/exports.d.ts.map +1 -0
  43. package/dist/js/integrations/exports.js +16 -0
  44. package/dist/js/integrations/exports.js.map +1 -0
  45. package/dist/js/integrations/index.d.ts +4 -1
  46. package/dist/js/integrations/index.d.ts.map +1 -1
  47. package/dist/js/integrations/index.js +5 -1
  48. package/dist/js/integrations/index.js.map +1 -1
  49. package/dist/js/integrations/modulesloader.d.ts +8 -15
  50. package/dist/js/integrations/modulesloader.d.ts.map +1 -1
  51. package/dist/js/integrations/modulesloader.js +34 -31
  52. package/dist/js/integrations/modulesloader.js.map +1 -1
  53. package/dist/js/integrations/nativelinkederrors.d.ts +8 -51
  54. package/dist/js/integrations/nativelinkederrors.d.ts.map +1 -1
  55. package/dist/js/integrations/nativelinkederrors.js +112 -124
  56. package/dist/js/integrations/nativelinkederrors.js.map +1 -1
  57. package/dist/js/integrations/reactnativeerrorhandlers.d.ts +8 -54
  58. package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
  59. package/dist/js/integrations/reactnativeerrorhandlers.js +109 -199
  60. package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
  61. package/dist/js/integrations/reactnativeerrorhandlersutils.d.ts +27 -0
  62. package/dist/js/integrations/reactnativeerrorhandlersutils.d.ts.map +1 -0
  63. package/dist/js/integrations/reactnativeerrorhandlersutils.js +77 -0
  64. package/dist/js/integrations/reactnativeerrorhandlersutils.js.map +1 -0
  65. package/dist/js/integrations/reactnativeinfo.d.ts +8 -15
  66. package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
  67. package/dist/js/integrations/reactnativeinfo.js +51 -51
  68. package/dist/js/integrations/reactnativeinfo.js.map +1 -1
  69. package/dist/js/integrations/release.d.ts +8 -15
  70. package/dist/js/integrations/release.d.ts.map +1 -1
  71. package/dist/js/integrations/release.js +55 -57
  72. package/dist/js/integrations/release.js.map +1 -1
  73. package/dist/js/integrations/rewriteframes.js +2 -2
  74. package/dist/js/integrations/rewriteframes.js.map +1 -1
  75. package/dist/js/integrations/screenshot.d.ts +8 -23
  76. package/dist/js/integrations/screenshot.d.ts.map +1 -1
  77. package/dist/js/integrations/screenshot.js +31 -47
  78. package/dist/js/integrations/screenshot.js.map +1 -1
  79. package/dist/js/integrations/sdkinfo.d.ts +8 -16
  80. package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
  81. package/dist/js/integrations/sdkinfo.js +54 -41
  82. package/dist/js/integrations/sdkinfo.js.map +1 -1
  83. package/dist/js/integrations/spotlight.d.ts +10 -2
  84. package/dist/js/integrations/spotlight.d.ts.map +1 -1
  85. package/dist/js/integrations/spotlight.js +14 -9
  86. package/dist/js/integrations/spotlight.js.map +1 -1
  87. package/dist/js/integrations/viewhierarchy.d.ts +8 -18
  88. package/dist/js/integrations/viewhierarchy.d.ts.map +1 -1
  89. package/dist/js/integrations/viewhierarchy.js +46 -43
  90. package/dist/js/integrations/viewhierarchy.js.map +1 -1
  91. package/dist/js/options.d.ts +2 -24
  92. package/dist/js/options.d.ts.map +1 -1
  93. package/dist/js/options.js.map +1 -1
  94. package/dist/js/profiling/integration.d.ts +8 -32
  95. package/dist/js/profiling/integration.d.ts.map +1 -1
  96. package/dist/js/profiling/integration.js +120 -119
  97. package/dist/js/profiling/integration.js.map +1 -1
  98. package/dist/js/tracing/nativeframes.d.ts +0 -4
  99. package/dist/js/tracing/nativeframes.d.ts.map +1 -1
  100. package/dist/js/tracing/nativeframes.js +14 -14
  101. package/dist/js/tracing/nativeframes.js.map +1 -1
  102. package/dist/js/utils/environment.d.ts +0 -4
  103. package/dist/js/utils/environment.d.ts.map +1 -1
  104. package/dist/js/utils/environment.js +0 -8
  105. package/dist/js/utils/environment.js.map +1 -1
  106. package/dist/js/version.d.ts +1 -1
  107. package/dist/js/version.d.ts.map +1 -1
  108. package/dist/js/version.js +1 -1
  109. package/dist/js/version.js.map +1 -1
  110. package/dist/js/wrapper.d.ts +1 -7
  111. package/dist/js/wrapper.d.ts.map +1 -1
  112. package/dist/js/wrapper.js +0 -24
  113. package/dist/js/wrapper.js.map +1 -1
  114. package/ios/RNSentry.mm +1 -47
  115. package/ios/RNSentryOnDrawReporter.h +23 -0
  116. package/ios/RNSentryOnDrawReporter.m +2 -17
  117. package/package.json +1 -9
  118. package/src/js/NativeRNSentry.ts +0 -2
  119. package/ts3.8/dist/js/NativeRNSentry.d.ts +0 -2
  120. package/ts3.8/dist/js/client.d.ts +0 -8
  121. package/ts3.8/dist/js/index.d.ts +5 -3
  122. package/ts3.8/dist/js/integrations/debugsymbolicator.d.ts +8 -60
  123. package/ts3.8/dist/js/integrations/debugsymbolicatorutils.d.ts +18 -0
  124. package/ts3.8/dist/js/integrations/devicecontext.d.ts +8 -15
  125. package/ts3.8/dist/js/integrations/eventorigin.d.ts +8 -15
  126. package/ts3.8/dist/js/integrations/expocontext.d.ts +8 -15
  127. package/ts3.8/dist/js/integrations/exports.d.ts +16 -0
  128. package/ts3.8/dist/js/integrations/index.d.ts +4 -1
  129. package/ts3.8/dist/js/integrations/modulesloader.d.ts +8 -15
  130. package/ts3.8/dist/js/integrations/nativelinkederrors.d.ts +8 -51
  131. package/ts3.8/dist/js/integrations/reactnativeerrorhandlers.d.ts +8 -54
  132. package/ts3.8/dist/js/integrations/reactnativeerrorhandlersutils.d.ts +27 -0
  133. package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +8 -15
  134. package/ts3.8/dist/js/integrations/release.d.ts +8 -15
  135. package/ts3.8/dist/js/integrations/screenshot.d.ts +8 -23
  136. package/ts3.8/dist/js/integrations/sdkinfo.d.ts +8 -16
  137. package/ts3.8/dist/js/integrations/spotlight.d.ts +10 -2
  138. package/ts3.8/dist/js/integrations/viewhierarchy.d.ts +8 -18
  139. package/ts3.8/dist/js/options.d.ts +2 -24
  140. package/ts3.8/dist/js/profiling/integration.d.ts +8 -32
  141. package/ts3.8/dist/js/tracing/nativeframes.d.ts +0 -4
  142. package/ts3.8/dist/js/utils/environment.d.ts +0 -4
  143. package/ts3.8/dist/js/version.d.ts +1 -1
  144. package/ts3.8/dist/js/wrapper.d.ts +1 -7
  145. package/dist/js/integrations/mobilereplay.d.ts +0 -36
  146. package/dist/js/integrations/mobilereplay.d.ts.map +0 -1
  147. package/dist/js/integrations/mobilereplay.js +0 -97
  148. package/dist/js/integrations/mobilereplay.js.map +0 -1
  149. package/dist/js/utils/clientutils.d.ts +0 -8
  150. package/dist/js/utils/clientutils.d.ts.map +0 -1
  151. package/dist/js/utils/clientutils.js +0 -7
  152. package/dist/js/utils/clientutils.js.map +0 -1
  153. package/ts3.8/dist/js/integrations/mobilereplay.d.ts +0 -36
  154. package/ts3.8/dist/js/utils/clientutils.d.ts +0 -8
@@ -1,97 +0,0 @@
1
- import { __awaiter } from "tslib";
2
- import { logger } from '@sentry/utils';
3
- import { isHardCrash } from '../misc';
4
- import { hasHooks } from '../utils/clientutils';
5
- import { isExpoGo, notMobileOs } from '../utils/environment';
6
- import { NATIVE } from '../wrapper';
7
- export const MOBILE_REPLAY_INTEGRATION_NAME = 'MobileReplay';
8
- const defaultOptions = {
9
- maskAllText: true,
10
- maskAllImages: true,
11
- };
12
- /**
13
- * The Mobile Replay Integration, let's you adjust the default mobile replay options.
14
- * To be passed to `Sentry.init` with `replaysOnErrorSampleRate` or `replaysSessionSampleRate`.
15
- *
16
- * ```javascript
17
- * Sentry.init({
18
- * _experiments: {
19
- * replaysOnErrorSampleRate: 1.0,
20
- * replaysSessionSampleRate: 1.0,
21
- * },
22
- * integrations: [mobileReplayIntegration({
23
- * // Adjust the default options
24
- * })],
25
- * });
26
- * ```
27
- *
28
- * @experimental
29
- */
30
- export const mobileReplayIntegration = (initOptions = defaultOptions) => {
31
- if (isExpoGo()) {
32
- logger.warn(`[Sentry] ${MOBILE_REPLAY_INTEGRATION_NAME} is not supported in Expo Go. Use EAS Build or \`expo prebuild\` to enable it.`);
33
- }
34
- if (notMobileOs()) {
35
- logger.warn(`[Sentry] ${MOBILE_REPLAY_INTEGRATION_NAME} is not supported on this platform.`);
36
- }
37
- if (isExpoGo() || notMobileOs()) {
38
- return mobileReplayIntegrationNoop();
39
- }
40
- const options = Object.assign(Object.assign({}, defaultOptions), initOptions);
41
- function processEvent(event) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- const hasException = event.exception && event.exception.values && event.exception.values.length > 0;
44
- if (!hasException) {
45
- // Event is not an error, will not capture replay
46
- return event;
47
- }
48
- const recordingReplayId = NATIVE.getCurrentReplayId();
49
- if (recordingReplayId) {
50
- logger.debug(`[Sentry] ${MOBILE_REPLAY_INTEGRATION_NAME} assign already recording replay ${recordingReplayId} for event ${event.event_id}.`);
51
- return event;
52
- }
53
- const replayId = yield NATIVE.startReplay(isHardCrash(event));
54
- if (!replayId) {
55
- logger.debug(`[Sentry] ${MOBILE_REPLAY_INTEGRATION_NAME} not sampled for event ${event.event_id}.`);
56
- return event;
57
- }
58
- return event;
59
- });
60
- }
61
- function setup(client) {
62
- if (!hasHooks(client)) {
63
- return;
64
- }
65
- client.on('createDsc', (dsc) => {
66
- if (dsc.replay_id) {
67
- return;
68
- }
69
- // TODO: For better performance, we should emit replayId changes on native, and hold the replayId value in JS
70
- const currentReplayId = NATIVE.getCurrentReplayId();
71
- if (currentReplayId) {
72
- dsc.replay_id = currentReplayId;
73
- }
74
- });
75
- }
76
- // TODO: When adding manual API, ensure overlap with the web replay so users can use the same API interchangeably
77
- // https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/integration.ts#L45
78
- return {
79
- name: MOBILE_REPLAY_INTEGRATION_NAME,
80
- setupOnce() {
81
- /* Noop */
82
- },
83
- setup,
84
- processEvent,
85
- options: options,
86
- };
87
- };
88
- const mobileReplayIntegrationNoop = () => {
89
- return {
90
- name: MOBILE_REPLAY_INTEGRATION_NAME,
91
- setupOnce() {
92
- /* Noop */
93
- },
94
- options: defaultOptions,
95
- };
96
- };
97
- //# sourceMappingURL=mobilereplay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mobilereplay.js","sourceRoot":"","sources":["../../../src/js/integrations/mobilereplay.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,MAAM,CAAC,MAAM,8BAA8B,GAAG,cAAc,CAAC;AAc7D,MAAM,cAAc,GAAkC;IACpD,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;CACpB,CAAC;AAMF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,cAAmC,cAAc,EAA2B,EAAE;IACpH,IAAI,QAAQ,EAAE,EAAE;QACd,MAAM,CAAC,IAAI,CACT,YAAY,8BAA8B,gFAAgF,CAC3H,CAAC;KACH;IACD,IAAI,WAAW,EAAE,EAAE;QACjB,MAAM,CAAC,IAAI,CAAC,YAAY,8BAA8B,qCAAqC,CAAC,CAAC;KAC9F;IAED,IAAI,QAAQ,EAAE,IAAI,WAAW,EAAE,EAAE;QAC/B,OAAO,2BAA2B,EAAE,CAAC;KACtC;IAED,MAAM,OAAO,mCAAQ,cAAc,GAAK,WAAW,CAAE,CAAC;IAEtD,SAAe,YAAY,CAAC,KAAY;;YACtC,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;YACpG,IAAI,CAAC,YAAY,EAAE;gBACjB,iDAAiD;gBACjD,OAAO,KAAK,CAAC;aACd;YAED,MAAM,iBAAiB,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC;YACtD,IAAI,iBAAiB,EAAE;gBACrB,MAAM,CAAC,KAAK,CACV,YAAY,8BAA8B,oCAAoC,iBAAiB,cAAc,KAAK,CAAC,QAAQ,GAAG,CAC/H,CAAC;gBACF,OAAO,KAAK,CAAC;aACd;YAED,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;YAC9D,IAAI,CAAC,QAAQ,EAAE;gBACb,MAAM,CAAC,KAAK,CAAC,YAAY,8BAA8B,0BAA0B,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC;gBACpG,OAAO,KAAK,CAAC;aACd;YAED,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;IAED,SAAS,KAAK,CAAC,MAAc;QAC3B,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YACrB,OAAO;SACR;QAED,MAAM,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,GAA2B,EAAE,EAAE;YACrD,IAAI,GAAG,CAAC,SAAS,EAAE;gBACjB,OAAO;aACR;YAED,6GAA6G;YAC7G,MAAM,eAAe,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC;YACpD,IAAI,eAAe,EAAE;gBACnB,GAAG,CAAC,SAAS,GAAG,eAAe,CAAC;aACjC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,iHAAiH;IACjH,8GAA8G;IAC9G,OAAO;QACL,IAAI,EAAE,8BAA8B;QACpC,SAAS;YACP,UAAU;QACZ,CAAC;QACD,KAAK;QACL,YAAY;QACZ,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,GAA4B,EAAE;IAChE,OAAO;QACL,IAAI,EAAE,8BAA8B;QACpC,SAAS;YACP,UAAU;QACZ,CAAC;QACD,OAAO,EAAE,cAAc;KACxB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type { Client, DynamicSamplingContext, Event, IntegrationFnResult } from '@sentry/types';\nimport { logger } from '@sentry/utils';\n\nimport { isHardCrash } from '../misc';\nimport { hasHooks } from '../utils/clientutils';\nimport { isExpoGo, notMobileOs } from '../utils/environment';\nimport { NATIVE } from '../wrapper';\n\nexport const MOBILE_REPLAY_INTEGRATION_NAME = 'MobileReplay';\n\nexport interface MobileReplayOptions {\n /**\n * Mask all text in recordings\n */\n maskAllText?: boolean;\n\n /**\n * Mask all text in recordings\n */\n maskAllImages?: boolean;\n}\n\nconst defaultOptions: Required<MobileReplayOptions> = {\n maskAllText: true,\n maskAllImages: true,\n};\n\ntype MobileReplayIntegration = IntegrationFnResult & {\n options: Required<MobileReplayOptions>;\n};\n\n/**\n * The Mobile Replay Integration, let's you adjust the default mobile replay options.\n * To be passed to `Sentry.init` with `replaysOnErrorSampleRate` or `replaysSessionSampleRate`.\n *\n * ```javascript\n * Sentry.init({\n * _experiments: {\n * replaysOnErrorSampleRate: 1.0,\n * replaysSessionSampleRate: 1.0,\n * },\n * integrations: [mobileReplayIntegration({\n * // Adjust the default options\n * })],\n * });\n * ```\n *\n * @experimental\n */\nexport const mobileReplayIntegration = (initOptions: MobileReplayOptions = defaultOptions): MobileReplayIntegration => {\n if (isExpoGo()) {\n logger.warn(\n `[Sentry] ${MOBILE_REPLAY_INTEGRATION_NAME} is not supported in Expo Go. Use EAS Build or \\`expo prebuild\\` to enable it.`,\n );\n }\n if (notMobileOs()) {\n logger.warn(`[Sentry] ${MOBILE_REPLAY_INTEGRATION_NAME} is not supported on this platform.`);\n }\n\n if (isExpoGo() || notMobileOs()) {\n return mobileReplayIntegrationNoop();\n }\n\n const options = { ...defaultOptions, ...initOptions };\n\n async function processEvent(event: Event): Promise<Event> {\n const hasException = event.exception && event.exception.values && event.exception.values.length > 0;\n if (!hasException) {\n // Event is not an error, will not capture replay\n return event;\n }\n\n const recordingReplayId = NATIVE.getCurrentReplayId();\n if (recordingReplayId) {\n logger.debug(\n `[Sentry] ${MOBILE_REPLAY_INTEGRATION_NAME} assign already recording replay ${recordingReplayId} for event ${event.event_id}.`,\n );\n return event;\n }\n\n const replayId = await NATIVE.startReplay(isHardCrash(event));\n if (!replayId) {\n logger.debug(`[Sentry] ${MOBILE_REPLAY_INTEGRATION_NAME} not sampled for event ${event.event_id}.`);\n return event;\n }\n\n return event;\n }\n\n function setup(client: Client): void {\n if (!hasHooks(client)) {\n return;\n }\n\n client.on('createDsc', (dsc: DynamicSamplingContext) => {\n if (dsc.replay_id) {\n return;\n }\n\n // TODO: For better performance, we should emit replayId changes on native, and hold the replayId value in JS\n const currentReplayId = NATIVE.getCurrentReplayId();\n if (currentReplayId) {\n dsc.replay_id = currentReplayId;\n }\n });\n }\n\n // TODO: When adding manual API, ensure overlap with the web replay so users can use the same API interchangeably\n // https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/integration.ts#L45\n return {\n name: MOBILE_REPLAY_INTEGRATION_NAME,\n setupOnce() {\n /* Noop */\n },\n setup,\n processEvent,\n options: options,\n };\n};\n\nconst mobileReplayIntegrationNoop = (): MobileReplayIntegration => {\n return {\n name: MOBILE_REPLAY_INTEGRATION_NAME,\n setupOnce() {\n /* Noop */\n },\n options: defaultOptions,\n };\n};\n"]}
@@ -1,8 +0,0 @@
1
- import type { Client } from '@sentry/types';
2
- /**
3
- *
4
- */
5
- export declare function hasHooks(client: Client): client is Client & {
6
- on: Required<Client>['on'];
7
- };
8
- //# sourceMappingURL=clientutils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clientutils.d.ts","sourceRoot":"","sources":["../../../src/js/utils/clientutils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG;IAAE,EAAE,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAA;CAAE,CAE1F"}
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- */
4
- export function hasHooks(client) {
5
- return client.on !== undefined;
6
- }
7
- //# sourceMappingURL=clientutils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clientutils.js","sourceRoot":"","sources":["../../../src/js/utils/clientutils.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,MAAc;IACrC,OAAO,MAAM,CAAC,EAAE,KAAK,SAAS,CAAC;AACjC,CAAC","sourcesContent":["import type { Client } from '@sentry/types';\n\n/**\n *\n */\nexport function hasHooks(client: Client): client is Client & { on: Required<Client>['on'] } {\n return client.on !== undefined;\n}\n"]}
@@ -1,36 +0,0 @@
1
- import type { IntegrationFnResult } from '@sentry/types';
2
- export declare const MOBILE_REPLAY_INTEGRATION_NAME = "MobileReplay";
3
- export interface MobileReplayOptions {
4
- /**
5
- * Mask all text in recordings
6
- */
7
- maskAllText?: boolean;
8
- /**
9
- * Mask all text in recordings
10
- */
11
- maskAllImages?: boolean;
12
- }
13
- type MobileReplayIntegration = IntegrationFnResult & {
14
- options: Required<MobileReplayOptions>;
15
- };
16
- /**
17
- * The Mobile Replay Integration, let's you adjust the default mobile replay options.
18
- * To be passed to `Sentry.init` with `replaysOnErrorSampleRate` or `replaysSessionSampleRate`.
19
- *
20
- * ```javascript
21
- * Sentry.init({
22
- * _experiments: {
23
- * replaysOnErrorSampleRate: 1.0,
24
- * replaysSessionSampleRate: 1.0,
25
- * },
26
- * integrations: [mobileReplayIntegration({
27
- * // Adjust the default options
28
- * })],
29
- * });
30
- * ```
31
- *
32
- * @experimental
33
- */
34
- export declare const mobileReplayIntegration: (initOptions?: MobileReplayOptions) => MobileReplayIntegration;
35
- export {};
36
- //# sourceMappingURL=mobilereplay.d.ts.map
@@ -1,8 +0,0 @@
1
- import type { Client } from '@sentry/types';
2
- /**
3
- *
4
- */
5
- export declare function hasHooks(client: Client): client is Client & {
6
- on: Required<Client>['on'];
7
- };
8
- //# sourceMappingURL=clientutils.d.ts.map