@sentry/replay 8.0.0-alpha.5 → 10.59.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 (268) hide show
  1. package/LICENSE +18 -11
  2. package/README.md +8 -17
  3. package/build/npm/cjs/index.js +8390 -0
  4. package/build/npm/cjs/index.js.map +1 -0
  5. package/build/npm/cjs/worker-bundler.js +1 -0
  6. package/build/npm/esm/index.js +8387 -0
  7. package/build/npm/esm/index.js.map +1 -0
  8. package/build/npm/esm/package.json +1 -0
  9. package/build/npm/esm/worker-bundler.js +1 -0
  10. package/{types → build/npm/types}/constants.d.ts +3 -2
  11. package/build/npm/types/constants.d.ts.map +1 -0
  12. package/{types → build/npm/types}/coreHandlers/handleAfterSendEvent.d.ts +1 -1
  13. package/{types → build/npm/types}/coreHandlers/handleAfterSendEvent.d.ts.map +1 -1
  14. package/{types → build/npm/types}/coreHandlers/handleBeforeSendEvent.d.ts +1 -1
  15. package/{types → build/npm/types}/coreHandlers/handleBeforeSendEvent.d.ts.map +1 -1
  16. package/{types → build/npm/types}/coreHandlers/handleBreadcrumbs.d.ts +1 -1
  17. package/{types → build/npm/types}/coreHandlers/handleBreadcrumbs.d.ts.map +1 -1
  18. package/{types → build/npm/types}/coreHandlers/handleClick.d.ts +2 -2
  19. package/{types → build/npm/types}/coreHandlers/handleClick.d.ts.map +1 -1
  20. package/{types → build/npm/types}/coreHandlers/handleDom.d.ts +1 -1
  21. package/{types → build/npm/types}/coreHandlers/handleDom.d.ts.map +1 -1
  22. package/{types → build/npm/types}/coreHandlers/handleGlobalEvent.d.ts +1 -1
  23. package/{types → build/npm/types}/coreHandlers/handleGlobalEvent.d.ts.map +1 -1
  24. package/{types → build/npm/types}/coreHandlers/handleHistory.d.ts +1 -1
  25. package/{types → build/npm/types}/coreHandlers/handleHistory.d.ts.map +1 -1
  26. package/{types → build/npm/types}/coreHandlers/handleKeyboardEvent.d.ts +1 -1
  27. package/{types → build/npm/types}/coreHandlers/handleKeyboardEvent.d.ts.map +1 -1
  28. package/{types → build/npm/types}/coreHandlers/handleNetworkBreadcrumbs.d.ts +1 -1
  29. package/{types → build/npm/types}/coreHandlers/handleNetworkBreadcrumbs.d.ts.map +1 -1
  30. package/build/npm/types/coreHandlers/performanceObserver.d.ts.map +1 -0
  31. package/{types → build/npm/types}/coreHandlers/util/addBreadcrumbEvent.d.ts +1 -1
  32. package/{types → build/npm/types}/coreHandlers/util/addBreadcrumbEvent.d.ts.map +1 -1
  33. package/{types → build/npm/types}/coreHandlers/util/addFeedbackBreadcrumb.d.ts +1 -1
  34. package/{types → build/npm/types}/coreHandlers/util/addFeedbackBreadcrumb.d.ts.map +1 -1
  35. package/{types → build/npm/types}/coreHandlers/util/addNetworkBreadcrumb.d.ts.map +1 -1
  36. package/{types → build/npm/types}/coreHandlers/util/domUtils.d.ts +1 -1
  37. package/{types → build/npm/types}/coreHandlers/util/domUtils.d.ts.map +1 -1
  38. package/{types → build/npm/types}/coreHandlers/util/fetchUtils.d.ts +4 -3
  39. package/build/npm/types/coreHandlers/util/fetchUtils.d.ts.map +1 -0
  40. package/{types → build/npm/types}/coreHandlers/util/getAttributesToRecord.d.ts.map +1 -1
  41. package/{types → build/npm/types}/coreHandlers/util/networkUtils.d.ts +2 -3
  42. package/build/npm/types/coreHandlers/util/networkUtils.d.ts.map +1 -0
  43. package/{types → build/npm/types}/coreHandlers/util/onWindowOpen.d.ts.map +1 -1
  44. package/{types → build/npm/types}/coreHandlers/util/shouldSampleForBufferEvent.d.ts +2 -2
  45. package/{types → build/npm/types}/coreHandlers/util/shouldSampleForBufferEvent.d.ts.map +1 -1
  46. package/{types → build/npm/types}/coreHandlers/util/xhrUtils.d.ts +4 -3
  47. package/build/npm/types/coreHandlers/util/xhrUtils.d.ts.map +1 -0
  48. package/{types → build/npm/types}/eventBuffer/EventBufferArray.d.ts +2 -0
  49. package/build/npm/types/eventBuffer/EventBufferArray.d.ts.map +1 -0
  50. package/{types → build/npm/types}/eventBuffer/EventBufferCompressionWorker.d.ts +5 -3
  51. package/build/npm/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +1 -0
  52. package/{types → build/npm/types}/eventBuffer/EventBufferProxy.d.ts +5 -1
  53. package/build/npm/types/eventBuffer/EventBufferProxy.d.ts.map +1 -0
  54. package/{types → build/npm/types}/eventBuffer/WorkerHandler.d.ts +3 -1
  55. package/build/npm/types/eventBuffer/WorkerHandler.d.ts.map +1 -0
  56. package/{types → build/npm/types}/eventBuffer/index.d.ts +2 -2
  57. package/build/npm/types/eventBuffer/index.d.ts.map +1 -0
  58. package/{types → build/npm/types}/integration.d.ts +26 -13
  59. package/build/npm/types/integration.d.ts.map +1 -0
  60. package/{types → build/npm/types}/replay.d.ts +32 -27
  61. package/build/npm/types/replay.d.ts.map +1 -0
  62. package/{types → build/npm/types}/session/Session.d.ts.map +1 -1
  63. package/build/npm/types/session/fetchSession.d.ts +6 -0
  64. package/build/npm/types/session/fetchSession.d.ts.map +1 -0
  65. package/{types → build/npm/types}/session/loadOrCreateSession.d.ts +1 -2
  66. package/build/npm/types/session/loadOrCreateSession.d.ts.map +1 -0
  67. package/{types → build/npm/types}/types/performance.d.ts +16 -4
  68. package/{types → build/npm/types}/types/performance.d.ts.map +1 -1
  69. package/{types → build/npm/types}/types/replay.d.ts +53 -42
  70. package/build/npm/types/types/replay.d.ts.map +1 -0
  71. package/{types → build/npm/types}/types/replayFrame.d.ts +14 -7
  72. package/build/npm/types/types/replayFrame.d.ts.map +1 -0
  73. package/{types → build/npm/types}/types/request.d.ts +1 -1
  74. package/build/npm/types/types/request.d.ts.map +1 -0
  75. package/{types-ts3.8 → build/npm/types}/types/rrweb.d.ts +64 -60
  76. package/{types → build/npm/types}/types/rrweb.d.ts.map +1 -1
  77. package/{types → build/npm/types}/util/addEvent.d.ts.map +1 -1
  78. package/{types → build/npm/types}/util/addGlobalListeners.d.ts.map +1 -1
  79. package/build/npm/types/util/createPerformanceEntries.d.ts +52 -0
  80. package/build/npm/types/util/createPerformanceEntries.d.ts.map +1 -0
  81. package/{types → build/npm/types}/util/createPerformanceSpans.d.ts.map +1 -1
  82. package/{types → build/npm/types}/util/createReplayEnvelope.d.ts +1 -1
  83. package/{types → build/npm/types}/util/createReplayEnvelope.d.ts.map +1 -1
  84. package/{types → build/npm/types}/util/debounce.d.ts.map +1 -1
  85. package/{types → build/npm/types}/util/eventUtils.d.ts +1 -1
  86. package/{types → build/npm/types}/util/eventUtils.d.ts.map +1 -1
  87. package/{types → build/npm/types}/util/getPrivacyOptions.d.ts +3 -3
  88. package/build/npm/types/util/getPrivacyOptions.d.ts.map +1 -0
  89. package/build/npm/types/util/getRecordingSamplingOptions.d.ts +10 -0
  90. package/build/npm/types/util/getRecordingSamplingOptions.d.ts.map +1 -0
  91. package/{types → build/npm/types}/util/handleRecordingEmit.d.ts +1 -0
  92. package/build/npm/types/util/handleRecordingEmit.d.ts.map +1 -0
  93. package/{types → build/npm/types}/util/isRrwebError.d.ts +1 -1
  94. package/{types → build/npm/types}/util/isRrwebError.d.ts.map +1 -1
  95. package/build/npm/types/util/logger.d.ts +24 -0
  96. package/build/npm/types/util/logger.d.ts.map +1 -0
  97. package/{types → build/npm/types}/util/maskAttribute.d.ts +2 -0
  98. package/{types → build/npm/types}/util/maskAttribute.d.ts.map +1 -1
  99. package/{types → build/npm/types}/util/prepareRecordingData.d.ts +1 -1
  100. package/{types → build/npm/types}/util/prepareRecordingData.d.ts.map +1 -1
  101. package/{types → build/npm/types}/util/prepareReplayEvent.d.ts +2 -5
  102. package/build/npm/types/util/prepareReplayEvent.d.ts.map +1 -0
  103. package/build/npm/types/util/resetReplayIdOnDynamicSamplingContext.d.ts +14 -0
  104. package/build/npm/types/util/resetReplayIdOnDynamicSamplingContext.d.ts.map +1 -0
  105. package/build/npm/types/util/rrweb.d.ts +7 -0
  106. package/build/npm/types/util/rrweb.d.ts.map +1 -0
  107. package/{types → build/npm/types}/util/sendReplay.d.ts.map +1 -1
  108. package/{types → build/npm/types}/util/sendReplayRequest.d.ts +8 -2
  109. package/build/npm/types/util/sendReplayRequest.d.ts.map +1 -0
  110. package/{types → build/npm/types}/util/shouldFilterRequest.d.ts.map +1 -1
  111. package/build/npm/types/worker-bundler.d.ts +2 -0
  112. package/build/npm/types/worker-bundler.d.ts.map +1 -0
  113. package/{types-ts3.8 → build/npm/types-ts3.8}/constants.d.ts +3 -2
  114. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleAfterSendEvent.d.ts +1 -1
  115. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleBeforeSendEvent.d.ts +1 -1
  116. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleBreadcrumbs.d.ts +1 -1
  117. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleClick.d.ts +2 -2
  118. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleDom.d.ts +1 -1
  119. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleGlobalEvent.d.ts +1 -1
  120. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleHistory.d.ts +1 -1
  121. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleKeyboardEvent.d.ts +1 -1
  122. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleNetworkBreadcrumbs.d.ts +1 -1
  123. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addBreadcrumbEvent.d.ts +1 -1
  124. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addFeedbackBreadcrumb.d.ts +1 -1
  125. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/domUtils.d.ts +1 -1
  126. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/fetchUtils.d.ts +4 -3
  127. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/networkUtils.d.ts +2 -6
  128. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/shouldSampleForBufferEvent.d.ts +2 -2
  129. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/xhrUtils.d.ts +4 -3
  130. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferArray.d.ts +2 -0
  131. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferCompressionWorker.d.ts +5 -3
  132. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferProxy.d.ts +4 -1
  133. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/WorkerHandler.d.ts +3 -1
  134. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/index.d.ts +2 -2
  135. package/{types-ts3.8 → build/npm/types-ts3.8}/integration.d.ts +26 -13
  136. package/{types-ts3.8 → build/npm/types-ts3.8}/replay.d.ts +32 -27
  137. package/{types-ts3.8 → build/npm/types-ts3.8}/session/fetchSession.d.ts +1 -1
  138. package/{types-ts3.8 → build/npm/types-ts3.8}/session/loadOrCreateSession.d.ts +1 -2
  139. package/{types-ts3.8 → build/npm/types-ts3.8}/types/performance.d.ts +16 -4
  140. package/{types-ts3.8 → build/npm/types-ts3.8}/types/replay.d.ts +53 -42
  141. package/{types-ts3.8 → build/npm/types-ts3.8}/types/replayFrame.d.ts +14 -7
  142. package/{types-ts3.8 → build/npm/types-ts3.8}/types/request.d.ts +1 -1
  143. package/{types → build/npm/types-ts3.8}/types/rrweb.d.ts +64 -60
  144. package/build/npm/types-ts3.8/util/createPerformanceEntries.d.ts +52 -0
  145. package/{types-ts3.8 → build/npm/types-ts3.8}/util/createReplayEnvelope.d.ts +1 -1
  146. package/{types-ts3.8 → build/npm/types-ts3.8}/util/eventUtils.d.ts +1 -1
  147. package/{types-ts3.8 → build/npm/types-ts3.8}/util/getPrivacyOptions.d.ts +3 -3
  148. package/build/npm/types-ts3.8/util/getRecordingSamplingOptions.d.ts +10 -0
  149. package/{types-ts3.8 → build/npm/types-ts3.8}/util/handleRecordingEmit.d.ts +1 -0
  150. package/{types-ts3.8 → build/npm/types-ts3.8}/util/isRrwebError.d.ts +1 -1
  151. package/build/npm/types-ts3.8/util/logger.d.ts +24 -0
  152. package/{types-ts3.8 → build/npm/types-ts3.8}/util/maskAttribute.d.ts +2 -0
  153. package/{types-ts3.8 → build/npm/types-ts3.8}/util/prepareRecordingData.d.ts +1 -1
  154. package/{types-ts3.8 → build/npm/types-ts3.8}/util/prepareReplayEvent.d.ts +2 -5
  155. package/build/npm/types-ts3.8/util/resetReplayIdOnDynamicSamplingContext.d.ts +14 -0
  156. package/build/npm/types-ts3.8/util/rrweb.d.ts +7 -0
  157. package/{types-ts3.8 → build/npm/types-ts3.8}/util/sendReplayRequest.d.ts +8 -2
  158. package/build/npm/types-ts3.8/worker-bundler.d.ts +2 -0
  159. package/package.json +65 -27
  160. package/cjs/index.js +0 -9382
  161. package/cjs/index.js.map +0 -1
  162. package/esm/index.js +0 -9375
  163. package/esm/index.js.map +0 -1
  164. package/esm/package.json +0 -1
  165. package/types/constants.d.ts.map +0 -1
  166. package/types/coreHandlers/performanceObserver.d.ts.map +0 -1
  167. package/types/coreHandlers/util/fetchUtils.d.ts.map +0 -1
  168. package/types/coreHandlers/util/networkUtils.d.ts.map +0 -1
  169. package/types/coreHandlers/util/xhrUtils.d.ts.map +0 -1
  170. package/types/eventBuffer/EventBufferArray.d.ts.map +0 -1
  171. package/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +0 -1
  172. package/types/eventBuffer/EventBufferProxy.d.ts.map +0 -1
  173. package/types/eventBuffer/WorkerHandler.d.ts.map +0 -1
  174. package/types/eventBuffer/index.d.ts.map +0 -1
  175. package/types/integration.d.ts.map +0 -1
  176. package/types/replay.d.ts.map +0 -1
  177. package/types/session/fetchSession.d.ts +0 -6
  178. package/types/session/fetchSession.d.ts.map +0 -1
  179. package/types/session/index.d.ts +0 -2
  180. package/types/session/index.d.ts.map +0 -1
  181. package/types/session/loadOrCreateSession.d.ts.map +0 -1
  182. package/types/types/replay.d.ts.map +0 -1
  183. package/types/types/replayFrame.d.ts.map +0 -1
  184. package/types/types/request.d.ts.map +0 -1
  185. package/types/util/createPerformanceEntries.d.ts +0 -13
  186. package/types/util/createPerformanceEntries.d.ts.map +0 -1
  187. package/types/util/getPrivacyOptions.d.ts.map +0 -1
  188. package/types/util/handleRecordingEmit.d.ts.map +0 -1
  189. package/types/util/log.d.ts +0 -10
  190. package/types/util/log.d.ts.map +0 -1
  191. package/types/util/prepareReplayEvent.d.ts.map +0 -1
  192. package/types/util/sendReplayRequest.d.ts.map +0 -1
  193. package/types-ts3.8/session/index.d.ts +0 -2
  194. package/types-ts3.8/util/createPerformanceEntries.d.ts +0 -13
  195. package/types-ts3.8/util/log.d.ts +0 -10
  196. /package/{types → build/npm/types}/coreHandlers/performanceObserver.d.ts +0 -0
  197. /package/{types → build/npm/types}/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -0
  198. /package/{types → build/npm/types}/coreHandlers/util/getAttributesToRecord.d.ts +0 -0
  199. /package/{types → build/npm/types}/coreHandlers/util/onWindowOpen.d.ts +0 -0
  200. /package/{types → build/npm/types}/debug-build.d.ts +0 -0
  201. /package/{types → build/npm/types}/debug-build.d.ts.map +0 -0
  202. /package/{types → build/npm/types}/eventBuffer/error.d.ts +0 -0
  203. /package/{types → build/npm/types}/eventBuffer/error.d.ts.map +0 -0
  204. /package/{types → build/npm/types}/index.d.ts +0 -0
  205. /package/{types → build/npm/types}/index.d.ts.map +0 -0
  206. /package/{types → build/npm/types}/session/Session.d.ts +0 -0
  207. /package/{types → build/npm/types}/session/clearSession.d.ts +0 -0
  208. /package/{types → build/npm/types}/session/clearSession.d.ts.map +0 -0
  209. /package/{types → build/npm/types}/session/createSession.d.ts +0 -0
  210. /package/{types → build/npm/types}/session/createSession.d.ts.map +0 -0
  211. /package/{types → build/npm/types}/session/saveSession.d.ts +0 -0
  212. /package/{types → build/npm/types}/session/saveSession.d.ts.map +0 -0
  213. /package/{types → build/npm/types}/session/shouldRefreshSession.d.ts +0 -0
  214. /package/{types → build/npm/types}/session/shouldRefreshSession.d.ts.map +0 -0
  215. /package/{types → build/npm/types}/types/index.d.ts +0 -0
  216. /package/{types → build/npm/types}/types/index.d.ts.map +0 -0
  217. /package/{types → build/npm/types}/util/addEvent.d.ts +0 -0
  218. /package/{types → build/npm/types}/util/addGlobalListeners.d.ts +0 -0
  219. /package/{types → build/npm/types}/util/addMemoryEntry.d.ts +0 -0
  220. /package/{types → build/npm/types}/util/addMemoryEntry.d.ts.map +0 -0
  221. /package/{types → build/npm/types}/util/createBreadcrumb.d.ts +0 -0
  222. /package/{types → build/npm/types}/util/createBreadcrumb.d.ts.map +0 -0
  223. /package/{types → build/npm/types}/util/createPerformanceSpans.d.ts +0 -0
  224. /package/{types → build/npm/types}/util/debounce.d.ts +0 -0
  225. /package/{types → build/npm/types}/util/getReplay.d.ts +0 -0
  226. /package/{types → build/npm/types}/util/getReplay.d.ts.map +0 -0
  227. /package/{types → build/npm/types}/util/hasSessionStorage.d.ts +0 -0
  228. /package/{types → build/npm/types}/util/hasSessionStorage.d.ts.map +0 -0
  229. /package/{types → build/npm/types}/util/isExpired.d.ts +0 -0
  230. /package/{types → build/npm/types}/util/isExpired.d.ts.map +0 -0
  231. /package/{types → build/npm/types}/util/isSampled.d.ts +0 -0
  232. /package/{types → build/npm/types}/util/isSampled.d.ts.map +0 -0
  233. /package/{types → build/npm/types}/util/isSessionExpired.d.ts +0 -0
  234. /package/{types → build/npm/types}/util/isSessionExpired.d.ts.map +0 -0
  235. /package/{types → build/npm/types}/util/sendReplay.d.ts +0 -0
  236. /package/{types → build/npm/types}/util/shouldFilterRequest.d.ts +0 -0
  237. /package/{types → build/npm/types}/util/throttle.d.ts +0 -0
  238. /package/{types → build/npm/types}/util/throttle.d.ts.map +0 -0
  239. /package/{types → build/npm/types}/util/timestamp.d.ts +0 -0
  240. /package/{types → build/npm/types}/util/timestamp.d.ts.map +0 -0
  241. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/performanceObserver.d.ts +0 -0
  242. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -0
  243. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/getAttributesToRecord.d.ts +0 -0
  244. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/onWindowOpen.d.ts +0 -0
  245. /package/{types-ts3.8 → build/npm/types-ts3.8}/debug-build.d.ts +0 -0
  246. /package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/error.d.ts +0 -0
  247. /package/{types-ts3.8 → build/npm/types-ts3.8}/index.d.ts +0 -0
  248. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/Session.d.ts +0 -0
  249. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/clearSession.d.ts +0 -0
  250. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/createSession.d.ts +0 -0
  251. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/saveSession.d.ts +0 -0
  252. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/shouldRefreshSession.d.ts +0 -0
  253. /package/{types-ts3.8 → build/npm/types-ts3.8}/types/index.d.ts +0 -0
  254. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addEvent.d.ts +0 -0
  255. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addGlobalListeners.d.ts +0 -0
  256. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addMemoryEntry.d.ts +0 -0
  257. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/createBreadcrumb.d.ts +0 -0
  258. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/createPerformanceSpans.d.ts +0 -0
  259. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/debounce.d.ts +0 -0
  260. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/getReplay.d.ts +0 -0
  261. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/hasSessionStorage.d.ts +0 -0
  262. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isExpired.d.ts +0 -0
  263. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isSampled.d.ts +0 -0
  264. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isSessionExpired.d.ts +0 -0
  265. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/sendReplay.d.ts +0 -0
  266. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/shouldFilterRequest.d.ts +0 -0
  267. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/throttle.d.ts +0 -0
  268. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/timestamp.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"type":"module","version":"10.59.0","sideEffects":false}
