@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
@@ -1 +1 @@
1
- {"version":3,"file":"addGlobalListeners.d.ts","sourceRoot":"","sources":["../../../../src/util/addGlobalListeners.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAmDhE"}
1
+ {"version":3,"file":"addGlobalListeners.d.ts","sourceRoot":"","sources":["../../../../src/util/addGlobalListeners.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAwDhE"}
@@ -0,0 +1,52 @@
1
+ import type { AllPerformanceEntry, AllPerformanceEntryData, ReplayContainer, ReplayPerformanceEntry, WebVitalData } from '../types';
2
+ export interface Metric {
3
+ /**
4
+ * The current value of the metric.
5
+ */
6
+ value: number;
7
+ /**
8
+ * The rating as to whether the metric value is within the "good",
9
+ * "needs improvement", or "poor" thresholds of the metric.
10
+ */
11
+ rating: 'good' | 'needs-improvement' | 'poor';
12
+ /**
13
+ * Any performance entries relevant to the metric value calculation.
14
+ * The array may also be empty if the metric value was not based on any
15
+ * entries (e.g. a CLS value of 0 given no layout shifts).
16
+ */
17
+ entries: PerformanceEntry[] | LayoutShift[];
18
+ }
19
+ interface LayoutShift extends PerformanceEntry {
20
+ value: number;
21
+ sources: LayoutShiftAttribution[];
22
+ hadRecentInput: boolean;
23
+ }
24
+ interface LayoutShiftAttribution {
25
+ node?: Node;
26
+ previousRect: DOMRectReadOnly;
27
+ currentRect: DOMRectReadOnly;
28
+ }
29
+ /**
30
+ * Handler creater for web vitals
31
+ */
32
+ export declare function webVitalHandler(getter: (metric: Metric) => ReplayPerformanceEntry<AllPerformanceEntryData>, replay: ReplayContainer): (data: {
33
+ metric: Metric;
34
+ }) => void;
35
+ /**
36
+ * Create replay performance entries from the browser performance entries.
37
+ */
38
+ export declare function createPerformanceEntries(entries: AllPerformanceEntry[]): ReplayPerformanceEntry<AllPerformanceEntryData>[];
39
+ /**
40
+ * Add a LCP event to the replay based on a LCP metric.
41
+ */
42
+ export declare function getLargestContentfulPaint(metric: Metric): ReplayPerformanceEntry<WebVitalData>;
43
+ /**
44
+ * Add a CLS event to the replay based on a CLS metric.
45
+ */
46
+ export declare function getCumulativeLayoutShift(metric: Metric): ReplayPerformanceEntry<WebVitalData>;
47
+ /**
48
+ * Add an INP event to the replay based on an INP metric.
49
+ */
50
+ export declare function getInteractionToNextPaint(metric: Metric): ReplayPerformanceEntry<WebVitalData>;
51
+ export {};
52
+ //# sourceMappingURL=createPerformanceEntries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPerformanceEntries.d.ts","sourceRoot":"","sources":["../../../../src/util/createPerformanceEntries.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EAIvB,eAAe,EACf,sBAAsB,EAEtB,YAAY,EACb,MAAM,UAAU,CAAC;AAclB,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,MAAM,EAAE,MAAM,GAAG,mBAAmB,GAAG,MAAM,CAAC;IAE9C;;;;OAIG;IACH,OAAO,EAAE,gBAAgB,EAAE,GAAG,WAAW,EAAE,CAAC;CAC7C;AAED,UAAU,WAAY,SAAQ,gBAAgB;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,UAAU,sBAAsB;IAC9B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,YAAY,EAAE,eAAe,CAAC;IAC9B,WAAW,EAAE,eAAe,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,EAC3E,MAAM,EAAE,eAAe,GACtB,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,CAEpC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,mBAAmB,EAAE,GAC7B,sBAAsB,CAAC,uBAAuB,CAAC,EAAE,CAEnD;AA6GD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,CAAC,YAAY,CAAC,CAI9F;AAMD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,CAAC,YAAY,CAAC,CAoB7F;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,CAAC,YAAY,CAAC,CAI9F"}
@@ -1 +1 @@
1
- {"version":3,"file":"createPerformanceSpans.d.ts","sourceRoot":"","sources":["../../../../src/util/createPerformanceSpans.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEtG;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,sBAAsB,CAAC,YAAY,CAAC,EAAE,GAC9C,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,EAAE,CAoBlC"}
1
+ {"version":3,"file":"createPerformanceSpans.d.ts","sourceRoot":"","sources":["../../../../src/util/createPerformanceSpans.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEtG;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,sBAAsB,CAAC,YAAY,CAAC,EAAE,GAC9C,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,EAAE,CAoBlC"}
@@ -1,4 +1,4 @@
1
- import type { DsnComponents, ReplayEnvelope, ReplayEvent, ReplayRecordingData } from '@sentry/types';
1
+ import type { DsnComponents, ReplayEnvelope, ReplayEvent, ReplayRecordingData } from '@sentry/core';
2
2
  /**
3
3
  * Create a replay envelope ready to be sent.
4
4
  * This includes both the replay event, as well as the recording data.
@@ -1 +1 @@
1
- {"version":3,"file":"createReplayEnvelope.d.ts","sourceRoot":"","sources":["../../../../src/util/createReplayEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGrG;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,mBAAmB,EAClC,GAAG,EAAE,aAAa,EAClB,MAAM,CAAC,EAAE,MAAM,GACd,cAAc,CAkBhB"}
1
+ {"version":3,"file":"createReplayEnvelope.d.ts","sourceRoot":"","sources":["../../../../src/util/createReplayEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGpG;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,mBAAmB,EAClC,GAAG,EAAE,aAAa,EAClB,MAAM,CAAC,EAAE,MAAM,GACd,cAAc,CAkBhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../src/util/debounce.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,IAAI,IAAI,GAAG,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC;IAC5B,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AACF,KAAK,gBAAgB,GAAG,MAAM,OAAO,CAAC;AACtC,KAAK,eAAe,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,iBAAiB,CA2C3G"}
1
+ {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../src/util/debounce.ts"],"names":[],"mappings":"AAGA,KAAK,iBAAiB,GAAG;IACvB,IAAI,IAAI,GAAG,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC;IAC5B,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AACF,KAAK,gBAAgB,GAAG,MAAM,OAAO,CAAC;AACtC,KAAK,eAAe,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,iBAAiB,CAM3G"}
@@ -1,4 +1,4 @@
1
- import type { ErrorEvent, Event, FeedbackEvent, ReplayEvent, TransactionEvent } from '@sentry/types';
1
+ import type { ErrorEvent, Event, FeedbackEvent, ReplayEvent, TransactionEvent } from '@sentry/core';
2
2
  /** If the event is an error event */
3
3
  export declare function isErrorEvent(event: Event): event is ErrorEvent;
4
4
  /** If the event is a transaction event */
@@ -1 +1 @@
1
- {"version":3,"file":"eventUtils.d.ts","sourceRoot":"","sources":["../../../../src/util/eventUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAErG,qCAAqC;AACrC,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,UAAU,CAE9D;AAED,0CAA0C;AAC1C,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,gBAAgB,CAE1E;AAED,sCAAsC;AACtC,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,WAAW,CAEhE;AAED,uCAAuC;AACvC,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,aAAa,CAEpE"}
1
+ {"version":3,"file":"eventUtils.d.ts","sourceRoot":"","sources":["../../../../src/util/eventUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEpG,qCAAqC;AACrC,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,UAAU,CAE9D;AAED,0CAA0C;AAC1C,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,gBAAgB,CAE1E;AAED,sCAAsC;AACtC,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,WAAW,CAEhE;AAED,uCAAuC;AACvC,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,aAAa,CAEpE"}
@@ -1,5 +1,5 @@
1
- import type { DeprecatedPrivacyOptions, ReplayIntegrationPrivacyOptions } from '../types';
2
- type GetPrivacyOptions = Required<Omit<ReplayIntegrationPrivacyOptions, 'maskFn'>> & Omit<DeprecatedPrivacyOptions, 'maskInputOptions'>;
1
+ import type { ReplayIntegrationPrivacyOptions } from '../types';
2
+ type GetPrivacyOptions = Required<Omit<ReplayIntegrationPrivacyOptions, 'maskFn'>>;
3
3
  interface GetPrivacyReturn {
4
4
  maskTextSelector: string;
5
5
  unmaskTextSelector: string;
@@ -12,6 +12,6 @@ interface GetPrivacyReturn {
12
12
  /**
13
13
  * Returns privacy related configuration for use in rrweb
14
14
  */
15
- export declare function getPrivacyOptions({ mask, unmask, block, unblock, ignore, blockClass, blockSelector, maskTextClass, maskTextSelector, ignoreClass, }: GetPrivacyOptions): GetPrivacyReturn;
15
+ export declare function getPrivacyOptions({ mask, unmask, block, unblock, ignore }: GetPrivacyOptions): GetPrivacyReturn;
16
16
  export {};
17
17
  //# sourceMappingURL=getPrivacyOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrivacyOptions.d.ts","sourceRoot":"","sources":["../../../../src/util/getPrivacyOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAEhE,KAAK,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEnF,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IAEvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAUD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,gBAAgB,CAiB/G"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Disable sampling mousemove events on iOS browsers as this can cause blocking the main thread
3
+ * https://github.com/getsentry/sentry-javascript/issues/14534
4
+ */
5
+ export declare function getRecordingSamplingOptions(): Partial<{
6
+ sampling: {
7
+ mousemove: boolean;
8
+ };
9
+ }>;
10
+ //# sourceMappingURL=getRecordingSamplingOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRecordingSamplingOptions.d.ts","sourceRoot":"","sources":["../../../../src/util/getRecordingSamplingOptions.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAAC;IAAE,QAAQ,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,CAAC,CAa3F"}
@@ -6,6 +6,7 @@ type RecordingEmitCallback = (event: RecordingEvent, isCheckout?: boolean) => vo
6
6
  * Adds to event buffer, and has varying flushing behaviors if the event was a checkout.
7
7
  */
8
8
  export declare function getHandleRecordingEmit(replay: ReplayContainer): RecordingEmitCallback;
9
+ export declare function syncMirrorAttributesFromMutationEvent(event: RecordingEvent): void;
9
10
  /**
10
11
  * Exported for tests
11
12
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleRecordingEmit.d.ts","sourceRoot":"","sources":["../../../../src/util/handleRecordingEmit.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AASxF,KAAK,qBAAqB,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEnF;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,eAAe,GAAG,qBAAqB,CAmGrF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAgCjF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,sBAAsB,CAuBlF"}
@@ -1,4 +1,4 @@
1
- import type { Event, EventHint } from '@sentry/types';
1
+ import type { Event, EventHint } from '@sentry/core';
2
2
  /**
3
3
  * Returns true if we think the given event is an error originating inside of rrweb.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"isRrwebError.d.ts","sourceRoot":"","sources":["../../../../src/util/isRrwebError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEtD;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAWnE"}
1
+ {"version":3,"file":"isRrwebError.d.ts","sourceRoot":"","sources":["../../../../src/util/isRrwebError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAWnE"}
@@ -0,0 +1,24 @@
1
+ import { debug as coreDebug } from '@sentry/core';
2
+ interface LoggerConfig {
3
+ captureExceptions: boolean;
4
+ traceInternals: boolean;
5
+ }
6
+ type CoreDebugLogger = typeof coreDebug;
7
+ interface ReplayDebugLogger extends CoreDebugLogger {
8
+ /**
9
+ * Calls `debug.log` but saves breadcrumb in the next tick due to race
10
+ * conditions before replay is initialized.
11
+ */
12
+ infoTick: CoreDebugLogger['log'];
13
+ /**
14
+ * Captures exceptions (`Error`) if "capture internal exceptions" is enabled
15
+ */
16
+ exception: CoreDebugLogger['error'];
17
+ /**
18
+ * Configures the logger with additional debugging behavior
19
+ */
20
+ setConfig(config: Partial<LoggerConfig>): void;
21
+ }
22
+ export declare const debug: ReplayDebugLogger;
23
+ export {};
24
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/util/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAmC,KAAK,IAAI,SAAS,EAA2B,MAAM,cAAc,CAAC;AAO5G,UAAU,YAAY;IACpB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,KAAK,eAAe,GAAG,OAAO,SAAS,CAAC;AAExC,UAAU,iBAAkB,SAAQ,eAAe;IACjD;;;OAGG;IACH,QAAQ,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACpC;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;CAChD;AA6ED,eAAO,MAAM,KAAK,mBAA0B,CAAC"}
@@ -9,6 +9,8 @@ interface MaskAttributeParams {
9
9
  }
10
10
  /**
11
11
  * Masks an attribute if necessary, otherwise return attribute value as-is.
12
+ * Keys listed in `maskAttributes` are masked even when `maskAllText` is false;
13
+ * masking `value` on submit/button inputs without listing `value` still requires `maskAllText`.
12
14
  */
13
15
  export declare function maskAttribute({ el, key, maskAttributes, maskAllText, privacyOptions, value, }: MaskAttributeParams): string;
14
16
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"maskAttribute.d.ts","sourceRoot":"","sources":["../../../../src/util/maskAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,UAAU,mBAAmB;IAC3B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,WAAW,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,GAAG,EACH,cAAc,EACd,WAAW,EACX,cAAc,EACd,KAAK,GACN,EAAE,mBAAmB,GAAG,MAAM,CAqB9B"}
1
+ {"version":3,"file":"maskAttribute.d.ts","sourceRoot":"","sources":["../../../../src/util/maskAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,UAAU,mBAAmB;IAC3B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,WAAW,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,GAAG,EACH,cAAc,EACd,WAAW,EACX,cAAc,EACd,KAAK,GACN,EAAE,mBAAmB,GAAG,MAAM,CAmB9B"}
@@ -1,4 +1,4 @@
1
- import type { ReplayRecordingData } from '@sentry/types';
1
+ import type { ReplayRecordingData } from '@sentry/core';
2
2
  /**
3
3
  * Prepare the recording data ready to be sent.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"prepareRecordingData.d.ts","sourceRoot":"","sources":["../../../../src/util/prepareRecordingData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,aAAa,EACb,OAAO,GACR,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,GAAG,mBAAmB,CAoBtB"}
1
+ {"version":3,"file":"prepareRecordingData.d.ts","sourceRoot":"","sources":["../../../../src/util/prepareRecordingData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,aAAa,EACb,OAAO,GACR,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,GAAG,mBAAmB,CAoBtB"}
@@ -1,12 +1,9 @@
1
- import type { IntegrationIndex } from '@sentry/core';
2
- import type { Client, ReplayEvent, Scope } from '@sentry/types';
1
+ import type { Client, ReplayEvent, Scope } from '@sentry/core';
3
2
  /**
4
3
  * Prepare a replay event & enrich it with the SDK metadata.
5
4
  */
6
5
  export declare function prepareReplayEvent({ client, scope, replayId: event_id, event, }: {
7
- client: Client & {
8
- _integrations?: IntegrationIndex;
9
- };
6
+ client: Client;
10
7
  scope: Scope;
11
8
  replayId: string;
12
9
  event: ReplayEvent;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareReplayEvent.d.ts","sourceRoot":"","sources":["../../../../src/util/prepareReplayEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAa,WAAW,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1E;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,MAAM,EACN,KAAK,EACL,QAAQ,EAAE,QAAQ,EAClB,KAAK,GACN,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;CACpB,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CA6C9B"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Reset the `replay_id` field on the DSC.
3
+ */
4
+ export declare function resetReplayIdOnDynamicSamplingContext(): void;
5
+ /**
6
+ * Set the `replay_id` field on the cached DSC.
7
+ * This is needed after a session refresh because the cached DSC on the scope
8
+ * (set by browserTracingIntegration when the idle span ended) persists across
9
+ * session boundaries. Without updating it, the new session's replay_id would
10
+ * never appear in DSC since `getDynamicSamplingContextFromClient` (and its
11
+ * `createDsc` hook) is not called when a cached DSC already exists.
12
+ */
13
+ export declare function setReplayIdOnDynamicSamplingContext(replayId: string): void;
14
+ //# sourceMappingURL=resetReplayIdOnDynamicSamplingContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resetReplayIdOnDynamicSamplingContext.d.ts","sourceRoot":"","sources":["../../../../src/util/resetReplayIdOnDynamicSamplingContext.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,qCAAqC,IAAI,IAAI,CAa5D;AAED;;;;;;;GAOG;AACH,wBAAgB,mCAAmC,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAW1E"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Vendored in from @sentry/rrweb.
3
+ *
4
+ * This is a copy of the function from rrweb, it is not nicely exported there.
5
+ */
6
+ export declare function closestElementOfNode(node: Node | null): HTMLElement | null;
7
+ //# sourceMappingURL=rrweb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rrweb.d.ts","sourceRoot":"","sources":["../../../../src/util/rrweb.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAY1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"sendReplay.d.ts","sourceRoot":"","sources":["../../../../src/util/sendReplay.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C;;GAEG;AACH,wBAAsB,UAAU,CAC9B,UAAU,EAAE,cAAc,EAC1B,WAAW;;;CAGV,GACA,OAAO,CAAC,OAAO,CAAC,CAuDlB"}
1
+ {"version":3,"file":"sendReplay.d.ts","sourceRoot":"","sources":["../../../../src/util/sendReplay.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C;;GAEG;AACH,wBAAsB,UAAU,CAC9B,UAAU,EAAE,cAAc,EAC1B,WAAW;;;CAGV,GACA,OAAO,CAAC,OAAO,CAAC,CAuDlB"}
@@ -1,5 +1,4 @@
1
- import type { TransportMakeRequestResponse } from '@sentry/types';
2
- import type { RateLimits } from '@sentry/utils';
1
+ import type { RateLimits, TransportMakeRequestResponse } from '@sentry/core';
3
2
  import type { SendReplayData } from '../types';
4
3
  /**
5
4
  * Send replay attachment using `fetch()`
@@ -18,4 +17,11 @@ export declare class RateLimitError extends Error {
18
17
  rateLimits: RateLimits;
19
18
  constructor(rateLimits: RateLimits);
20
19
  }
20
+ /**
21
+ * This error indicates that the replay duration limit was exceeded and the session is too long.
22
+ *
23
+ */
24
+ export declare class ReplayDurationLimitError extends Error {
25
+ constructor();
26
+ }
21
27
  //# sourceMappingURL=sendReplayRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendReplayRequest.d.ts","sourceRoot":"","sources":["../../../../src/util/sendReplayRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAe,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAI1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAM/C;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,aAAa,EACb,QAAQ,EACR,SAAS,EAAE,UAAU,EACrB,YAAY,EACZ,SAAS,EACT,OAAO,GACR,EAAE,cAAc,GAAG,OAAO,CAAC,4BAA4B,CAAC,CA+GxD;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;gBAC9B,UAAU,EAAE,MAAM;CAGtC;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK;IAChC,UAAU,EAAE,UAAU,CAAC;gBAEX,UAAU,EAAE,UAAU;CAI1C;AAED;;;GAGG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;;CAIlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"shouldFilterRequest.d.ts","sourceRoot":"","sources":["../../../../src/util/shouldFilterRequest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAOjF"}
1
+ {"version":3,"file":"shouldFilterRequest.d.ts","sourceRoot":"","sources":["../../../../src/util/shouldFilterRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAOjF"}
@@ -0,0 +1,2 @@
1
+ import '@sentry-internal/replay-worker/worker-bundler';
2
+ //# sourceMappingURL=worker-bundler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-bundler.d.ts","sourceRoot":"","sources":["../../../src/worker-bundler.ts"],"names":[],"mappings":"AAAA,OAAO,+CAA+C,CAAC"}
@@ -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 */
@@ -1,4 +1,4 @@
1
- import { Event, TransportMakeRequestResponse } from '@sentry/types';
1
+ import { Event, TransportMakeRequestResponse } from '@sentry/core';
2
2
  import { ReplayContainer } from '../types';
3
3
  type AfterSendEventCallback = (event: Event, sendResponse: TransportMakeRequestResponse) => void;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Event } from '@sentry/types';
1
+ import { Event } from '@sentry/core';
2
2
  import { ReplayContainer } from '../types';
3
3
  type BeforeSendEventCallback = (event: Event) => void;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Breadcrumb } from '@sentry/types';
1
+ import { Breadcrumb } from '@sentry/core';
2
2
  import { ReplayContainer } from '../types';
3
3
  import { ReplayFrame } from '../types/replayFrame';
4
4
  type BreadcrumbWithCategory = Required<Pick<Breadcrumb, 'category'>>;
@@ -1,4 +1,4 @@
1
- import { Breadcrumb } from '@sentry/types';
1
+ import { Breadcrumb } from '@sentry/core';
2
2
  import { 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,4 +1,4 @@
1
- import { Breadcrumb, HandlerDataDom } from '@sentry/types';
1
+ import { Breadcrumb, HandlerDataDom } from '@sentry/core';
2
2
  import { ReplayContainer } from '../types';
3
3
  export declare const handleDomListener: (replay: ReplayContainer) => (handlerData: HandlerDataDom) => void;
4
4
  /** Get the base DOM breadcrumb. */
@@ -1,4 +1,4 @@
1
- import { Event, EventHint } from '@sentry/types';
1
+ import { Event, EventHint } from '@sentry/core';
2
2
  import { ReplayContainer } from '../types';
3
3
  /**
4
4
  * Returns a listener to be added to `addEventProcessor(listener)`.
@@ -1,4 +1,4 @@
1
- import { HandlerDataHistory } from '@sentry/types';
1
+ import { HandlerDataHistory } from '@sentry/core';
2
2
  import { ReplayContainer } from '../types';
3
3
  /**
4
4
  * Returns a listener to be added to `addHistoryInstrumentationHandler(listener)`.
@@ -1,4 +1,4 @@
1
- import { Breadcrumb } from '@sentry/types';
1
+ import { Breadcrumb } from '@sentry/core';
2
2
  import { ReplayContainer } from '../types';
3
3
  /** Handle keyboard events & create breadcrumbs. */
4
4
  export declare function handleKeyboardEvent(replay: ReplayContainer, event: KeyboardEvent): void;
@@ -1,4 +1,4 @@
1
- import { Breadcrumb, BreadcrumbHint } from '@sentry/types';
1
+ import { Breadcrumb, BreadcrumbHint } from '@sentry/core';
2
2
  import { ReplayContainer, ReplayNetworkOptions } from '../types';
3
3
  interface ExtendedNetworkBreadcrumbsOptions extends ReplayNetworkOptions {
4
4
  replay: ReplayContainer;
@@ -1,4 +1,4 @@
1
- import { Breadcrumb } from '@sentry/types';
1
+ import { Breadcrumb } from '@sentry/core';
2
2
  import { ReplayContainer } from '../../types';
3
3
  /**
4
4
  * Add a breadcrumb event to replay.
@@ -1,4 +1,4 @@
1
- import { FeedbackEvent } from '@sentry/types';
1
+ import { FeedbackEvent } from '@sentry/core';
2
2
  import { ReplayContainer } from '../../types';
3
3
  /**
4
4
  * Add a feedback breadcrumb event to replay.
@@ -1,4 +1,4 @@
1
- import { INode } from '@sentry-internal/rrweb-snapshot';
1
+ import { 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,8 +1,9 @@
1
- import { Breadcrumb, FetchBreadcrumbData } from '@sentry/types';
2
- import { FetchHint, ReplayContainer, ReplayNetworkOptions, ReplayNetworkRequestOrResponse } from '../../types';
1
+ import { Breadcrumb, FetchBreadcrumbData } from '@sentry/core';
2
+ import { FetchHint } from '@sentry/browser-utils';
3
+ import { 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;
@@ -1,13 +1,9 @@
1
- import { NetworkMetaWarning, NetworkRequestData, ReplayNetworkRequestData, ReplayNetworkRequestOrResponse, ReplayPerformanceEntry } from '../../types';
1
+ import { NetworkMetaWarning } from '@sentry/browser-utils';
2
+ import { 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): [
8
- string | undefined,
9
- NetworkMetaWarning?
10
- ];
11
7
  /** Merge a warning into an existing network request/response. */
12
8
  export declare function mergeWarning(info: ReplayNetworkRequestOrResponse | undefined, warning: NetworkMetaWarning): ReplayNetworkRequestOrResponse;
13
9
  /** Convert ReplayNetworkRequestData to a PerformanceEntry. */
@@ -1,8 +1,8 @@
1
- import { Event } from '@sentry/types';
1
+ import { Event } from '@sentry/core';
2
2
  import { 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,8 +1,9 @@
1
- import { Breadcrumb, XhrBreadcrumbData } from '@sentry/types';
2
- import { NetworkMetaWarning, ReplayContainer, ReplayNetworkOptions, XhrHint } from '../../types';
1
+ import { Breadcrumb, XhrBreadcrumbData } from '@sentry/core';
2
+ import { NetworkMetaWarning, XhrHint } from '@sentry/browser-utils';
3
+ import { 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;
@@ -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 */
@@ -1,4 +1,4 @@
1
- import { ReplayRecordingData } from '@sentry/types';
1
+ import { ReplayRecordingData } from '@sentry/core';
2
2
  import { 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 { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } from '..
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
  readonly 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
  /**
@@ -1,4 +1,4 @@
1
- import { ReplayRecordingData } from '@sentry/types';
1
+ import { ReplayRecordingData } from '@sentry/core';
2
2
  import { 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.
@@ -11,6 +11,9 @@ export declare class EventBufferProxy implements EventBuffer {
11
11
  private _used;
12
12
  private _ensureWorkerIsLoadedPromise;
13
13
  constructor(worker: Worker);
14
+ /*@inheritdoc
15
+ @inheritdoc */
16
+ waitForCheckout: boolean;
14
17
  /*@inheritdoc */
15
18
  readonly type: EventBufferType;
16
19
  /*@inheritDoc */
@@ -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
  }
@@ -1,7 +1,7 @@
1
- import { EventBuffer } from '../types';
1
+ import { 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.