@newrelic/browser-agent 1.232.0 → 1.233.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 (273) hide show
  1. package/dist/cjs/cdn/polyfills.js +5 -2
  2. package/dist/cjs/common/config/state/configurable.js +15 -26
  3. package/dist/cjs/common/config/state/info.js +1 -1
  4. package/dist/cjs/common/config/state/init.js +101 -56
  5. package/dist/cjs/common/config/state/loader-config.js +1 -1
  6. package/dist/cjs/common/config/state/runtime.js +1 -5
  7. package/dist/cjs/common/constants/env.cdn.js +1 -1
  8. package/dist/cjs/common/constants/env.npm.js +1 -1
  9. package/dist/cjs/common/drain/drain.js +1 -1
  10. package/dist/cjs/common/harvest/harvest-scheduler.js +30 -10
  11. package/dist/cjs/common/harvest/harvest.js +119 -55
  12. package/dist/cjs/common/session/session-entity.js +35 -22
  13. package/dist/cjs/common/session/session-entity.test.js +73 -49
  14. package/dist/cjs/common/timer/interaction-timer.js +9 -12
  15. package/dist/cjs/common/url/canonicalize-url.js +32 -0
  16. package/dist/cjs/common/url/canonicalize-url.test.js +42 -0
  17. package/dist/cjs/common/url/clean-url.js +10 -3
  18. package/dist/cjs/common/url/protocol.test.js +0 -1
  19. package/dist/cjs/common/util/feature-flags.js +2 -1
  20. package/dist/cjs/common/util/global-scope.js +4 -2
  21. package/dist/cjs/common/util/submit-data.js +57 -18
  22. package/dist/cjs/common/wrap/wrap-fetch.js +1 -3
  23. package/dist/cjs/common/wrap/wrap-function.js +1 -3
  24. package/dist/cjs/common/wrap/wrap-promise.js +1 -1
  25. package/dist/cjs/features/ajax/aggregate/index.js +2 -2
  26. package/dist/cjs/features/ajax/instrument/index.js +1 -1
  27. package/dist/cjs/features/jserrors/aggregate/canonical-function-name.js +12 -4
  28. package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.js +93 -10
  29. package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.test.js +164 -38
  30. package/dist/cjs/features/jserrors/aggregate/index.js +29 -48
  31. package/dist/cjs/features/jserrors/instrument/index.js +0 -2
  32. package/dist/cjs/features/metrics/aggregate/framework-detection.js +67 -0
  33. package/dist/cjs/features/metrics/aggregate/framework-detection.test.js +137 -0
  34. package/dist/cjs/features/metrics/aggregate/index.js +7 -3
  35. package/dist/cjs/features/metrics/aggregate/polyfill-detection.es5.js +14 -0
  36. package/dist/cjs/features/metrics/aggregate/polyfill-detection.es5.test.js +17 -0
  37. package/dist/cjs/features/metrics/aggregate/polyfill-detection.js +53 -0
  38. package/dist/cjs/features/metrics/aggregate/polyfill-detection.test.js +165 -0
  39. package/dist/cjs/features/page_action/aggregate/index.js +2 -2
  40. package/dist/cjs/features/page_view_event/aggregate/index.js +6 -3
  41. package/dist/cjs/features/page_view_timing/aggregate/index.js +2 -2
  42. package/dist/cjs/features/session_replay/aggregate/index.js +333 -0
  43. package/dist/cjs/features/session_replay/constants.js +9 -0
  44. package/dist/cjs/features/session_replay/index.js +12 -0
  45. package/dist/cjs/features/session_replay/instrument/index.js +29 -0
  46. package/dist/cjs/features/session_trace/aggregate/index.js +163 -164
  47. package/dist/cjs/features/session_trace/constants.js +2 -9
  48. package/dist/cjs/features/session_trace/instrument/index.js +24 -66
  49. package/dist/cjs/features/spa/aggregate/index.js +2 -2
  50. package/dist/cjs/features/utils/agent-session.js +1 -2
  51. package/dist/cjs/features/utils/aggregate-base.js +64 -0
  52. package/dist/cjs/features/utils/feature-base.js +0 -31
  53. package/dist/cjs/features/utils/handler-cache.js +3 -4
  54. package/dist/cjs/features/utils/instrument-base.js +42 -10
  55. package/dist/cjs/features/utils/{lazy-loader.js → lazy-feature-loader.js} +4 -2
  56. package/dist/cjs/loaders/agent.js +1 -1
  57. package/dist/cjs/loaders/api/apiAsync.js +3 -1
  58. package/dist/cjs/loaders/configure/configure.js +3 -3
  59. package/dist/cjs/loaders/features/featureDependencies.js +0 -12
  60. package/dist/cjs/loaders/features/features.js +3 -1
  61. package/dist/cjs/loaders/micro-agent.js +6 -6
  62. package/dist/esm/cdn/polyfills.js +5 -2
  63. package/dist/esm/common/config/state/configurable.js +14 -24
  64. package/dist/esm/common/config/state/info.js +2 -2
  65. package/dist/esm/common/config/state/init.js +102 -57
  66. package/dist/esm/common/config/state/loader-config.js +2 -2
  67. package/dist/esm/common/config/state/runtime.js +2 -4
  68. package/dist/esm/common/constants/env.cdn.js +1 -1
  69. package/dist/esm/common/constants/env.npm.js +1 -1
  70. package/dist/esm/common/drain/drain.js +1 -1
  71. package/dist/esm/common/harvest/harvest-scheduler.js +30 -10
  72. package/dist/esm/common/harvest/harvest.js +121 -56
  73. package/dist/esm/common/session/session-entity.js +35 -22
  74. package/dist/esm/common/session/session-entity.test.js +73 -49
  75. package/dist/esm/common/timer/interaction-timer.js +9 -12
  76. package/dist/esm/common/url/canonicalize-url.js +27 -0
  77. package/dist/esm/common/url/canonicalize-url.test.js +38 -0
  78. package/dist/esm/common/url/clean-url.js +10 -3
  79. package/dist/esm/common/url/protocol.test.js +0 -1
  80. package/dist/esm/common/util/feature-flags.js +2 -1
  81. package/dist/esm/common/util/global-scope.js +1 -0
  82. package/dist/esm/common/util/submit-data.js +57 -18
  83. package/dist/esm/common/wrap/wrap-fetch.js +1 -2
  84. package/dist/esm/common/wrap/wrap-function.js +1 -2
  85. package/dist/esm/common/wrap/wrap-promise.js +1 -1
  86. package/dist/esm/features/ajax/aggregate/index.js +2 -2
  87. package/dist/esm/features/ajax/instrument/index.js +1 -1
  88. package/dist/esm/features/jserrors/aggregate/canonical-function-name.js +12 -4
  89. package/dist/esm/features/jserrors/aggregate/compute-stack-trace.js +93 -10
  90. package/dist/esm/features/jserrors/aggregate/compute-stack-trace.test.js +149 -25
  91. package/dist/esm/features/jserrors/aggregate/index.js +30 -48
  92. package/dist/esm/features/jserrors/instrument/index.js +0 -1
  93. package/dist/esm/features/metrics/aggregate/framework-detection.js +61 -0
  94. package/dist/esm/features/metrics/aggregate/framework-detection.test.js +133 -0
  95. package/dist/esm/features/metrics/aggregate/index.js +7 -3
  96. package/dist/esm/features/metrics/aggregate/polyfill-detection.es5.js +8 -0
  97. package/dist/esm/features/metrics/aggregate/polyfill-detection.es5.test.js +15 -0
  98. package/dist/esm/features/metrics/aggregate/polyfill-detection.js +47 -0
  99. package/dist/esm/features/metrics/aggregate/polyfill-detection.test.js +163 -0
  100. package/dist/esm/features/page_action/aggregate/index.js +2 -2
  101. package/dist/esm/features/page_view_event/aggregate/index.js +6 -3
  102. package/dist/esm/features/page_view_timing/aggregate/index.js +2 -2
  103. package/dist/esm/features/session_replay/aggregate/index.js +327 -0
  104. package/dist/esm/features/session_replay/constants.js +2 -0
  105. package/dist/esm/features/session_replay/index.js +12 -0
  106. package/dist/esm/features/session_replay/instrument/index.js +21 -0
  107. package/dist/esm/features/session_trace/aggregate/index.js +163 -163
  108. package/dist/esm/features/session_trace/constants.js +1 -5
  109. package/dist/esm/features/session_trace/instrument/index.js +24 -66
  110. package/dist/esm/features/spa/aggregate/index.js +2 -2
  111. package/dist/esm/features/utils/agent-session.js +1 -2
  112. package/dist/esm/features/utils/aggregate-base.js +57 -0
  113. package/dist/esm/features/utils/feature-base.js +1 -32
  114. package/dist/esm/features/utils/handler-cache.js +3 -4
  115. package/dist/esm/features/utils/instrument-base.js +42 -10
  116. package/dist/esm/features/utils/{lazy-loader.js → lazy-feature-loader.js} +3 -1
  117. package/dist/esm/loaders/agent.js +1 -1
  118. package/dist/esm/loaders/api/apiAsync.js +3 -1
  119. package/dist/esm/loaders/configure/configure.js +3 -3
  120. package/dist/esm/loaders/features/featureDependencies.js +0 -11
  121. package/dist/esm/loaders/features/features.js +3 -1
  122. package/dist/esm/loaders/micro-agent.js +6 -6
  123. package/dist/types/common/config/state/configurable.d.ts +1 -3
  124. package/dist/types/common/config/state/configurable.d.ts.map +1 -1
  125. package/dist/types/common/config/state/init.d.ts.map +1 -1
  126. package/dist/types/common/config/state/runtime.d.ts.map +1 -1
  127. package/dist/types/common/harvest/harvest-scheduler.d.ts.map +1 -1
  128. package/dist/types/common/harvest/harvest.d.ts +37 -34
  129. package/dist/types/common/harvest/harvest.d.ts.map +1 -1
  130. package/dist/types/common/session/session-entity.d.ts +6 -3
  131. package/dist/types/common/session/session-entity.d.ts.map +1 -1
  132. package/dist/types/common/timer/interaction-timer.d.ts +2 -1
  133. package/dist/types/common/timer/interaction-timer.d.ts.map +1 -1
  134. package/dist/types/common/url/canonicalize-url.d.ts +9 -0
  135. package/dist/types/common/url/canonicalize-url.d.ts.map +1 -0
  136. package/dist/types/common/url/clean-url.d.ts +7 -1
  137. package/dist/types/common/url/clean-url.d.ts.map +1 -1
  138. package/dist/types/common/util/feature-flags.d.ts.map +1 -1
  139. package/dist/types/common/util/global-scope.d.ts +1 -0
  140. package/dist/types/common/util/global-scope.d.ts.map +1 -1
  141. package/dist/types/common/util/submit-data.d.ts +40 -14
  142. package/dist/types/common/util/submit-data.d.ts.map +1 -1
  143. package/dist/types/common/wrap/wrap-fetch.d.ts.map +1 -1
  144. package/dist/types/common/wrap/wrap-function.d.ts.map +1 -1
  145. package/dist/types/features/ajax/aggregate/index.d.ts +2 -2
  146. package/dist/types/features/ajax/aggregate/index.d.ts.map +1 -1
  147. package/dist/types/features/jserrors/aggregate/canonical-function-name.d.ts +8 -1
  148. package/dist/types/features/jserrors/aggregate/canonical-function-name.d.ts.map +1 -1
  149. package/dist/types/features/jserrors/aggregate/compute-stack-trace.d.ts +48 -19
  150. package/dist/types/features/jserrors/aggregate/compute-stack-trace.d.ts.map +1 -1
  151. package/dist/types/features/jserrors/aggregate/index.d.ts +14 -5
  152. package/dist/types/features/jserrors/aggregate/index.d.ts.map +1 -1
  153. package/dist/types/features/jserrors/instrument/index.d.ts.map +1 -1
  154. package/dist/types/features/metrics/aggregate/framework-detection.d.ts.map +1 -0
  155. package/dist/types/features/metrics/aggregate/index.d.ts +2 -2
  156. package/dist/types/features/metrics/aggregate/index.d.ts.map +1 -1
  157. package/dist/types/features/metrics/aggregate/polyfill-detection.d.ts +6 -0
  158. package/dist/types/features/metrics/aggregate/polyfill-detection.d.ts.map +1 -0
  159. package/dist/types/features/metrics/aggregate/polyfill-detection.es5.d.ts +7 -0
  160. package/dist/types/features/metrics/aggregate/polyfill-detection.es5.d.ts.map +1 -0
  161. package/dist/types/features/page_action/aggregate/index.d.ts +3 -3
  162. package/dist/types/features/page_action/aggregate/index.d.ts.map +1 -1
  163. package/dist/types/features/page_view_event/aggregate/index.d.ts +2 -2
  164. package/dist/types/features/page_view_event/aggregate/index.d.ts.map +1 -1
  165. package/dist/types/features/page_view_timing/aggregate/index.d.ts +2 -2
  166. package/dist/types/features/page_view_timing/aggregate/index.d.ts.map +1 -1
  167. package/dist/types/features/session_replay/aggregate/index.d.ts +96 -0
  168. package/dist/types/features/session_replay/aggregate/index.d.ts.map +1 -0
  169. package/dist/types/features/session_replay/constants.d.ts +2 -0
  170. package/dist/types/features/session_replay/constants.d.ts.map +1 -0
  171. package/dist/types/features/session_replay/index.d.ts +2 -0
  172. package/dist/types/features/session_replay/index.d.ts.map +1 -0
  173. package/dist/types/features/session_replay/instrument/index.d.ts +6 -0
  174. package/dist/types/features/session_replay/instrument/index.d.ts.map +1 -0
  175. package/dist/types/features/session_trace/aggregate/index.d.ts +8 -57
  176. package/dist/types/features/session_trace/aggregate/index.d.ts.map +1 -1
  177. package/dist/types/features/session_trace/constants.d.ts +0 -3
  178. package/dist/types/features/session_trace/constants.d.ts.map +1 -1
  179. package/dist/types/features/session_trace/instrument/index.d.ts +1 -3
  180. package/dist/types/features/session_trace/instrument/index.d.ts.map +1 -1
  181. package/dist/types/features/spa/aggregate/index.d.ts +2 -2
  182. package/dist/types/features/spa/aggregate/index.d.ts.map +1 -1
  183. package/dist/types/features/utils/agent-session.d.ts.map +1 -1
  184. package/dist/types/features/utils/aggregate-base.d.ts +11 -0
  185. package/dist/types/features/utils/aggregate-base.d.ts.map +1 -0
  186. package/dist/types/features/utils/feature-base.d.ts +0 -5
  187. package/dist/types/features/utils/feature-base.d.ts.map +1 -1
  188. package/dist/types/features/utils/handler-cache.d.ts.map +1 -1
  189. package/dist/types/features/utils/instrument-base.d.ts +3 -1
  190. package/dist/types/features/utils/instrument-base.d.ts.map +1 -1
  191. package/dist/types/features/utils/{lazy-loader.d.ts → lazy-feature-loader.d.ts} +2 -2
  192. package/dist/types/features/utils/lazy-feature-loader.d.ts.map +1 -0
  193. package/dist/types/loaders/configure/configure.d.ts.map +1 -1
  194. package/dist/types/loaders/features/featureDependencies.d.ts +0 -1
  195. package/dist/types/loaders/features/featureDependencies.d.ts.map +1 -1
  196. package/dist/types/loaders/features/features.d.ts +1 -0
  197. package/dist/types/loaders/features/features.d.ts.map +1 -1
  198. package/package.json +31 -22
  199. package/src/cdn/polyfills.js +4 -1
  200. package/src/common/config/state/configurable.js +18 -24
  201. package/src/common/config/state/info.js +2 -2
  202. package/src/common/config/state/init.js +62 -28
  203. package/src/common/config/state/loader-config.js +2 -2
  204. package/src/common/config/state/runtime.js +2 -4
  205. package/src/common/drain/drain.js +1 -1
  206. package/src/common/harvest/harvest-scheduler.js +35 -10
  207. package/src/common/harvest/harvest.js +73 -50
  208. package/src/common/session/session-entity.js +34 -23
  209. package/src/common/session/session-entity.test.js +57 -51
  210. package/src/common/timer/interaction-timer.js +9 -12
  211. package/src/common/url/canonicalize-url.js +28 -0
  212. package/src/common/url/canonicalize-url.test.js +34 -0
  213. package/src/common/url/clean-url.js +10 -3
  214. package/src/common/url/protocol.test.js +0 -1
  215. package/src/common/util/feature-flags.js +2 -2
  216. package/src/common/util/global-scope.js +2 -0
  217. package/src/common/util/submit-data.js +28 -17
  218. package/src/common/wrap/wrap-fetch.js +1 -2
  219. package/src/common/wrap/wrap-function.js +1 -2
  220. package/src/common/wrap/wrap-promise.js +1 -1
  221. package/src/features/ajax/aggregate/index.js +2 -2
  222. package/src/features/ajax/instrument/index.js +1 -1
  223. package/src/features/jserrors/aggregate/canonical-function-name.js +12 -4
  224. package/src/features/jserrors/aggregate/compute-stack-trace.js +85 -11
  225. package/src/features/jserrors/aggregate/compute-stack-trace.test.js +141 -24
  226. package/src/features/jserrors/aggregate/index.js +28 -52
  227. package/src/features/jserrors/instrument/index.js +0 -1
  228. package/src/features/metrics/aggregate/framework-detection.js +73 -0
  229. package/src/features/metrics/aggregate/framework-detection.test.js +201 -0
  230. package/src/features/metrics/aggregate/index.js +8 -3
  231. package/src/features/metrics/aggregate/polyfill-detection.es5.js +9 -0
  232. package/src/features/metrics/aggregate/polyfill-detection.es5.test.js +16 -0
  233. package/src/features/metrics/aggregate/polyfill-detection.js +48 -0
  234. package/src/features/metrics/aggregate/polyfill-detection.test.js +163 -0
  235. package/src/features/page_action/aggregate/index.js +2 -2
  236. package/src/features/page_view_event/aggregate/index.js +5 -5
  237. package/src/features/page_view_timing/aggregate/index.js +2 -2
  238. package/src/features/session_replay/aggregate/index.js +314 -0
  239. package/src/features/session_replay/constants.js +3 -0
  240. package/src/features/session_replay/index.js +12 -0
  241. package/src/features/session_replay/instrument/index.js +22 -0
  242. package/src/features/session_trace/aggregate/index.js +148 -188
  243. package/src/features/session_trace/constants.js +0 -4
  244. package/src/features/session_trace/instrument/index.js +17 -69
  245. package/src/features/spa/aggregate/index.js +2 -2
  246. package/src/features/utils/agent-session.js +1 -2
  247. package/src/features/utils/aggregate-base.js +51 -0
  248. package/src/features/utils/feature-base.js +1 -31
  249. package/src/features/utils/handler-cache.js +3 -4
  250. package/src/features/utils/instrument-base.js +40 -8
  251. package/src/features/utils/{lazy-loader.js → lazy-feature-loader.js} +3 -1
  252. package/src/loaders/agent.js +1 -1
  253. package/src/loaders/api/apiAsync.js +1 -1
  254. package/src/loaders/configure/configure.js +4 -3
  255. package/src/loaders/features/featureDependencies.js +0 -12
  256. package/src/loaders/features/features.js +3 -1
  257. package/src/loaders/micro-agent.js +4 -4
  258. package/dist/cjs/common/metrics/framework-detection.js +0 -72
  259. package/dist/cjs/common/util/user-agent.js +0 -57
  260. package/dist/cjs/common/window/supports-performance-observer.js +0 -15
  261. package/dist/esm/common/metrics/framework-detection.js +0 -66
  262. package/dist/esm/common/util/user-agent.js +0 -48
  263. package/dist/esm/common/window/supports-performance-observer.js +0 -9
  264. package/dist/types/common/metrics/framework-detection.d.ts.map +0 -1
  265. package/dist/types/common/util/user-agent.d.ts +0 -5
  266. package/dist/types/common/util/user-agent.d.ts.map +0 -1
  267. package/dist/types/common/window/supports-performance-observer.d.ts +0 -2
  268. package/dist/types/common/window/supports-performance-observer.d.ts.map +0 -1
  269. package/dist/types/features/utils/lazy-loader.d.ts.map +0 -1
  270. package/src/common/metrics/framework-detection.js +0 -71
  271. package/src/common/util/user-agent.js +0 -56
  272. package/src/common/window/supports-performance-observer.js +0 -10
  273. /package/dist/types/{common/metrics → features/metrics/aggregate}/framework-detection.d.ts +0 -0