@@ -0,0 +1 @@
1
+ var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return {b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1;}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l;}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return (t+7)/8|0},b=function(n,r,e){return (null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8;},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16;},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return {t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e;}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s;}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w);}g=e;}return {t:new t(p),l:g}},A=function(t,n,r){return -1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t;},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else {if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0);}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0);}for(;a--;)o(s);a=1,s=t[h];}return {c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12);}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et]);}else _(r,m,N[rt]),m+=P[rt];}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r;}return t}(),S=function(){var t=1,n=0;return {p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16);}t=e,n=i;},d:function(){return (255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length;}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return (s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0;}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt);}}}W+=(J=K)-(K=_[J])&32767;}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L;}else F[q++]=s[j],++I[s[j]];}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B);}else {for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at));}c.i=v;}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8;},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length;}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n);},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i;}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768;}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2);},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2;},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return {p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r;},d:function(){return ~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e);}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n);}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n);},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d());}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n);},t.prototype.flush=function(){j.prototype.flush.call(this);},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0});}catch(t){}var J=function(){function t(t){this.ondata=t;}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1);},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t;},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h;}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f));}return b(i,0,s)}const N=new class{constructor(){this._init();}clear(){this._init();}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0;}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length;}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t);},this.stream=new J((t,n)=>{this.deflate.push(t,n);}),this.stream.push("[");}},P={clear:()=>{N.clear();},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t});}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t);}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
@@ -1,4 +1,5 @@
1
- export declare const WINDOW: import("@sentry/utils").InternalGlobal & Window;
1
+ import { GLOBAL_OBJ } from '@sentry/core';
2
+ export declare const WINDOW: typeof GLOBAL_OBJ & Window;
2
3
  export declare const REPLAY_SESSION_KEY = "sentryReplaySession";
3
4
  export declare const REPLAY_EVENT_NAME = "replay_event";
4
5
  export declare const RECORDING_EVENT_NAME = "replay_recording";
@@ -19,7 +20,7 @@ export declare const SLOW_CLICK_SCROLL_TIMEOUT = 300;
19
20
  export declare const REPLAY_MAX_EVENT_BUFFER_SIZE = 20000000;
20
21
  /** Replays must be min. 5s long before we send them. */
21
22
  export declare const MIN_REPLAY_DURATION = 4999;
22
- export declare const MIN_REPLAY_DURATION_LIMIT = 15000;
23
+ export declare const MIN_REPLAY_DURATION_LIMIT = 50000;
23
24
  /** The max. length of a replay. */
24
25
  export declare const MAX_REPLAY_DURATION = 3600000;
25
26
  /** Default attributes to be ignored when `maskAllText` is enabled */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,eAAO,MAAM,MAAM,EAAiB,OAAO,UAAU,GAAG,MAAM,CAAC;AAE/D,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAChD,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAG7D,eAAO,MAAM,2BAA2B,SAAU,CAAC;AAGnD,eAAO,MAAM,4BAA4B,SAAU,CAAC;AAEpD,2BAA2B;AAC3B,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAG7C,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAG7C,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAE3C,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,eAAe,IAAI,CAAC;AAGjC,eAAO,MAAM,qBAAqB,SAAU,CAAC;AAG7C,eAAO,MAAM,oBAAoB,OAAQ,CAAC;AAG1C,eAAO,MAAM,oBAAoB,OAAQ,CAAC;AAE1C,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,qHAAqH;AACrH,eAAO,MAAM,4BAA4B,WAAa,CAAC;AAEvD,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,OAAQ,CAAC;AAMzC,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAEhD,mCAAmC;AACnC,eAAO,MAAM,mBAAmB,UAAY,CAAC;AAE7C,qEAAqE;AACrE,eAAO,MAAM,0BAA0B,UAA2B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Event, TransportMakeRequestResponse } from '@sentry/types';