@@ -1,3 +1,8 @@
1
+ export namespace SESSION_EVENTS {
2
+ const PAUSE: string;
3
+ const RESET: string;
4
+ const RESUME: string;
5
+ }
1
6
  export class SessionEntity {
2
7
  /**
3
8
  * Create a self-managing Session Entity. This entity is scoped to the agent identifier which triggered it, allowing for multiple simultaneous session objects to exist.
@@ -15,15 +20,13 @@ export class SessionEntity {
15
20
  storageAPI?: LocalMemory | undefined;
16
21
  }): void;
17
22
  storage: LocalMemory | undefined;
23
+ state: {} | undefined;
18
24
  agentIdentifier: any;
19
25
  key: any;
20
- value: string | undefined;
21
26
  expiresMs: number | undefined;
22
27
  inactiveMs: number | undefined;
23
28
  ee: any;
24
- expiresAt: any;
25
29
  expiresTimer: Timer | undefined;
26
- inactiveAt: any;
27
30
  inactiveTimer: InteractionTimer | undefined;
28
31
  isNew: boolean | undefined;
29
32
  initialized: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"session-entity.d.ts","sourceRoot":"","sources":["../../../../src/common/session/session-entity.js"],"names":[],"mappings":"AAyBA;IACE;;;;;OAKG;IACH,uBAEC;IAED;;;;;;;aA6EC;IA3EsB,iCAAgC;IAKrD,qBAAsC;IAGtC,SAAc;IAEd,0BAAkB;IAElB,8BAA0B;IAC1B,+BAA4B;IAE5B,QAAiC;IAe/B,eAA6E;IAC7E,gCAO+B;IAS/B,gBAAgF;IAChF,4CAagC;IAOlC,2BAA6C;IAM7C,iCAAuB;IAIzB,wBAEC;IAED,sBAEC;IAED;;;OAGG;IACH,QAFa,MAAM,CA6BlB;IAED;;;;;;OAMG;IACH,YAHW,MAAM,GACJ,MAAM,CAgBlB;IAED,gBAyBC;IAED;;OAEG;IACH,gBAKC;IAED;;;OAGG;IACH,qBAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;OAGG;IACH,gBAHW,MAAM,GACJ,OAAO,CAKnB;IAED,yDAYC;IAED;;;OAGG;IACH,6BAHW,MAAM,GACJ,MAAM,CAIlB;IAED,gDAaC;IAHG,YAAuD;CAI5D;4BAvQ2B,yBAAyB;sBAH/B,gBAAgB;iCAIL,4BAA4B"}
1
+ {"version":3,"file":"session-entity.d.ts","sourceRoot":"","sources":["../../../../src/common/session/session-entity.js"],"names":[],"mappings":";;;;;AAiCA;IACE;;;;;OAKG;IACH,uBAEC;IAED;;;;;;;aAkFC;IAhFsB,iCAAgC;IAGrD,sBAAe;IAIf,qBAAsC;IAEtC,SAAc;IAId,8BAA0B;IAC1B,+BAA4B;IAE5B,QAAiC;IAgB/B,gCAOqC;IAUrC,4CAiBsC;IAOV,2BAA6C;IAM3E,iCAAuB;IAIzB,wBAEC;IAED,sBAEC;IAED;;;OAGG;IACH,QAFa,MAAM,CA6BlB;IAED;;;;;;OAMG;IACH,YAHW,MAAM,GACJ,MAAM,CAiBlB;IAED,gBAuBC;IAED;;OAEG;IACH,gBAIC;IAED;;;OAGG;IACH,qBAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;OAGG;IACH,gBAHW,MAAM,GACJ,OAAO,CAKnB;IAED,yDAYC;IAED;;;OAGG;IACH,6BAHW,MAAM,GACJ,MAAM,CAIlB;IAED,gDAaC;IAHG,YAAuD;CAI5D;4BAlR2B,yBAAyB;sBAH/B,gBAAgB;iCAIL,4BAA4B"}
@@ -1,6 +1,7 @@
1
1
  export class InteractionTimer extends Timer {
2
- onRefresh: any;
3
2
  onPause: any;
3
+ onRefresh: any;
4
+ onResume: any;
4
5
  remainingMs: number | undefined;
5
6
  abortController: AbortController | undefined;
6
7
  abort(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"interaction-timer.d.ts","sourceRoot":"","sources":["../../../../src/common/timer/interaction-timer.js"],"names":[],"mappings":"AAKA;IAGI,eAA+B;IAC/B,aAA2B;IAG3B,gCAA4B;IAM1B,6CAA4C;IA+BhD,cAGC;IAED,cAIC;IAED,gCAMC;CAQF;sBA1EqB,SAAS"}
1
+ {"version":3,"file":"interaction-timer.d.ts","sourceRoot":"","sources":["../../../../src/common/timer/interaction-timer.js"],"names":[],"mappings":"AAKA;IAGI,aAAuF;IACvF,eAA6F;IAC7F,cAA0F;IAG1F,gCAA4B;IAM1B,6CAA4C;IAkChD,cAGC;IAED,cAIC;IAED,gCAMC;CACF;sBAvEqB,SAAS"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Converts a URL to its basic form without a query string or fragment. If the resulting URL is the same as the
3
+ * loader's origin URL, returns '<inline>'.
4
+ * @param {string} url - The URL to be canonicalized.
5
+ * @param {string} loaderOriginUrl - The origin URL of the agent loader, used for inline detection.
6
+ * @returns {string} The canonicalized URL, or '<inline>' if the URL matches the loader origin URL.
7
+ */
8
+ export function canonicalizeUrl(url: string): string;
9
+ //# sourceMappingURL=canonicalize-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonicalize-url.d.ts","sourceRoot":"","sources":["../../../../src/common/url/canonicalize-url.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,qCAJW,MAAM,GAEJ,MAAM,CAclB"}
@@ -1,2 +1,8 @@
1
- export function cleanURL(url: any, keepHash: any): any;
1
+ /**
2
+ * Cleans a URL by removing the query string and fragment (hash portion).
3
+ * @param {string} url - The original URL to be cleaned.
4
+ * @param {boolean} [keepHash=false] - Whether to preserve the hash portion of the URL.
5
+ * @returns {string} The cleaned URL.
6
+ */
7
+ export function cleanURL(url: string, keepHash?: boolean | undefined): string;
2
8
  //# sourceMappingURL=clean-url.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clean-url.d.ts","sourceRoot":"","sources":["../../../../src/common/url/clean-url.js"],"names":[],"mappings":"AAOA,uDAEC"}
1
+ {"version":3,"file":"clean-url.d.ts","sourceRoot":"","sources":["../../../../src/common/url/clean-url.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,8BAJW,MAAM,mCAEJ,MAAM,CAIlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../src/common/util/feature-flags.js"],"names":[],"mappings":"AAiBA,yEAkBC;AAED,mCAAmC"}
1
+ {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../src/common/util/feature-flags.js"],"names":[],"mappings":"AAkBA,yEAiBC;AAED,mCAAmC"}
@@ -10,4 +10,5 @@ export function getGlobalScope(): typeof globalThis;
10
10
  export const isBrowserScope: boolean;
11
11
  export const isWorkerScope: boolean;
12
12
  export let globalScope: typeof globalThis;
13
+ export const initialLocation: string;
13
14
  //# sourceMappingURL=global-scope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-scope.d.ts","sourceRoot":"","sources":["../../../../src/common/util/global-scope.js"],"names":[],"mappings":"AAsBA;;;;;GAKG;AACH,yCAEC;AACD,mCAYC;AACD,oDAEC;AA5CD,qCAC2D;AAE3D,oCACgG;AAEhG,0CAYI"}
1
+ {"version":3,"file":"global-scope.d.ts","sourceRoot":"","sources":["../../../../src/common/util/global-scope.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,yCAEC;AACD,mCAYC;AACD,oDAEC;AA9CD,qCAC2D;AAE3D,oCACgG;AAEhG,0CAYI;AAEJ,qCAAwD"}
@@ -1,35 +1,61 @@
1
1
  export namespace submitData {
2
2
  /**
3
3
  * Send via JSONP. Do NOT call this function outside of a guaranteed web window environment.
4
- * @param {string} url
5
- * @param {string} jsonp
4
+ * @param {Object} args - The args
5
+ * @param {string} args.url - The URL to send to
6
+ * @param {string} args.jsonp - The string name of the jsonp cb method
7
+ * @returns {XMLHttpRequest}
6
8
  * @returns {Element}
7
9
  */
8
- function jsonp(url: string, jsonp: string): Element;
9
- function xhrGet(url: any): XMLHttpRequest;
10
+ function jsonp({ url, jsonp }: {
11
+ url: string;
12
+ jsonp: string;
13
+ }): XMLHttpRequest;
14
+ function xhrGet({ url }: {
15
+ url: any;
16
+ }): XMLHttpRequest;
10
17
  /**
11
18
  * Send via XHR
12
- * @param {string} url
13
- * @param {string} body
14
- * @param {boolean} sync
19
+ * @param {Object} args - The args
20
+ * @param {string} args.url - The URL to send to
21
+ * @param {string=} args.body - The Stringified body
22
+ * @param {boolean=} args.sync - Run XHR as Synchronous
23
+ * @param {string=} [args.method=POST] - The XHR method to use
24
+ * @param {{key: string, value: string}[]} [args.headers] - The headers to attach
15
25
  * @returns {XMLHttpRequest}
16
26
  */
17
- function xhr(url: string, body: string, sync: boolean, method?: string): XMLHttpRequest;
27
+ function xhr({ url, body, sync, method, headers }: {
28
+ url: string;
29
+ body?: string | undefined;
30
+ sync?: boolean | undefined;
31
+ method?: string | undefined;
32
+ headers?: {
33
+ key: string;
34
+ value: string;
35
+ }[] | undefined;
36
+ }): XMLHttpRequest;
18
37
  /**
19
38
  * Unused at the moment -- DEPRECATED
20
39
  */
21
40
  /**
22
41
  * Send by appending an <img> element to the page. Do NOT call this function outside of a guaranteed web window environment.
23
- * @param {string} url
24
- * @returns {Element}
42
+ * @param {Object} args - The args
43
+ * @param {string} args.url - The URL to send to
44
+ * @returns {HTMLImageElement}
25
45
  */
26
- function img(url: string): Element;
46
+ function img({ url }: {
47
+ url: string;
48
+ }): HTMLImageElement;
27
49
  /**
28
50
  * Send via sendBeacon. Do NOT call this function outside of a guaranteed web window environment.
29
- * @param {string} url
30
- * @param {string} body
51
+ * @param {Object} args - The args
52
+ * @param {string} args.url - The URL to send to
53
+ * @param {string=} args.body - The Stringified body
31
54
  * @returns {boolean}
32
55
  */
33
- function beacon(url: string, body: string): boolean;
56
+ function beacon({ url, body }: {
57
+ url: string;
58
+ body?: string | undefined;
59
+ }): boolean;
34
60
  }
35
61
  //# sourceMappingURL=submit-data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"submit-data.d.ts","sourceRoot":"","sources":["../../../../src/common/util/submit-data.js"],"names":[],"mappings":";IAOA;;;;;OAKG;IACH,oDAsBC;IAED,0CAEC;IAED;;;;;;OAMG;IACH,wFAcC;IAED;;OAEG;IAKH;;;;OAIG;IACH,mCAIC;IAED;;;;;OAKG;IACH,oDAYC"}
1
+ {"version":3,"file":"submit-data.d.ts","sourceRoot":"","sources":["../../../../src/common/util/submit-data.js"],"names":[],"mappings":";IAOA;;;;;;;OAOG;IACH;;;uBAsBC;IAED;;uBAEC;IAED;;;;;;;;;OASG;IACH;;;;;;;;;uBAiBC;IAED;;OAEG;IAKH;;;;;OAKG;IACH;;yBAKC;IAED;;;;;;OAMG;IACH;;;gBAYC"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrap-fetch.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-fetch.js"],"names":[],"mappings":"AAuBA;;;;;;;GAOG;AACH,oCAJW,MAAM,GAEJ,MAAM,CAqElB;AAED;;;;;;GAMG;AACH,mCAJW,MAAM,GAEJ,MAAM,CAIlB"}
1
+ {"version":3,"file":"wrap-fetch.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-fetch.js"],"names":[],"mappings":"AAsBA;;;;;;;GAOG;AACH,oCAJW,MAAM,GAEJ,MAAM,CAqElB;AAED;;;;;;GAMG;AACH,mCAJW,MAAM,GAEJ,MAAM,CAIlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrap-function.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-function.js"],"names":[],"mappings":"AA2BA;;;;;GAKG;AACH,+EAHW,OAAO,YAkIjB;AA6DD;;;;;;;GAOG;AACH,wEAKC;AAED;;;;;;;GAOG;AACH,iCALW,MAAM,UACN,MAAM,2BAOhB;AA7OD,iCAAiC"}
1
+ {"version":3,"file":"wrap-function.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-function.js"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,+EAHW,OAAO,YAkIjB;AA6DD;;;;;;;GAOG;AACH,wEAKC;AAED;;;;;;;GAOG;AACH,iCALW,MAAM,UACN,MAAM,2BAOhB;AA7OD,iCAAiC"}
@@ -1,4 +1,4 @@
1
- export class Aggregate extends FeatureBase {
1
+ export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  storeXhr: (params: any, metrics: any, startTime: any, endTime: any, type: any) => void;
@@ -12,5 +12,5 @@ export class Aggregate extends FeatureBase {
12
12
  spaAjaxEvents: {};
13
13
  };
14
14
  }
15
- import { FeatureBase } from '../../utils/feature-base';
15
+ import { AggregateBase } from '../../utils/aggregate-base';
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,mDAmOC;IAtNC,uFAAwB;IACxB;;;;eAAoC;IACpC;;;MAA2E;CAqN9E;4BAxO2B,0BAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,mDAmOC;IAtNC,uFAAwB;IACxB;;;;eAAoC;IACpC;;;MAA2E;CAqN9E;8BAxO6B,4BAA4B"}
@@ -1,2 +1,9 @@
1
- export function canonicalFunctionName(orig: any): any;
1
+ /**
2
+ * Given a function name string, extracts only an alphanumeric segment at the end of the string (if one exists).
3
+ * This is useful for stack traces, where functions might not be named (e.g., anonymous, computed).
4
+ *
5
+ * @param {string} functionNameString - The original function name string.
6
+ * @returns {string|undefined} The canonical function name, or undefined if the input is falsy or no alphanumeric segments are found.
7
+ */
8
+ export function canonicalFunctionName(functionNameString: string): string | undefined;
2
9
  //# sourceMappingURL=canonical-function-name.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"canonical-function-name.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/canonical-function-name.js"],"names":[],"mappings":"AAMA,sDAOC"}
1
+ {"version":3,"file":"canonical-function-name.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/canonical-function-name.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,0DAHW,MAAM,GACJ,MAAM,GAAC,SAAS,CAS5B"}
@@ -1,22 +1,51 @@
1
- export function computeStackTrace(ex: any): {
2
- [x: string]: any;
3
- } | {
4
- mode: string;
5
- name: any;
6
- message: any;
1
+ /**
2
+ * Represents an error with a stack trace.
3
+ * @typedef {Object} StackInfo
4
+ * @property {string} name - The name of the error (e.g. 'TypeError').
5
+ * @property {string} message - The error message.
6
+ * @property {string} stackString - The stack trace as a string.
7
+ * @property {Array<Object>} frames - An array of frames in the stack trace.
8
+ * @property {string} frames.url - The URL of the file containing the code for the frame.
9
+ * @property {string} frames.func - The name of the function associated with the frame.
10
+ * @property {number} frames.line - The line number of the code in the frame.
11
+ */
12
+ /**
13
+ * Attempts to compute a stack trace for the given exception.
14
+ * @param {Error} ex - The exception for which to compute the stack trace.
15
+ * @returns {StackInfo} A stack trace object containing information about the frames on the stack.
16
+ */
17
+ export function computeStackTrace(ex: Error): StackInfo;
18
+ /**
19
+ * Represents an error with a stack trace.
20
+ */
21
+ export type StackInfo = {
22
+ /**
23
+ * - The name of the error (e.g. 'TypeError').
24
+ */
25
+ name: string;
26
+ /**
27
+ * - The error message.
28
+ */
29
+ message: string;
30
+ /**
31
+ * - The stack trace as a string.
32
+ */
7
33
  stackString: string;
8
- frames: {
9
- func: string;
10
- }[];
11
- } | {
12
- mode: string;
13
- name: any;
14
- message: any;
15
- stackString: string;
16
- frames: {
17
- url: any;
18
- line: any;
19
- column: any;
20
- }[];
34
+ /**
35
+ * - An array of frames in the stack trace.
36
+ */
37
+ frames: Array<Object>;
38
+ /**
39
+ * - The URL of the file containing the code for the frame.
40
+ */
41
+ url: string;
42
+ /**
43
+ * - The name of the function associated with the frame.
44
+ */
45
+ func: string;
46
+ /**
47
+ * - The line number of the code in the frame.
48
+ */
49
+ line: number;
21
50
  };
22
51
  //# sourceMappingURL=compute-stack-trace.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compute-stack-trace.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/compute-stack-trace.js"],"names":[],"mappings":"AAoEA;;;;;;;;;;;;;;;;;;;;EAyCC"}
1
+ {"version":3,"file":"compute-stack-trace.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/compute-stack-trace.js"],"names":[],"mappings":"AAqEA;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,sCAHW,KAAK,GACH,SAAS,CA2CrB;;;;;;;;UAvDa,MAAM;;;;aACN,MAAM;;;;iBACN,MAAM;;;;YACN,MAAM,MAAM,CAAC;;;;SACb,MAAM;;;;UACN,MAAM;;;;UACN,MAAM"}
@@ -1,4 +1,7 @@
1
- export class Aggregate extends FeatureBase {
1
+ /**
2
+ * @typedef {import('./compute-stack-trace.js').StackInfo} StackInfo
3
+ */
4
+ export class Aggregate extends AggregateBase {
2
5
  static featureName: string;
3
6
  constructor(agentIdentifier: any, aggregator: any);
4
7
  stackReported: {};
@@ -13,12 +16,18 @@ export class Aggregate extends FeatureBase {
13
16
  onHarvestFinished(result: any): void;
14
17
  nameHash(params: any): number;
15
18
  getBucketName(params: any, customParams: any): string;
16
- canonicalizeURL(url: any, cleanedOrigin: any): any;
17
- buildCanonicalStackString(stackInfo: any, cleanedOrigin: any): string;
18
- canonicalizeStackURLs(stackInfo: any): any;
19
+ /**
20
+ * Builds a standardized stack trace string from the frames in the given `stackInfo` object, with each frame separated
21
+ * by a newline character. Lines take the form `<functionName>@<url>:<lineNumber>`.
22
+ *
23
+ * @param {StackInfo} stackInfo - An object specifying a stack string and individual frames.
24
+ * @returns {string} A canonical stack string built from the URLs and function names in the given `stackInfo` object.
25
+ */
26
+ buildCanonicalStackString(stackInfo: StackInfo): string;
19
27
  storeError(err: any, time: any, internal: any, customAttributes: any): void;
20
28
  onInteractionSaved(interaction: any): void;
21
29
  onInteractionDiscarded(interaction: any): void;
22
30
  }
23
- import { FeatureBase } from '../../utils/feature-base';
31
+ export type StackInfo = import('./compute-stack-trace.js').StackInfo;
32
+ import { AggregateBase } from '../../utils/aggregate-base';
24
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/index.js"],"names":[],"mappings":"AAyBA;IACE,2BAAiC;IACjC,mDAmCC;IAhCC,kBAAuB;IACvB,qBAA0B;IAC1B,eAAoB;IAEpB,qBAAwB;IA8B1B;;;MAoBC;IAfG,iBAAuB;IAiB3B,qCAWC;IAED,8BAEC;IAED,sDAEC;IAED,mDASC;IAED,sEAcC;IASD,2CAgBC;IAED,4EAsFC;IAED,2CAgCC;IAED,+CA2BC;CACF;4BA9R2B,0BAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/index.js"],"names":[],"mappings":"AAwBA;;GAEG;AAEH;IACE,2BAAiC;IACjC,mDAmCC;IAhCC,kBAAuB;IACvB,qBAA0B;IAC1B,eAAoB;IAEpB,qBAAwB;IA8B1B;;;MAoBC;IAfG,iBAAuB;IAiB3B,qCAWC;IAED,8BAEC;IAED,sDAEC;IAED;;;;;;OAMG;IACH,qCAHW,SAAS,GACP,MAAM,CAgBlB;IAED,4EAwFC;IAED,2CAgCC;IAED,+CA2BC;CACF;wBApQY,OAAO,0BAA0B,EAAE,SAAS;8BAH3B,4BAA4B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/instrument/index.js"],"names":[],"mappings":"AAmBA;IACE,2BAAiC;IACjC,mEAgDC;IA5CC,iBAAiB;IAGf,2CAA0C;IAyB5C,iCAAsC;IActC,yBAA+B;IAUjC;;;;;;;;;OASG;IACH,wBAPW,MAAM,YACN,MAAM,UACN,MAAM,UACN,MAAM,YACN,KAAK,MAAI,2BAiBnB;;CACF;+BA3F8B,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/instrument/index.js"],"names":[],"mappings":"AAkBA;IACE,2BAAiC;IACjC,mEAgDC;IA5CC,iBAAiB;IAGf,2CAA0C;IAyB5C,iCAAsC;IActC,yBAA+B;IAUjC;;;;;;;;;OASG;IACH,wBAPW,MAAM,YACN,MAAM,UACN,MAAM,UACN,MAAM,YACN,KAAK,MAAI,2BAiBnB;;CACF;+BA3F8B,6BAA6B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framework-detection.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/framework-detection.js"],"names":[],"mappings":"AAeA,0CAmBC"}
@@ -1,4 +1,4 @@
1
- export class Aggregate extends FeatureBase {
1
+ export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  storeSupportabilityMetrics(name: any, value: any): void;
@@ -8,5 +8,5 @@ export class Aggregate extends FeatureBase {
8
8
  unload(): void;
9
9
  resourcesSent: boolean | undefined;
10
10
  }
11
- import { FeatureBase } from '../../utils/feature-base';
11
+ import { AggregateBase } from '../../utils/aggregate-base';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/index.js"],"names":[],"mappings":"AAeA;IACE,2BAAiC;IACjC,mDAsBC;IAED,wDAKC;IAED,iDAKC;IAED,qBA2BC;IAED,0BAQC;IAED,eAoDC;IA5CG,mCAAyB;CA6C9B;4BAvI2B,0BAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/index.js"],"names":[],"mappings":"AAgBA;IACE,2BAAiC;IACjC,mDAsBC;IAED,wDAKC;IAED,iDAKC;IAED,qBA+BC;IAED,0BAQC;IAED,eAoDC;IA5CG,mCAAyB;CA6C9B;8BA3I6B,4BAA4B"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Checks for native globals to see if they have been polyfilled by customer code.
3
+ * @returns {string[]} Array of methods that were detected to have been polyfilled
4
+ */
5
+ export function getPolyfills(): string[];
6
+ //# sourceMappingURL=polyfill-detection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyfill-detection.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/polyfill-detection.js"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,gCAFa,MAAM,EAAE,CA0BpB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file is used as a replacement for the polyfill-detection.es5.js
3
+ * file when running the polyfills webpack build.
4
+ * @returns {string[]} an empty array
5
+ */
6
+ export function getPolyfills(): string[];
7
+ //# sourceMappingURL=polyfill-detection.es5.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyfill-detection.es5.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/polyfill-detection.es5.js"],"names":[],"mappings":"AACA;;;;GAIG;AACH,gCAFa,MAAM,EAAE,CAIpB"}
@@ -1,4 +1,4 @@
1
- export class Aggregate extends FeatureBase {
1
+ export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  eventsPerMinute: number;
@@ -6,7 +6,7 @@ export class Aggregate extends FeatureBase {
6
6
  eventsPerHarvest: number;
7
7
  events: any[];
8
8
  att: any;
9
- referrerUrl: any;
9
+ referrerUrl: string | undefined;
10
10
  onHarvestStarted(options: any): {
11
11
  qs: {
12
12
  ua: any;
@@ -20,5 +20,5 @@ export class Aggregate extends FeatureBase {
20
20
  onHarvestFinished(result: any): void;
21
21
  addPageAction(t: any, name: any, attributes: any): void;
22
22
  }
23
- import { FeatureBase } from '../../utils/feature-base';
23
+ import { AggregateBase } from '../../utils/aggregate-base';
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_action/aggregate/index.js"],"names":[],"mappings":"AAgBA;IACE,2BAAiC;IACjC,mDA2BC;IAzBC,wBAA0B;IAC1B,wBAAsL;IACtL,yBAA2E;IAI3E,cAAgB;IAEhB,SAAqD;IAEZ,iBAA8C;IAiBzF;;;;;;;;MAkBC;IALG,wCAAgC;IAOpC,qCAKC;IAGD,wDAoCC;CACF;4BAlG2B,0BAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_action/aggregate/index.js"],"names":[],"mappings":"AAgBA;IACE,2BAAiC;IACjC,mDA2BC;IAzBC,wBAA0B;IAC1B,wBAAsL;IACtL,yBAA2E;IAI3E,cAAgB;IAEhB,SAAqD;IAEZ,gCAA8C;IAiBzF;;;;;;;;MAkBC;IALG,wCAAgC;IAOpC,qCAKC;IAGD,wDAoCC;CACF;8BAlG6B,4BAA4B"}
@@ -1,9 +1,9 @@
1
- export class Aggregate extends FeatureBase {
1
+ export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  alreadySent: boolean | undefined;
5
5
  getScheme(): "http" | "https";
6
6
  sendRum(): void;
7
7
  }
8
- import { FeatureBase } from '../../utils/feature-base';
8
+ import { AggregateBase } from '../../utils/aggregate-base';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_event/aggregate/index.js"],"names":[],"mappings":"AAoBA;IACE,2BAA2C;IAC3C,mDA2BC;IAvBG,iCAAwB;IAyB5B,8BAEC;IAED,gBAyFC;CACF;4BAjI2B,0BAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_event/aggregate/index.js"],"names":[],"mappings":"AAoBA;IACE,2BAA2C;IAC3C,mDA2BC;IAvBG,iCAAwB;IAyB5B,8BAEC;IAED,gBAyFC;CACF;8BAjI6B,4BAA4B"}
@@ -1,4 +1,4 @@
1
- export class Aggregate extends FeatureBase {
1
+ export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  timings: any[];
@@ -27,6 +27,6 @@ export class Aggregate extends FeatureBase {
27
27
  } | undefined;
28
28
  getPayload(data: any): string;
29
29
  }
30
- import { FeatureBase } from '../../utils/feature-base';
30
+ import { AggregateBase } from '../../utils/aggregate-base';
31
31
  import { HarvestScheduler } from '../../../common/harvest/harvest-scheduler';
32
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"AAqBA;IACE,2BAAiC;IACjC,mDA4GC;IAzGC,eAAiB;IACjB,mBAAqB;IACrB,4BAA+B;IAC/B,mBAAe;IAKf,sBAA4B;IAkF5B,4BAGQ;IAeV,8CAUC;IAED;;;OAGG;IACH,6BAFW,MAAM,QAOhB;IAED;;OAEG;IACH,uCAUC;IAED,mDAqBC;IAED,qCAOC;IAED,gDAWC;IAGD;;;;kBAWC;IAGD,8BAuBC;CACF;4BA7O2B,0BAA0B;iCARrB,2CAA2C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"AAqBA;IACE,2BAAiC;IACjC,mDA4GC;IAzGC,eAAiB;IACjB,mBAAqB;IACrB,4BAA+B;IAC/B,mBAAe;IAKf,sBAA4B;IAkF5B,4BAGQ;IAeV,8CAUC;IAED;;;OAGG;IACH,6BAFW,MAAM,QAOhB;IAED;;OAEG;IACH,uCAUC;IAED,mDAqBC;IAED,qCAOC;IAED,gDAWC;IAGD;;;;kBAWC;IAGD,8BAuBC;CACF;8BA7O6B,4BAA4B;iCARzB,2CAA2C"}
@@ -0,0 +1,96 @@
1
+ export const RRWEB_VERSION: "2.0.0-alpha.8";
2
+ export class Aggregate extends AggregateBase {
3
+ static featureName: string;
4
+ constructor(agentIdentifier: any, aggregator: any);
5
+ /** Each page mutation or event will be stored (raw) in this array. This array will be cleared on each harvest */
6
+ events: any[];
7
+ /** The interval to harvest at. This gets overridden if the size of the payload exceeds certain thresholds */
8
+ harvestTimeSeconds: any;
9
+ /** Set once the recorder has fully initialized after flag checks and sampling */
10
+ initialized: boolean;
11
+ /** Set once an error has been detected on the page. */
12
+ errorNoticed: boolean;
13
+ /** The "mode" to record in. Defaults to "OFF" until flags and sampling are checked. See "MODE" constant. */
14
+ mode: number;
15
+ /** Payload metadata -- Should indicate that the payload being sent is the first of a session */
16
+ isFirstChunk: boolean;
17
+ /** Payload metadata -- Should indicate that the payload being sent has a full DOM snapshot. This can happen
18
+ * -- When the recording library begins recording, it starts by taking a DOM snapshot
19
+ * -- When visibility changes from "hidden" -> "visible", it must capture a full snapshot for the replay to work correctly across tabs
20
+ */
21
+ hasSnapshot: boolean;
22
+ /** Payload metadata -- Should indicate that the payload being sent contains an error. Used for query/filter purposes in UI */
23
+ hasError: boolean;
24
+ /** A value which increments with every new mutation node reported. Resets after a harvest is sent */
25
+ payloadBytesEstimation: number;
26
+ /** The method to stop recording. This defaults to a noop, but is overwritten once the recording library is imported and initialized */
27
+ stopRecording: () => void;
28
+ scheduler: HarvestScheduler;
29
+ /**
30
+ * Evaluate entitlements and sampling before starting feature mechanics, importing and configuring recording library, and setting storage state
31
+ * @param {boolean} entitlements - the true/false state of the "sr" flag from RUM response
32
+ * @param {boolean} errorSample - the true/false state of the error sampling decision
33
+ * @param {boolean} fullSample - the true/false state of the full sampling decision
34
+ * @returns {void}
35
+ */
36
+ initializeRecording(entitlements: boolean, errorSample: boolean, fullSample: boolean): void;
37
+ prepareHarvest(options: any): {
38
+ qs: {
39
+ protocol_version: string;
40
+ };
41
+ body: {
42
+ type: string;
43
+ appId: number;
44
+ timestamp: number;
45
+ blob: string;
46
+ attributes: {
47
+ session: any;
48
+ hasSnapshot: boolean;
49
+ hasError: boolean;
50
+ agentVersion: any;
51
+ isFirstChunk: boolean;
52
+ 'nr.rrweb.version': string;
53
+ };
54
+ };
55
+ }[] | undefined;
56
+ getHarvestContents(): {
57
+ qs: {
58
+ protocol_version: string;
59
+ };
60
+ body: {
61
+ type: string;
62
+ appId: number;
63
+ timestamp: number;
64
+ blob: string;
65
+ attributes: {
66
+ session: any;
67
+ hasSnapshot: boolean;
68
+ hasError: boolean;
69
+ agentVersion: any;
70
+ isFirstChunk: boolean;
71
+ 'nr.rrweb.version': string;
72
+ };
73
+ };
74
+ };
75
+ onHarvestFinished(result: any): void;
76
+ /** Clears the buffer (this.events), and resets all payload metadata properties */
77
+ clearBuffer(): void;
78
+ /** Begin recording using configured recording lib */
79
+ startRecording(): void;
80
+ /** Store a payload in the buffer (this.events). This should be the callback to the recording lib noticing a mutation */
81
+ store(event: any, isCheckout: any): void;
82
+ /** force the recording lib to take a full DOM snapshot. This needs to occur in certain cases, like visibility changes */
83
+ takeFullSnapshot(): void;
84
+ /** Estimate the payload size */
85
+ getPayloadSize(newBytes?: number): number;
86
+ /** Abort the feature, once aborted it will not resume */
87
+ abort(): void;
88
+ /** Extensive research has yielded about an 88% compression factor on these payloads.
89
+ * This is an estimation using that factor as to not cause performance issues while evaluating
90
+ * https://staging.onenr.io/037jbJWxbjy
91
+ * */
92
+ estimateCompression(data: any): number;
93
+ }
94
+ import { AggregateBase } from '../../utils/aggregate-base';
95
+ import { HarvestScheduler } from '../../../common/harvest/harvest-scheduler';
96
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"AAsBA,4CAA4C;AAiB5C;IACE,2BAAiC;IACjC,mDAuFC;IApFC,iHAAiH;IACjH,cAAgB;IAChB,8GAA8G;IAC9G,wBAAgH;IAChH,iFAAiF;IACjF,qBAAwB;IACxB,uDAAuD;IACvD,sBAAyB;IACzB,6GAA6G;IAC7G,aAAoB;IAIpB,gGAAgG;IAChG,sBAAyB;IACzB;;;MAGE;IACF,qBAAwB;IACxB,+HAA+H;IAC/H,kBAAqB;IAErB,qGAAqG;IACrG,+BAA+B;IAE/B,uIAAuI;IACvI,0BAAyE;IAiBzE,4BASQ;IAiCV;;;;;;OAMG;IACH,kCALW,OAAO,eACP,OAAO,cACP,OAAO,GACL,IAAI,CAyChB;IAED;;;;;;;;;;;;;;;;;;oBAaC;IAED;;;;;;;;;;;;;;;;;;MAoBC;IAED,qCAOC;IAED,kFAAkF;IAClF,oBAMC;IAED,qDAAqD;IACrD,uBAoBC;IAED,yHAAyH;IACzH,yCA0BC;IAED,0HAA0H;IAC1H,yBAIC;IAED,gCAAgC;IAChC,0CAGC;IAED,yDAAyD;IACzD,cAKC;IAED;;;SAGK;IACL,uCAEC;CACF;8BAtS6B,4BAA4B;iCALzB,2CAA2C"}
@@ -0,0 +1,2 @@
1
+ export const FEATURE_NAME: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/session_replay/constants.js"],"names":[],"mappings":"AAEA,kCAAuD"}
@@ -0,0 +1,2 @@
1
+ export { Instrument as SessionReplay } from "./instrument/index";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/session_replay/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export class Instrument extends InstrumentBase {
2
+ static featureName: string;
3
+ constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
4
+ }
5
+ import { InstrumentBase } from '../../utils/instrument-base';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/instrument/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IACjC,mEAIC;CACF;+BAV8B,6BAA6B"}