1
+ import type { Event, TransportMakeRequestResponse } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../types';
3
3
  type AfterSendEventCallback = (event: Event, sendResponse: TransportMakeRequestResponse) => void;
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"handleAfterSendEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleAfterSendEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,KAAK,EAAoB,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAEvG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,KAAK,sBAAsB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,4BAA4B,KAAK,IAAI,CAAC;AAEjG;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,sBAAsB,CAsBpF"}
1
+ {"version":3,"file":"handleAfterSendEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleAfterSendEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,KAAK,EAAoB,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAEtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,KAAK,sBAAsB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,4BAA4B,KAAK,IAAI,CAAC;AAEjG;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,sBAAsB,CAqBpF"}
@@ -1,4 +1,4 @@
1
- import type { Event } from '@sentry/types';
1
+ import type { Event } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../types';
3
3
  type BeforeSendEventCallback = (event: Event) => void;
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"handleBeforeSendEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleBeforeSendEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,KAAK,uBAAuB,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;AAEtD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,GAAG,uBAAuB,CAQtF"}
1
+ {"version":3,"file":"handleBeforeSendEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleBeforeSendEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,KAAK,uBAAuB,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;AAEtD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,GAAG,uBAAuB,CAQtF"}
@@ -1,4 +1,4 @@
1
- import type { Breadcrumb } from '@sentry/types';
1
+ import type { Breadcrumb } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../types';
3
3
  import type { ReplayFrame } from '../types/replayFrame';
4
4
  type BreadcrumbWithCategory = Required<Pick<Breadcrumb, 'category'>>;
@@ -1 +1 @@
1
- {"version":3,"file":"handleBreadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleBreadcrumbs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,KAAK,sBAAsB,GAAG,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAErE;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAQ/D;AAaD,+BAA+B;AAC/B,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,CAsB7E;AAED,8BAA8B;AAC9B,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,sBAAsB,GAChE,WAAW,CAgDb"}
1
+ {"version":3,"file":"handleBreadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleBreadcrumbs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,KAAK,sBAAsB,GAAG,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAErE;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAQ/D;AAaD,+BAA+B;AAC/B,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,CAsB7E;AAED,8BAA8B;AAC9B,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,sBAAsB,GAChE,WAAW,CAgDb"}
@@ -1,4 +1,4 @@
1
- import type { Breadcrumb } from '@sentry/types';
1
+ import type { Breadcrumb } from '@sentry/core';
2
2
  import type { RecordingEvent, ReplayClickDetector, ReplayContainer, SlowClickConfig } from '../types';
3
3
  import { addBreadcrumbEvent } from './util/addBreadcrumbEvent';
4
4
  /** Handle a click. */
@@ -10,7 +10,7 @@ export declare class ClickDetector implements ReplayClickDetector {
10
10
  private _clicks;
11
11
  private _teardown;
12
12
  private _threshold;
13
- private _scollTimeout;
13
+ private _scrollTimeout;
14
14
  private _timeout;
15
15
  private _ignoreSelector;
16
16
  private _replay;
@@ -1 +1 @@
1
- {"version":3,"file":"handleClick.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleClick.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,eAAe,EAGf,eAAe,EAChB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AA2B/D,sBAAsB;AACtB,wBAAgB,WAAW,CAAC,aAAa,EAAE,mBAAmB,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,CAEpH;AAED,yFAAyF;AACzF,qBAAa,aAAc,YAAW,mBAAmB;IAEvD,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAE9B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,SAAS,CAA2B;IAE5C,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,kBAAkB,CAAC,CAAgC;IAC3D,OAAO,CAAC,mBAAmB,CAA4B;gBAGrD,MAAM,EAAE,eAAe,EACvB,eAAe,EAAE,eAAe,EAEhC,mBAAmB,4BAAqB;IAe1C,+DAA+D;IACxD,YAAY,IAAI,IAAI;IAe3B,0BAA0B;IACnB,eAAe,IAAI,IAAI;IAU9B,kBAAkB;IACX,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI;IA4BnE,kBAAkB;IACX,gBAAgB,CAAC,SAAS,SAAa,GAAG,IAAI;IAIrD,kBAAkB;IACX,cAAc,CAAC,SAAS,SAAa,GAAG,IAAI;IAInD,kBAAkB;IACX,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAKhD,yCAAyC;IACzC,OAAO,CAAC,iBAAiB;IAMzB,+CAA+C;IAC/C,OAAO,CAAC,UAAU;IAIlB,sCAAsC;IACtC,OAAO,CAAC,YAAY;IAmCpB,qDAAqD;IACrD,OAAO,CAAC,oBAAoB;IAwD5B,wCAAwC;IACxC,OAAO,CAAC,oBAAoB;CAO7B;AAID,8BAA8B;AAC9B,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAyBhF;AAWD,qEAAqE;AACrE,wBAAgB,oCAAoC,CAAC,aAAa,EAAE,mBAAmB,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAkCpH"}
1
+ {"version":3,"file":"handleClick.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleClick.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,eAAe,EAGf,eAAe,EAChB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAsC/D,sBAAsB;AACtB,wBAAgB,WAAW,CAAC,aAAa,EAAE,mBAAmB,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,CAEpH;AAED,yFAAyF;AACzF,qBAAa,aAAc,YAAW,mBAAmB;IAEvD,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAE9B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,SAAS,CAA2B;IAE5C,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,kBAAkB,CAAC,CAAgC;IAC3D,OAAO,CAAC,mBAAmB,CAA4B;gBAGrD,MAAM,EAAE,eAAe,EACvB,eAAe,EAAE,eAAe,EAEhC,mBAAmB,4BAAqB;IAe1C,+DAA+D;IACxD,YAAY,IAAI,IAAI;IAe3B,0BAA0B;IACnB,eAAe,IAAI,IAAI;IAU9B,kBAAkB;IACX,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI;IA4BnE,kBAAkB;IACX,gBAAgB,CAAC,SAAS,SAAa,GAAG,IAAI;IAIrD,kBAAkB;IACX,cAAc,CAAC,SAAS,SAAa,GAAG,IAAI;IAInD,kBAAkB;IACX,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAKhD,yCAAyC;IACzC,OAAO,CAAC,iBAAiB;IAMzB,+CAA+C;IAC/C,OAAO,CAAC,UAAU;IAIlB,sCAAsC;IACtC,OAAO,CAAC,YAAY;IAmCpB,qDAAqD;IACrD,OAAO,CAAC,oBAAoB;IAwD5B,wCAAwC;IACxC,OAAO,CAAC,oBAAoB;CAO7B;AAID,8BAA8B;AAC9B,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAyBhF;AAWD,qEAAqE;AACrE,wBAAgB,oCAAoC,CAAC,aAAa,EAAE,mBAAmB,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAkCpH"}
@@ -1,4 +1,4 @@
1
- import type { Breadcrumb, HandlerDataDom } from '@sentry/types';
1
+ import type { Breadcrumb, HandlerDataDom } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../types';
3
3
  export declare const handleDomListener: (replay: ReplayContainer) => (handlerData: HandlerDataDom) => void;
4
4
  /** Get the base DOM breadcrumb. */
@@ -1 +1 @@
1
- {"version":3,"file":"handleDom.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleDom.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOhD,eAAO,MAAM,iBAAiB,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,CAAC,WAAW,EAAE,cAAc,KAAK,IAoC7F,CAAC;AAEF,mCAAmC;AACnC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,CAwBrF;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,cAAc,GAAG,UAAU,GAAG,IAAI,CAOxE"}
1
+ {"version":3,"file":"handleDom.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleDom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOhD,eAAO,MAAM,iBAAiB,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,CAAC,WAAW,EAAE,cAAc,KAAK,IAmC7F,CAAC;AAEF,mCAAmC;AACnC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,CAwBrF;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,cAAc,GAAG,UAAU,GAAG,IAAI,CAOxE"}
@@ -1,4 +1,4 @@
1
- import type { Event, EventHint } from '@sentry/types';
1
+ import type { Event, EventHint } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../types';
3
3
  /**
4
4
  * Returns a listener to be added to `addEventProcessor(listener)`.
@@ -1 +1 @@
1
- {"version":3,"file":"handleGlobalEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleGlobalEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAItD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMhD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,KAAK,KAAK,GAAG,IAAI,CA4DlH"}
1
+ {"version":3,"file":"handleGlobalEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleGlobalEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAShD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,KAAK,KAAK,GAAG,IAAI,CA2FlH"}
@@ -1,4 +1,4 @@
1
- import type { HandlerDataHistory } from '@sentry/types';
1
+ import type { HandlerDataHistory } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../types';
3
3
  /**
4
4
  * Returns a listener to be added to `addHistoryInstrumentationHandler(listener)`.
@@ -1 +1 @@
1
- {"version":3,"file":"handleHistory.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,EAAe,eAAe,EAA0B,MAAM,UAAU,CAAC;AAmBrF;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,CAAC,WAAW,EAAE,kBAAkB,KAAK,IAAI,CAsB5G"}
1
+ {"version":3,"file":"handleHistory.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAe,eAAe,EAA0B,MAAM,UAAU,CAAC;AAmBrF;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,CAAC,WAAW,EAAE,kBAAkB,KAAK,IAAI,CAuB5G"}
@@ -1,4 +1,4 @@
1
- import type { Breadcrumb } from '@sentry/types';
1
+ import type { Breadcrumb } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../types';
3
3
  /** Handle keyboard events & create breadcrumbs. */
4
4
  export declare function handleKeyboardEvent(replay: ReplayContainer, event: KeyboardEvent): void;
@@ -1 +1 @@
1
- {"version":3,"file":"handleKeyboardEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleKeyboardEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,mDAAmD;AACnD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAiBvF;AAED,8BAA8B;AAC9B,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,aAAa,GAAG,UAAU,GAAG,IAAI,CAiC7E"}
1
+ {"version":3,"file":"handleKeyboardEvent.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleKeyboardEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,mDAAmD;AACnD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAiBvF;AAED,8BAA8B;AAC9B,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,aAAa,GAAG,UAAU,GAAG,IAAI,CAiC7E"}
@@ -1,4 +1,4 @@
1
- import type { Breadcrumb, BreadcrumbHint } from '@sentry/types';
1
+ import type { Breadcrumb, BreadcrumbHint } from '@sentry/core';
2
2
  import type { ReplayContainer, ReplayNetworkOptions } from '../types';
3
3
  interface ExtendedNetworkBreadcrumbsOptions extends ReplayNetworkOptions {
4
4
  replay: ReplayContainer;
@@ -1 +1 @@
1
- {"version":3,"file":"handleNetworkBreadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleNetworkBreadcrumbs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAA0C,MAAM,eAAe,CAAC;AAIxG,OAAO,KAAK,EAAa,eAAe,EAAE,oBAAoB,EAAW,MAAM,UAAU,CAAC;AAI1F,UAAU,iCAAkC,SAAQ,oBAAoB;IACtE,MAAM,EAAE,eAAe,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CA2BtE;AAED,8BAA8B;AAC9B,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,iCAAiC,EAC1C,UAAU,EAAE,UAAU,EACtB,IAAI,CAAC,EAAE,cAAc,GACpB,IAAI,CA8BN"}
1
+ {"version":3,"file":"handleNetworkBreadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/handleNetworkBreadcrumbs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAA0C,MAAM,cAAc,CAAC;AAIvG,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKtE,UAAU,iCAAkC,SAAQ,oBAAoB;IACtE,MAAM,EAAE,eAAe,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CA2BtE;AAED,8BAA8B;AAC9B,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,iCAAiC,EAC1C,UAAU,EAAE,UAAU,EACtB,IAAI,CAAC,EAAE,cAAc,GACpB,IAAI,CA8BN"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"performanceObserver.d.ts","sourceRoot":"","sources":["../../../../src/coreHandlers/performanceObserver.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQhD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,IAAI,CA4B5E"}
@@ -1,4 +1,4 @@
1
- import type { Breadcrumb } from '@sentry/types';
1
+ import type { Breadcrumb } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../../types';
3
3
  /**
4
4
  * Add a breadcrumb event to replay.
@@ -1 +1 @@
1
- {"version":3,"file":"addBreadcrumbEvent.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/addBreadcrumbEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CA6BxF"}
1
+ {"version":3,"file":"addBreadcrumbEvent.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/addBreadcrumbEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CA6BxF"}
@@ -1,4 +1,4 @@
1
- import type { FeedbackEvent } from '@sentry/types';
1
+ import type { FeedbackEvent } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../../types';
3
3
  /**
4
4
  * Add a feedback breadcrumb event to replay.
@@ -1 +1 @@
1
- {"version":3,"file":"addFeedbackBreadcrumb.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/addFeedbackBreadcrumb.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAA8B,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/E;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CA6BzF"}
1
+ {"version":3,"file":"addFeedbackBreadcrumb.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/addFeedbackBreadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EAA8B,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/E;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CA6BzF"}
@@ -1 +1 @@
1
- {"version":3,"file":"addNetworkBreadcrumb.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/addNetworkBreadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAI/F,yCAAyC;AACzC,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,IAAI,GACxD,IAAI,CAoBN"}
1
+ {"version":3,"file":"addNetworkBreadcrumb.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/addNetworkBreadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAI/F,yCAAyC;AACzC,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,IAAI,GACxD,IAAI,CAqBN"}
@@ -1,4 +1,4 @@
1
- import type { INode } from '@sentry-internal/rrweb-snapshot';
1
+ import type { INode } from '@sentry/rrweb-snapshot';
2
2
  /** Get the closest interactive parent element, or else return the given element. */
3
3
  export declare function getClosestInteractive(element: Element): Element;
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"domUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/domUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAI7D,oFAAoF;AACpF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAG/D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,CAQxF;AAED,iCAAiC;AACjC,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,GAAG;IAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,CAM/F"}
1
+ {"version":3,"file":"domUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/domUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAIpD,oFAAoF;AACpF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAG/D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,CAQxF;AAED,iCAAiC;AACjC,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,GAAG;IAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,CAM/F"}
@@ -1,8 +1,9 @@
1
- import type { Breadcrumb, FetchBreadcrumbData } from '@sentry/types';
2
- import type { FetchHint, ReplayContainer, ReplayNetworkOptions, ReplayNetworkRequestOrResponse } from '../../types';
1
+ import type { Breadcrumb, FetchBreadcrumbData } from '@sentry/core';
2
+ import type { FetchHint } from '@sentry/browser-utils';
3
+ import type { ReplayContainer, ReplayNetworkOptions, ReplayNetworkRequestOrResponse } from '../../types';
3
4
  /**
4
5
  * Capture a fetch breadcrumb to a replay.
5
- * This adds additional data (where approriate).
6
+ * This adds additional data (where appropriate).
6
7
  */
7
8
  export declare function captureFetchBreadcrumbToReplay(breadcrumb: Breadcrumb & {
8
9
  data: FetchBreadcrumbData;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/fetchUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAsB,MAAM,uBAAuB,CAAC;AAG3E,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EAEpB,8BAA8B,EAC/B,MAAM,aAAa,CAAC;AAcrB;;;GAGG;AACH,wBAAsB,8BAA8B,CAClD,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,EACtD,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,EACxB,OAAO,EAAE,oBAAoB,GAAG;IAC9B,MAAM,EAAE,eAAe,CAAC;CACzB,GACA,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,EACtD,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,GACvB,IAAI,CAcN;AA4DD,+BAA+B;AAC/B,wBAAsB,gBAAgB,CACpC,cAAc,EAAE,OAAO,EACvB,EACE,oBAAoB,EACpB,sBAAsB,GACvB,EAAE,IAAI,CAAC,oBAAoB,EAAE,sBAAsB,GAAG,wBAAwB,CAAC,EAChF,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,8BAA8B,GAAG,SAAS,CAAC,CAyBrD"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAttributesToRecord.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/getAttributesToRecord.ts"],"names":[],"mappings":"AAiBA;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAelG"}
1
+ {"version":3,"file":"getAttributesToRecord.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/getAttributesToRecord.ts"],"names":[],"mappings":"AAiBA;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkBlG"}
@@ -1,10 +1,9 @@
1
- import type { NetworkMetaWarning, NetworkRequestData, ReplayNetworkRequestData, ReplayNetworkRequestOrResponse, ReplayPerformanceEntry } from '../../types';
1
+ import type { NetworkMetaWarning } from '@sentry/browser-utils';
2
+ import type { NetworkRequestData, ReplayNetworkRequestData, ReplayNetworkRequestOrResponse, ReplayPerformanceEntry } from '../../types';
2
3
  /** Get the size of a body. */
3
4
  export declare function getBodySize(body: RequestInit['body']): number | undefined;
4
5
  /** Convert a Content-Length header to number/undefined. */
5
6
  export declare function parseContentLengthHeader(header: string | null | undefined): number | undefined;
6
- /** Get the string representation of a body. */
7
- export declare function getBodyString(body: unknown): [string | undefined, NetworkMetaWarning?];
8
7
  /** Merge a warning into an existing network request/response. */
9
8
  export declare function mergeWarning(info: ReplayNetworkRequestOrResponse | undefined, warning: NetworkMetaWarning): ReplayNetworkRequestOrResponse;
10
9
  /** Convert ReplayNetworkRequestData to a PerformanceEntry. */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/networkUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAEV,kBAAkB,EAClB,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,8BAA8B;AAC9B,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS,CAmCzE;AAED,4DAA4D;AAC5D,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAO9F;AAED,iEAAiE;AACjE,wBAAgB,YAAY,CAC1B,IAAI,EAAE,8BAA8B,GAAG,SAAS,EAChD,OAAO,EAAE,kBAAkB,GAC1B,8BAA8B,CAiBhC;AAED,8DAA8D;AAC9D,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,wBAAwB,GAAG,IAAI,GACpC,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAqBnD;AAED,0FAA0F;AAC1F,wBAAgB,oCAAoC,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,8BAA8B,CAQjH;AAED,yEAAyE;AACzE,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB,8BAA8B,GAAG,SAAS,CAgC5C;AAED,8BAA8B;AAC9B,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASnH;AAuDD,oDAAoD;AACpD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO,CAI1E;AAED,yBAAyB;AACzB,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAA0B,GAAG,MAAM,CAoBjF"}
@@ -1 +1 @@
1
- {"version":3,"file":"onWindowOpen.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/onWindowOpen.ts"],"names":[],"mappings":"AAIA,KAAK,iBAAiB,GAAG,MAAM,IAAI,CAAC;AAIpC;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,iBAAiB,GAAG,MAAM,IAAI,CAe9D"}
1
+ {"version":3,"file":"onWindowOpen.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/onWindowOpen.ts"],"names":[],"mappings":"AAGA,KAAK,iBAAiB,GAAG,MAAM,IAAI,CAAC;AAIpC;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,iBAAiB,GAAG,MAAM,IAAI,CAe9D"}
@@ -1,8 +1,8 @@
1
- import type { Event } from '@sentry/types';
1
+ import type { Event } from '@sentry/core';
2
2
  import type { ReplayContainer } from '../../types';
3
3
  /**
4
4
  * Determine if event should be sampled (only applies in buffer mode).
5
- * When an event is captured by `hanldleGlobalEvent`, when in buffer mode
5
+ * When an event is captured by `handleGlobalEvent`, when in buffer mode
6
6
  * we determine if we want to sample the error or not.
7
7
  */
8
8
  export declare function shouldSampleForBufferEvent(replay: ReplayContainer, event: Event): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"shouldSampleForBufferEvent.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/shouldSampleForBufferEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAiBzF"}
1
+ {"version":3,"file":"shouldSampleForBufferEvent.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/shouldSampleForBufferEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAiBzF"}
@@ -1,8 +1,9 @@
1
- import type { Breadcrumb, XhrBreadcrumbData } from '@sentry/types';
2
- import type { NetworkMetaWarning, ReplayContainer, ReplayNetworkOptions, XhrHint } from '../../types';
1
+ import type { Breadcrumb, XhrBreadcrumbData } from '@sentry/core';
2
+ import type { NetworkMetaWarning, XhrHint } from '@sentry/browser-utils';
3
+ import type { ReplayContainer, ReplayNetworkOptions } from '../../types';
3
4
  /**
4
5
  * Capture an XHR breadcrumb to a replay.
5
- * This adds additional data (where approriate).
6
+ * This adds additional data (where appropriate).
6
7
  */
7
8
  export declare function captureXhrBreadcrumbToReplay(breadcrumb: Breadcrumb & {
8
9
  data: XhrBreadcrumbData;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xhrUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/xhrUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGzE,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAA4B,MAAM,aAAa,CAAC;AAcnG;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,EACpD,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,EACtB,OAAO,EAAE,oBAAoB,GAAG;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,GAC1D,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,EACpD,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GACrB,IAAI,CAkBN;AAmFD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,cAAc,CAAC,UAAU,CAAC,EAChC,YAAY,EAAE,cAAc,CAAC,cAAc,CAAC,GAC3C,CAAC,MAAM,GAAG,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAyB3C"}
@@ -8,6 +8,8 @@ export declare class EventBufferArray implements EventBuffer {
8
8
  events: RecordingEvent[];
9
9
  /** @inheritdoc */
10
10
  hasCheckout: boolean;
11
+ /** @inheritdoc */
12
+ waitForCheckout: boolean;
11
13
  private _totalSize;
12
14
  constructor();
13
15
  /** @inheritdoc */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventBufferArray.d.ts","sourceRoot":"","sources":["../../../../src/eventBuffer/EventBufferArray.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAI7F;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,WAAW;IAClD,mDAAmD;IAC5C,MAAM,EAAE,cAAc,EAAE,CAAC;IAEhC,kBAAkB;IACX,WAAW,EAAE,OAAO,CAAC;IAE5B,kBAAkB;IACX,eAAe,EAAE,OAAO,CAAC;IAEhC,OAAO,CAAC,UAAU,CAAS;;IAS3B,kBAAkB;IAClB,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED,kBAAkB;IAClB,IAAW,IAAI,IAAI,eAAe,CAEjC;IAED,kBAAkB;IACX,OAAO,IAAI,IAAI;IAItB,kBAAkB;IACL,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IAUrE,kBAAkB;IACX,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IAWhC,kBAAkB;IACX,KAAK,IAAI,IAAI;IAMpB,kBAAkB;IACX,oBAAoB,IAAI,MAAM,GAAG,IAAI;CAO7C"}
@@ -1,4 +1,4 @@
1
- import type { ReplayRecordingData } from '@sentry/types';
1
+ import type { ReplayRecordingData } from '@sentry/core';
2
2
  import type { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } from '../types';
3
3
  /**
4
4
  * Event buffer that uses a web worker to compress events.
@@ -7,6 +7,8 @@ import type { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } fro
7
7
  export declare class EventBufferCompressionWorker implements EventBuffer {
8
8
  /** @inheritdoc */
9
9
  hasCheckout: boolean;
10
+ /** @inheritdoc */
11
+ waitForCheckout: boolean;
10
12
  private _worker;
11
13
  private _earliestTimestamp;
12
14
  private _totalSize;
@@ -17,7 +19,7 @@ export declare class EventBufferCompressionWorker implements EventBuffer {
17
19
  get type(): EventBufferType;
18
20
  /**
19
21
  * Ensure the worker is ready (or not).
20
- * This will either resolve when the worker is ready, or reject if an error occured.
22
+ * This will either resolve when the worker is ready, or reject if an error occurred.
21
23
  */
22
24
  ensureReady(): Promise<void>;
23
25
  /**
@@ -27,7 +29,7 @@ export declare class EventBufferCompressionWorker implements EventBuffer {
27
29
  /**
28
30
  * Add an event to the event buffer.
29
31
  *
30
- * Returns true if event was successfuly received and processed by worker.
32
+ * Returns true if event was successfully received and processed by worker.
31
33
  */
32
34
  addEvent(event: RecordingEvent): Promise<AddEventResult>;
33
35
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventBufferCompressionWorker.d.ts","sourceRoot":"","sources":["../../../../src/eventBuffer/EventBufferCompressionWorker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAM7F;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,WAAW;IAC9D,kBAAkB;IACX,WAAW,EAAE,OAAO,CAAC;IAE5B,kBAAkB;IACX,eAAe,EAAE,OAAO,CAAC;IAEhC,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,kBAAkB,CAAgB;IAC1C,OAAO,CAAC,UAAU,CAAC;gBAEA,MAAM,EAAE,MAAM;IAQjC,kBAAkB;IAClB,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED,kBAAkB;IAClB,IAAW,IAAI,IAAI,eAAe,CAEjC;IAED;;;OAGG;IACI,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAInC;;OAEG;IACI,OAAO,IAAI,IAAI;IAItB;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IAgB/D;;OAEG;IACI,MAAM,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAI7C,kBAAkB;IACX,KAAK,IAAI,IAAI;IAWpB,kBAAkB;IACX,oBAAoB,IAAI,MAAM,GAAG,IAAI;IAI5C;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;OAEG;YACW,cAAc;CAQ7B"}
@@ -1,4 +1,4 @@
1
- import type { ReplayRecordingData } from '@sentry/types';
1
+ import type { ReplayRecordingData } from '@sentry/core';
2
2
  import type { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } from '../types';
3
3
  /**
4
4
  * This proxy will try to use the compression worker, and fall back to use the simple buffer if an error occurs there.
@@ -12,6 +12,8 @@ export declare class EventBufferProxy implements EventBuffer {
12
12
  private _ensureWorkerIsLoadedPromise;
13
13
  constructor(worker: Worker);
14
14
  /** @inheritdoc */
15
+ get waitForCheckout(): boolean;
16
+ /** @inheritdoc */
15
17
  get type(): EventBufferType;
16
18
  /** @inheritDoc */
17
19
  get hasEvents(): boolean;
@@ -19,6 +21,8 @@ export declare class EventBufferProxy implements EventBuffer {
19
21
  get hasCheckout(): boolean;
20
22
  /** @inheritdoc */
21
23
  set hasCheckout(value: boolean);
24
+ /** @inheritdoc */
25
+ set waitForCheckout(value: boolean);
22
26
  /** @inheritDoc */
23
27
  destroy(): void;
24
28
  /** @inheritdoc */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventBufferProxy.d.ts","sourceRoot":"","sources":["../../../../src/eventBuffer/EventBufferProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK7F;;;;GAIG;AACH,qBAAa,gBAAiB,YAAW,WAAW;IAClD,OAAO,CAAC,SAAS,CAAmB;IACpC,OAAO,CAAC,YAAY,CAA+B;IACnD,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,4BAA4B,CAAgB;gBAEjC,MAAM,EAAE,MAAM;IAQjC,kBAAkB;IAClB,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED,kBAAkB;IAClB,IAAW,IAAI,IAAI,eAAe,CAEjC;IAED,kBAAkB;IAClB,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED,kBAAkB;IAClB,IAAW,WAAW,IAAI,OAAO,CAEhC;IACD,kBAAkB;IAClB,IAAW,WAAW,CAAC,KAAK,EAAE,OAAO,EAEpC;IAED,kBAAkB;IAElB,IAAW,eAAe,CAAC,KAAK,EAAE,OAAO,EAExC;IAED,kBAAkB;IACX,OAAO,IAAI,IAAI;IAKtB,kBAAkB;IACX,KAAK,IAAI,IAAI;IAIpB,kBAAkB;IACX,oBAAoB,IAAI,MAAM,GAAG,IAAI;IAI5C;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IAI/D,kBAAkB;IACL,MAAM,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOnD,oCAAoC;IAC7B,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5C,oDAAoD;YACtC,qBAAqB;IAcnC,wDAAwD;YAC1C,0BAA0B;CAyBzC"}
@@ -7,10 +7,11 @@ export declare class WorkerHandler {
7
7
  private _worker;
8
8
  private _id;
9
9
  private _ensureReadyPromise?;
10
+ private _pending;
10
11
  constructor(worker: Worker);
11
12
  /**
12
13
  * Ensure the worker is ready (or not).
13
- * This will either resolve when the worker is ready, or reject if an error occured.
14
+ * This will either resolve when the worker is ready, or reject if an error occurred.
14
15
  */
15
16
  ensureReady(): Promise<void>;
16
17
  /**
@@ -21,6 +22,7 @@ export declare class WorkerHandler {
21
22
  * Post message to worker and wait for response before resolving promise.
22
23
  */
23
24
  postMessage<T>(method: WorkerRequest['method'], arg?: WorkerRequest['arg']): Promise<T>;
25
+ private _onMessage;
24
26
  /** Get the current ID and increment it for the next call. */
25
27
  private _getAndIncrementId;
26
28
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkerHandler.d.ts","sourceRoot":"","sources":["../../../../src/eventBuffer/WorkerHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,UAAU,CAAC;AAS9D;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,mBAAmB,CAAC,CAAgB;IAC5C,OAAO,CAAC,QAAQ,CAA8B;gBAE3B,MAAM,EAAE,MAAM;IAUjC;;;OAGG;IACI,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAqCnC;;OAEG;IACI,OAAO,IAAI,IAAI;IAQtB;;OAEG;IACI,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAoB9F,OAAO,CAAC,UAAU,CAsBhB;IAEF,6DAA6D;IAC7D,OAAO,CAAC,kBAAkB;CAG3B"}
@@ -1,7 +1,7 @@
1
- import type { EventBuffer } from '../types';
1
+ import type { EventBuffer, ReplayWorkerURL } from '../types';
2
2
  interface CreateEventBufferParams {
3
3
  useCompression: boolean;
4
- workerUrl?: string;
4
+ workerUrl?: ReplayWorkerURL;
5
5
  }
6
6
  /**
7
7
  * Create an event buffer for replays.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/eventBuffer/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK7D,UAAU,uBAAuB;IAC/B,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B;AAKD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,cAAc,EACd,SAAS,EAAE,eAAe,GAC3B,EAAE,uBAAuB,GAAG,WAAW,CAevC"}
@@ -1,5 +1,11 @@
1
- import type { Integration } from '@sentry/types';
1
+ import type { Client, Integration, ReplayRecordingMode, StreamedSpanJSON } from '@sentry/core';
2
2
  import type { ReplayConfiguration, SendBufferedReplayOptions } from './types';
3
+ /**
4
+ * Instruments the global Request constructor to store the original body.
5
+ * This allows us to retrieve the original body value later, since Request
6
+ * converts string bodies to ReadableStreams.
7
+ */
8
+ export declare function _INTERNAL_instrumentRequestInterface(): void;
3
9
  /**
4
10
  * Sentry integration for [Session Replay](https://sentry.io/for/session-replay/).
5
11
  *
@@ -17,15 +23,8 @@ import type { ReplayConfiguration, SendBufferedReplayOptions } from './types';
17
23
  export declare const replayIntegration: (options?: ReplayConfiguration) => Replay;
18
24
  /**
19
25
  * Replay integration
20
- *
21
- * TODO: Rewrite this to be functional integration
22
- * Exported for tests.
23
26
  */
24
27
  export declare class Replay implements Integration {
25
- /**
26
- * @inheritDoc
27
- */
28
- static id: string;
29
28
  /**
30
29
  * @inheritDoc
31
30
  */
@@ -43,7 +42,7 @@ export declare class Replay implements Integration {
43
42
  */
44
43
  private readonly _initialOptions;
45
44
  private _replay?;
46
- constructor({ flushMinDelay, flushMaxDelay, minReplayDuration, maxReplayDuration, stickySession, useCompression, workerUrl, _experiments, maskAllText, maskAllInputs, blockAllMedia, mutationBreadcrumbLimit, mutationLimit, slowClickTimeout, slowClickIgnoreSelectors, networkDetailAllowUrls, networkDetailDenyUrls, networkCaptureBodies, networkRequestHeaders, networkResponseHeaders, mask, maskAttributes, unmask, block, unblock, ignore, maskFn, beforeAddRecordingEvent, beforeErrorSampling, blockClass, blockSelector, maskInputOptions, maskTextClass, maskTextSelector, ignoreClass, }?: ReplayConfiguration);
45
+ constructor({ flushMinDelay, flushMaxDelay, minReplayDuration, maxReplayDuration, stickySession, useCompression, workerUrl, _experiments, maskAllText, maskAllInputs, blockAllMedia, mutationBreadcrumbLimit, mutationLimit, slowClickTimeout, slowClickIgnoreSelectors, networkDetailAllowUrls, networkDetailDenyUrls, networkCaptureBodies, networkRequestHeaders, networkResponseHeaders, mask, maskAttributes, unmask, block, unblock, ignore, maskFn, beforeAddRecordingEvent, beforeErrorSampling, onError, attachRawBodyFromRequest, }?: ReplayConfiguration);
47
46
  /** If replay has already been initialized */
48
47
  protected get _isInitialized(): boolean;
49
48
  /** Update _isInitialized */
@@ -51,10 +50,10 @@ export declare class Replay implements Integration {
51
50
  /**
52
51
  * Setup and initialize replay container
53
52
  */
54
- setupOnce(): void;
53
+ afterAllSetup(client: Client): void;
55
54
  /**
56
55
  * Start a replay regardless of sampling rate. Calling this will always
57
- * create a new session. Will throw an error if replay is already in progress.
56
+ * create a new session. Will log a message if replay is already in progress.
58
57
  *
59
58
  * Creates or loads a session, attaches listeners to varying events (DOM,
60
59
  * PerformanceObserver, Recording, Sentry SDK, etc)
@@ -72,6 +71,7 @@ export declare class Replay implements Integration {
72
71
  stop(): Promise<void>;
73
72
  /**
74
73
  * If not in "session" recording mode, flush event buffer which will create a new replay.
74
+ * If replay is not enabled, a new session replay is started.
75
75
  * Unless `continueRecording` is false, the replay will continue to record and
76
76
  * behave as a "session"-based replay.
77
77
  *
@@ -80,12 +80,25 @@ export declare class Replay implements Integration {
80
80
  flush(options?: SendBufferedReplayOptions): Promise<void>;
81
81
  /**
82
82
  * Get the current session ID.
83
+ *
84
+ * @param onlyIfSampled - If true, will only return the session ID if the session is sampled.
85
+ *
86
+ */
87
+ getReplayId(onlyIfSampled?: boolean): string | undefined;
88
+ /**
89
+ * Get the current recording mode. This can be either `session` or `buffer`.
90
+ *
91
+ * `session`: Recording the whole session, sending it continuously
92
+ * `buffer`: Always keeping the last 60s of recording, requires:
93
+ * - having replaysOnErrorSampleRate > 0 to capture replay when an error occurs
94
+ * - or calling `flush()` to send the replay
83
95
  */
84
- getReplayId(): string | undefined;
96
+ getRecordingMode(): ReplayRecordingMode | undefined;
97
+ processSpan(span: StreamedSpanJSON): void;
85
98
  /**
86
99
  * Initializes replay.
87
100
  */
88
- protected _initialize(): void;
101
+ protected _initialize(client: Client): void;
89
102
  /** Setup the integration. */
90
103
  private _setup;
91
104
  /** Get canvas options from ReplayCanvas integration, if it is also added. */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../src/integration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EAEX,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAUtB,OAAO,KAAK,EAIV,mBAAmB,EAEnB,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAejB;;;;GAIG;AACH,wBAAgB,oCAAoC,IAAI,IAAI,CA0B3D;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,aAAe,mBAAmB,WAEtC,CAAC;AAE3B;;GAEG;AACH,qBAAa,MAAO,YAAW,WAAW;IACxC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAmB;IAErD;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6B;IAE7D,OAAO,CAAC,OAAO,CAAC,CAAkB;gBAEf,EACjB,aAAuC,EACvC,aAAuC,EACvC,iBAAuC,EACvC,iBAAuC,EACvC,aAAoB,EACpB,cAAqB,EACrB,SAAS,EACT,YAAiB,EACjB,WAAkB,EAClB,aAAoB,EACpB,aAAoB,EAEpB,uBAA6B,EAC7B,aAAsB,EAEtB,gBAAwB,EACxB,wBAA6B,EAE7B,sBAA2B,EAC3B,qBAA0B,EAC1B,oBAA2B,EAC3B,qBAA0B,EAC1B,sBAA2B,EAE3B,IAAS,EACT,cAAuD,EACvD,MAAW,EACX,KAAU,EACV,OAAY,EACZ,MAAW,EACX,MAAM,EAEN,uBAAuB,EACvB,mBAAmB,EACnB,OAAO,EACP,wBAAgC,GACjC,GAAE,mBAAwB;IA6F3B,6CAA6C;IAC7C,SAAS,KAAK,cAAc,IAAI,OAAO,CAEtC;IAED,4BAA4B;IAC5B,SAAS,KAAK,cAAc,CAAC,KAAK,EAAE,OAAO,EAE1C;IAED;;OAEG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAa1C;;;;;;OAMG;IACI,KAAK,IAAI,IAAI;IAOpB;;;OAGG;IACI,cAAc,IAAI,IAAI;IAQ7B;;;OAGG;IACI,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ5B;;;;;;;OAOG;IACI,KAAK,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAchE;;;;;OAKG;IACI,WAAW,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS;IAQ/D;;;;;;;OAOG;IACI,gBAAgB,IAAI,mBAAmB,GAAG,SAAS;IAQnD,WAAW,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;IAUhD;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAS3C,6BAA6B;IAC7B,OAAO,CAAC,MAAM;IAUd,6EAA6E;IAC7E,OAAO,CAAC,qCAAqC;CAkB9C"}