@newrelic/browser-agent 0.1.231 → 1.232.1

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 (256) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/common/config/state/configurable.js +27 -21
  3. package/dist/cjs/common/config/state/init.js +8 -0
  4. package/dist/cjs/common/config/state/runtime.js +24 -26
  5. package/dist/cjs/common/constants/env.cdn.js +1 -1
  6. package/dist/cjs/common/constants/env.npm.js +1 -1
  7. package/dist/cjs/common/context/shared-context.js +2 -1
  8. package/dist/cjs/common/event-emitter/contextual-ee.test.js +2 -2
  9. package/dist/cjs/common/event-emitter/register-handler.test.js +1 -1
  10. package/dist/cjs/common/event-listener/event-listener-opts.js +4 -2
  11. package/dist/cjs/common/harvest/harvest-scheduler.js +14 -11
  12. package/dist/cjs/common/harvest/harvest.js +3 -1
  13. package/dist/cjs/common/session/constants.js +12 -0
  14. package/dist/cjs/common/session/session-entity.js +278 -0
  15. package/dist/cjs/common/session/session-entity.test.js +436 -0
  16. package/dist/cjs/common/storage/first-party-cookies.js +35 -0
  17. package/dist/cjs/common/storage/local-memory.js +35 -0
  18. package/dist/cjs/common/storage/local-memory.test.js +20 -0
  19. package/dist/cjs/common/storage/local-storage.js +33 -0
  20. package/dist/cjs/common/storage/local-storage.test.js +14 -0
  21. package/dist/cjs/common/timer/interaction-timer.js +78 -0
  22. package/dist/cjs/common/timer/interaction-timer.test.js +216 -0
  23. package/dist/cjs/common/timer/timer.js +32 -0
  24. package/dist/cjs/common/timer/timer.test.js +105 -0
  25. package/dist/cjs/common/unload/eol.js +2 -2
  26. package/dist/cjs/common/url/canonicalize-url.js +32 -0
  27. package/dist/cjs/common/url/canonicalize-url.test.js +42 -0
  28. package/dist/cjs/common/url/clean-url.js +10 -3
  29. package/dist/cjs/common/util/data-size.js +6 -0
  30. package/dist/cjs/common/util/data-size.test.js +47 -0
  31. package/dist/cjs/common/util/global-scope.js +4 -2
  32. package/dist/cjs/common/util/invoke.js +73 -0
  33. package/dist/cjs/common/util/invoke.test.js +49 -0
  34. package/dist/cjs/common/util/obfuscate.js +0 -4
  35. package/dist/cjs/common/window/page-visibility.js +3 -1
  36. package/dist/cjs/common/wrap/wrap-fetch.js +1 -3
  37. package/dist/cjs/common/wrap/wrap-function.js +1 -3
  38. package/dist/cjs/common/wrap/wrap-timer.js +1 -1
  39. package/dist/cjs/features/ajax/aggregate/index.js +2 -2
  40. package/dist/cjs/features/ajax/instrument/index.js +1 -1
  41. package/dist/cjs/features/jserrors/aggregate/canonical-function-name.js +12 -4
  42. package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.js +93 -10
  43. package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.test.js +164 -38
  44. package/dist/cjs/features/jserrors/aggregate/index.js +25 -46
  45. package/dist/cjs/features/jserrors/instrument/index.js +0 -2
  46. package/dist/cjs/features/metrics/aggregate/index.js +13 -2
  47. package/dist/cjs/features/page_action/aggregate/index.js +2 -2
  48. package/dist/cjs/features/page_view_event/aggregate/index.js +6 -3
  49. package/dist/cjs/features/page_view_timing/aggregate/index.js +6 -6
  50. package/dist/cjs/features/session_trace/aggregate/index.js +3 -5
  51. package/dist/cjs/features/spa/aggregate/index.js +6 -5
  52. package/dist/cjs/features/utils/agent-session.js +73 -0
  53. package/dist/cjs/features/utils/feature-base.js +1 -1
  54. package/dist/cjs/features/utils/instrument-base.js +7 -2
  55. package/dist/cjs/features/utils/lazy-loader.js +1 -1
  56. package/dist/cjs/loaders/agent.js +1 -1
  57. package/dist/cjs/loaders/api/api.js +1 -4
  58. package/dist/cjs/loaders/api/apiAsync.js +3 -2
  59. package/dist/cjs/loaders/configure/configure.js +0 -6
  60. package/dist/esm/common/config/state/configurable.js +26 -20
  61. package/dist/esm/common/config/state/init.js +8 -0
  62. package/dist/esm/common/config/state/runtime.js +24 -26
  63. package/dist/esm/common/constants/env.cdn.js +1 -1
  64. package/dist/esm/common/constants/env.npm.js +1 -1
  65. package/dist/esm/common/context/shared-context.js +2 -1
  66. package/dist/esm/common/event-emitter/contextual-ee.test.js +2 -2
  67. package/dist/esm/common/event-emitter/register-handler.test.js +1 -1
  68. package/dist/esm/common/event-listener/event-listener-opts.js +4 -2
  69. package/dist/esm/common/harvest/harvest-scheduler.js +14 -11
  70. package/dist/esm/common/harvest/harvest.js +3 -1
  71. package/dist/esm/common/session/constants.js +3 -0
  72. package/dist/esm/common/session/session-entity.js +271 -0
  73. package/dist/esm/common/session/session-entity.test.js +434 -0
  74. package/dist/esm/common/storage/first-party-cookies.js +28 -0
  75. package/dist/esm/common/storage/local-memory.js +28 -0
  76. package/dist/esm/common/storage/local-memory.test.js +18 -0
  77. package/dist/esm/common/storage/local-storage.js +26 -0
  78. package/dist/esm/common/storage/local-storage.test.js +12 -0
  79. package/dist/esm/common/timer/interaction-timer.js +71 -0
  80. package/dist/esm/common/timer/interaction-timer.test.js +214 -0
  81. package/dist/esm/common/timer/timer.js +25 -0
  82. package/dist/esm/common/timer/timer.test.js +103 -0
  83. package/dist/esm/common/unload/eol.js +1 -1
  84. package/dist/esm/common/url/canonicalize-url.js +27 -0
  85. package/dist/esm/common/url/canonicalize-url.test.js +38 -0
  86. package/dist/esm/common/url/clean-url.js +10 -3
  87. package/dist/esm/common/util/data-size.js +7 -0
  88. package/dist/esm/common/util/data-size.test.js +45 -0
  89. package/dist/esm/common/util/global-scope.js +1 -0
  90. package/dist/esm/common/util/invoke.js +66 -0
  91. package/dist/esm/common/util/invoke.test.js +47 -0
  92. package/dist/esm/common/util/obfuscate.js +0 -4
  93. package/dist/esm/common/window/page-visibility.js +3 -1
  94. package/dist/esm/common/wrap/wrap-fetch.js +1 -2
  95. package/dist/esm/common/wrap/wrap-function.js +1 -2
  96. package/dist/esm/common/wrap/wrap-timer.js +1 -1
  97. package/dist/esm/features/ajax/aggregate/index.js +2 -2
  98. package/dist/esm/features/ajax/instrument/index.js +1 -1
  99. package/dist/esm/features/jserrors/aggregate/canonical-function-name.js +12 -4
  100. package/dist/esm/features/jserrors/aggregate/compute-stack-trace.js +93 -10
  101. package/dist/esm/features/jserrors/aggregate/compute-stack-trace.test.js +149 -25
  102. package/dist/esm/features/jserrors/aggregate/index.js +26 -46
  103. package/dist/esm/features/jserrors/instrument/index.js +0 -1
  104. package/dist/esm/features/metrics/aggregate/index.js +14 -3
  105. package/dist/esm/features/page_action/aggregate/index.js +2 -2
  106. package/dist/esm/features/page_view_event/aggregate/index.js +6 -3
  107. package/dist/esm/features/page_view_timing/aggregate/index.js +6 -6
  108. package/dist/esm/features/session_trace/aggregate/index.js +3 -4
  109. package/dist/esm/features/spa/aggregate/index.js +6 -5
  110. package/dist/esm/features/utils/agent-session.js +67 -0
  111. package/dist/esm/features/utils/feature-base.js +1 -1
  112. package/dist/esm/features/utils/instrument-base.js +7 -2
  113. package/dist/esm/features/utils/lazy-loader.js +1 -1
  114. package/dist/esm/loaders/agent.js +1 -1
  115. package/dist/esm/loaders/api/api.js +2 -5
  116. package/dist/esm/loaders/api/apiAsync.js +2 -1
  117. package/dist/esm/loaders/configure/configure.js +2 -8
  118. package/dist/types/common/config/state/configurable.d.ts.map +1 -1
  119. package/dist/types/common/config/state/init.d.ts.map +1 -1
  120. package/dist/types/common/config/state/runtime.d.ts.map +1 -1
  121. package/dist/types/common/context/shared-context.d.ts.map +1 -1
  122. package/dist/types/common/event-listener/event-listener-opts.d.ts +2 -2
  123. package/dist/types/common/event-listener/event-listener-opts.d.ts.map +1 -1
  124. package/dist/types/common/harvest/harvest-scheduler.d.ts +1 -0
  125. package/dist/types/common/harvest/harvest-scheduler.d.ts.map +1 -1
  126. package/dist/types/common/harvest/harvest.d.ts.map +1 -1
  127. package/dist/types/common/session/constants.d.ts +4 -0
  128. package/dist/types/common/session/constants.d.ts.map +1 -0
  129. package/dist/types/common/session/session-entity.d.ts +72 -0
  130. package/dist/types/common/session/session-entity.d.ts.map +1 -0
  131. package/dist/types/common/storage/first-party-cookies.d.ts +8 -0
  132. package/dist/types/common/storage/first-party-cookies.d.ts.map +1 -0
  133. package/dist/types/common/storage/local-memory.d.ts +8 -0
  134. package/dist/types/common/storage/local-memory.d.ts.map +1 -0
  135. package/dist/types/common/storage/local-storage.d.ts +6 -0
  136. package/dist/types/common/storage/local-storage.d.ts.map +1 -0
  137. package/dist/types/common/timer/interaction-timer.d.ts +11 -0
  138. package/dist/types/common/timer/interaction-timer.d.ts.map +1 -0
  139. package/dist/types/common/timer/timer.d.ts +12 -0
  140. package/dist/types/common/timer/timer.d.ts.map +1 -0
  141. package/dist/types/common/url/canonicalize-url.d.ts +9 -0
  142. package/dist/types/common/url/canonicalize-url.d.ts.map +1 -0
  143. package/dist/types/common/url/clean-url.d.ts +7 -1
  144. package/dist/types/common/url/clean-url.d.ts.map +1 -1
  145. package/dist/types/common/util/data-size.d.ts +7 -1
  146. package/dist/types/common/util/data-size.d.ts.map +1 -1
  147. package/dist/types/common/util/global-scope.d.ts +1 -0
  148. package/dist/types/common/util/global-scope.d.ts.map +1 -1
  149. package/dist/types/common/util/invoke.d.ts +35 -0
  150. package/dist/types/common/util/invoke.d.ts.map +1 -0
  151. package/dist/types/common/util/obfuscate.d.ts.map +1 -1
  152. package/dist/types/common/window/page-visibility.d.ts +1 -1
  153. package/dist/types/common/window/page-visibility.d.ts.map +1 -1
  154. package/dist/types/common/wrap/wrap-fetch.d.ts.map +1 -1
  155. package/dist/types/common/wrap/wrap-function.d.ts.map +1 -1
  156. package/dist/types/features/ajax/aggregate/index.d.ts +2 -2
  157. package/dist/types/features/ajax/aggregate/index.d.ts.map +1 -1
  158. package/dist/types/features/jserrors/aggregate/canonical-function-name.d.ts +8 -1
  159. package/dist/types/features/jserrors/aggregate/canonical-function-name.d.ts.map +1 -1
  160. package/dist/types/features/jserrors/aggregate/compute-stack-trace.d.ts +48 -19
  161. package/dist/types/features/jserrors/aggregate/compute-stack-trace.d.ts.map +1 -1
  162. package/dist/types/features/jserrors/aggregate/index.d.ts +14 -5
  163. package/dist/types/features/jserrors/aggregate/index.d.ts.map +1 -1
  164. package/dist/types/features/jserrors/instrument/index.d.ts.map +1 -1
  165. package/dist/types/features/metrics/aggregate/index.d.ts +2 -2
  166. package/dist/types/features/metrics/aggregate/index.d.ts.map +1 -1
  167. package/dist/types/features/page_action/aggregate/index.d.ts +3 -3
  168. package/dist/types/features/page_action/aggregate/index.d.ts.map +1 -1
  169. package/dist/types/features/page_view_event/aggregate/index.d.ts +2 -2
  170. package/dist/types/features/page_view_event/aggregate/index.d.ts.map +1 -1
  171. package/dist/types/features/page_view_timing/aggregate/index.d.ts +2 -2
  172. package/dist/types/features/page_view_timing/aggregate/index.d.ts.map +1 -1
  173. package/dist/types/features/session_trace/aggregate/index.d.ts +2 -2
  174. package/dist/types/features/session_trace/aggregate/index.d.ts.map +1 -1
  175. package/dist/types/features/spa/aggregate/index.d.ts +2 -2
  176. package/dist/types/features/spa/aggregate/index.d.ts.map +1 -1
  177. package/dist/types/features/utils/agent-session.d.ts +2 -0
  178. package/dist/types/features/utils/agent-session.d.ts.map +1 -0
  179. package/dist/types/features/utils/instrument-base.d.ts.map +1 -1
  180. package/dist/types/features/utils/lazy-loader.d.ts +2 -2
  181. package/dist/types/features/utils/lazy-loader.d.ts.map +1 -1
  182. package/dist/types/loaders/api/api.d.ts.map +1 -1
  183. package/dist/types/loaders/api/apiAsync.d.ts.map +1 -1
  184. package/dist/types/loaders/configure/configure.d.ts.map +1 -1
  185. package/package.json +9 -8
  186. package/src/common/config/state/configurable.js +26 -19
  187. package/src/common/config/state/init.js +7 -0
  188. package/src/common/config/state/runtime.js +22 -27
  189. package/src/common/context/shared-context.js +2 -1
  190. package/src/common/event-emitter/contextual-ee.test.js +2 -2
  191. package/src/common/event-emitter/register-handler.test.js +1 -1
  192. package/src/common/event-listener/event-listener-opts.js +4 -4
  193. package/src/common/harvest/harvest-scheduler.js +12 -8
  194. package/src/common/harvest/harvest.js +3 -1
  195. package/src/common/session/constants.js +3 -0
  196. package/src/common/session/session-entity.js +271 -0
  197. package/src/common/session/session-entity.test.js +317 -0
  198. package/src/common/storage/first-party-cookies.js +31 -0
  199. package/src/common/storage/local-memory.js +30 -0
  200. package/src/common/storage/local-memory.test.js +19 -0
  201. package/src/common/storage/local-storage.js +28 -0
  202. package/src/common/storage/local-storage.test.js +17 -0
  203. package/src/common/timer/interaction-timer.js +75 -0
  204. package/src/common/timer/interaction-timer.test.js +167 -0
  205. package/src/common/timer/timer.js +31 -0
  206. package/src/common/timer/timer.test.js +100 -0
  207. package/src/common/unload/eol.js +1 -1
  208. package/src/common/url/canonicalize-url.js +28 -0
  209. package/src/common/url/canonicalize-url.test.js +34 -0
  210. package/src/common/url/clean-url.js +10 -3
  211. package/src/common/util/data-size.js +6 -0
  212. package/src/common/util/data-size.test.js +50 -0
  213. package/src/common/util/global-scope.js +2 -0
  214. package/src/common/util/invoke.js +55 -0
  215. package/src/common/util/invoke.test.js +65 -0
  216. package/src/common/util/obfuscate.js +0 -4
  217. package/src/common/window/page-visibility.js +2 -2
  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-timer.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 +24 -50
  227. package/src/features/jserrors/instrument/index.js +0 -1
  228. package/src/features/metrics/aggregate/index.js +18 -3
  229. package/src/features/page_action/aggregate/index.js +2 -2
  230. package/src/features/page_view_event/aggregate/index.js +6 -3
  231. package/src/features/page_view_timing/aggregate/index.js +6 -6
  232. package/src/features/session_trace/aggregate/index.js +3 -4
  233. package/src/features/spa/aggregate/index.js +5 -5
  234. package/src/features/utils/agent-session.js +68 -0
  235. package/src/features/utils/feature-base.js +1 -1
  236. package/src/features/utils/instrument-base.js +5 -2
  237. package/src/features/utils/lazy-loader.js +1 -1
  238. package/src/loaders/agent.js +1 -1
  239. package/src/loaders/api/api.js +2 -5
  240. package/src/loaders/api/apiAsync.js +2 -1
  241. package/src/loaders/configure/configure.js +2 -7
  242. package/dist/cjs/common/util/single.js +0 -23
  243. package/dist/cjs/common/window/session-storage.js +0 -87
  244. package/dist/cjs/features/utils/aggregate-base.js +0 -13
  245. package/dist/esm/common/util/single.js +0 -16
  246. package/dist/esm/common/window/session-storage.js +0 -77
  247. package/dist/esm/features/utils/aggregate-base.js +0 -6
  248. package/dist/types/common/util/single.d.ts +0 -2
  249. package/dist/types/common/util/single.d.ts.map +0 -1
  250. package/dist/types/common/window/session-storage.d.ts +0 -18
  251. package/dist/types/common/window/session-storage.d.ts.map +0 -1
  252. package/dist/types/features/utils/aggregate-base.d.ts +0 -4
  253. package/dist/types/features/utils/aggregate-base.d.ts.map +0 -1
  254. package/src/common/util/single.js +0 -18
  255. package/src/common/window/session-storage.js +0 -75
  256. package/src/features/utils/aggregate-base.js +0 -7
@@ -0,0 +1,72 @@
1
+ export class SessionEntity {
2
+ /**
3
+ * 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.
4
+ * There is one "namespace" an agent can store data in LS -- NRBA_{key}. If there are two agents on one page, and they both use the same key, they could overwrite each other since they would both use the same namespace in LS by default.
5
+ * The value can be overridden in the constructor, but will default to a unique 16 character hex string
6
+ * expiresMs and inactiveMs are used to "expire" the session, but can be overridden in the constructor. Pass 0 to disable expiration timers.
7
+ */
8
+ constructor(opts: any);
9
+ setup({ agentIdentifier, key, value, expiresMs, inactiveMs, storageAPI }: {
10
+ agentIdentifier: any;
11
+ key: any;
12
+ value?: string | undefined;
13
+ expiresMs?: number | undefined;
14
+ inactiveMs?: number | undefined;
15
+ storageAPI?: LocalMemory | undefined;
16
+ }): void;
17
+ storage: LocalMemory | undefined;
18
+ agentIdentifier: any;
19
+ key: any;
20
+ value: string | undefined;
21
+ expiresMs: number | undefined;
22
+ inactiveMs: number | undefined;
23
+ ee: any;
24
+ expiresAt: any;
25
+ expiresTimer: Timer | undefined;
26
+ inactiveAt: any;
27
+ inactiveTimer: InteractionTimer | undefined;
28
+ isNew: boolean | undefined;
29
+ initialized: boolean | undefined;
30
+ get lookupKey(): string;
31
+ sync(data: any): void;
32
+ /**
33
+ * Fetch the stored values from the storage API tied to this entity
34
+ * @returns {Object}
35
+ */
36
+ read(): Object;
37
+ /**
38
+ * Store data to the storage API tied to this entity
39
+ * To preseve existing attributes, the output of ...session.read()
40
+ * should be appended to the data argument
41
+ * @param {Object} data
42
+ * @returns {Object}
43
+ */
44
+ write(data: Object): Object;
45
+ reset(): Object;
46
+ /**
47
+ * Refresh the inactivity timer data
48
+ */
49
+ refresh(): void;
50
+ /**
51
+ * @param {number} timestamp
52
+ * @returns {boolean}
53
+ */
54
+ isExpired(timestamp: number): boolean;
55
+ /**
56
+ * @param {Object} data
57
+ * @returns {boolean}
58
+ */
59
+ isInvalid(data: Object): boolean;
60
+ collectSM(type: any, data: any, useUpdatedAt: any): void;
61
+ /**
62
+ * @param {number} futureMs - The number of ms to use to generate a future timestamp
63
+ * @returns {number}
64
+ */
65
+ getFutureTimestamp(futureMs: number): number;
66
+ syncCustomAttribute(key: any, value: any): void;
67
+ custom: any;
68
+ }
69
+ import { LocalMemory } from '../storage/local-memory';
70
+ import { Timer } from '../timer/timer';
71
+ import { InteractionTimer } from '../timer/interaction-timer';
72
+ //# sourceMappingURL=session-entity.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,8 @@
1
+ export class FirstPartyCookies {
2
+ constructor(domain: any);
3
+ domain: any;
4
+ get(name: any): string | undefined;
5
+ set(key: any, value: any): void;
6
+ remove(key: any): string | undefined;
7
+ }
8
+ //# sourceMappingURL=first-party-cookies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"first-party-cookies.d.ts","sourceRoot":"","sources":["../../../../src/common/storage/first-party-cookies.js"],"names":[],"mappings":"AAAA;IACE,yBAEC;IADC,YAAoB;IAGtB,mCAOC;IAED,gCAOC;IAED,qCAMC;CACF"}
@@ -0,0 +1,8 @@
1
+ export class LocalMemory {
2
+ constructor(initialState?: {});
3
+ state: {};
4
+ get(key: any): any;
5
+ set(key: any, value: any): void;
6
+ remove(key: any): void;
7
+ }
8
+ //# sourceMappingURL=local-memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-memory.d.ts","sourceRoot":"","sources":["../../../../src/common/storage/local-memory.js"],"names":[],"mappings":"AAAA;IACE,+BAEC;IADC,UAAyB;IAG3B,mBAMC;IAED,gCAOC;IAED,uBAMC;CACF"}
@@ -0,0 +1,6 @@
1
+ export class LocalStorage {
2
+ get(key: any): string | undefined;
3
+ set(key: any, value: any): void;
4
+ remove(key: any): void;
5
+ }
6
+ //# sourceMappingURL=local-storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../../src/common/storage/local-storage.js"],"names":[],"mappings":"AAAA;IACE,kCAQC;IAED,gCAOC;IAED,uBAMC;CACF"}
@@ -0,0 +1,11 @@
1
+ export class InteractionTimer extends Timer {
2
+ onRefresh: any;
3
+ onPause: any;
4
+ remainingMs: number | undefined;
5
+ abortController: AbortController | undefined;
6
+ abort(): void;
7
+ pause(): void;
8
+ refresh(cb: any, ms: any): void;
9
+ }
10
+ import { Timer } from './timer';
11
+ //# sourceMappingURL=interaction-timer.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,12 @@
1
+ export class Timer {
2
+ constructor(opts: any, ms: any);
3
+ onEnd: any;
4
+ initialMs: any;
5
+ startTimestamp: number;
6
+ timer: NodeJS.Timeout;
7
+ create(cb: any, ms: any): NodeJS.Timeout;
8
+ clear(): void;
9
+ end(): void;
10
+ isValid(): boolean;
11
+ }
12
+ //# sourceMappingURL=timer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../../../src/common/timer/timer.js"],"names":[],"mappings":"AACA;IACE,gCAQC;IALC,WAAuB;IACvB,eAAmB;IACnB,uBAAgC;IAEhC,sBAAwC;IAG1C,yCAGC;IAED,cAGC;IAED,YAGC;IAED,mBAEC;CACF"}
@@ -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,2 +1,8 @@
1
- export function dataSize(data: any): number | undefined;
1
+ /**
2
+ * Returns the size of the provided data. Designed for measuring XHR responses.
3
+ *
4
+ * @param {*} data - The data to be measured.
5
+ * @returns {(number|undefined)} - The size of the data or undefined if size cannot be determined.
6
+ */
7
+ export function dataSize(data: any): (number | undefined);
2
8
  //# sourceMappingURL=data-size.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-size.d.ts","sourceRoot":"","sources":["../../../../src/common/util/data-size.js"],"names":[],"mappings":"AAOA,wDAaC"}
1
+ {"version":3,"file":"data-size.d.ts","sourceRoot":"","sources":["../../../../src/common/util/data-size.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,qCAFa,CAAC,MAAM,GAAC,SAAS,CAAC,CAe9B"}
@@ -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"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Reduce the invocation of the supplied function so that it is only invoked
3
+ * once within a given timeout.
4
+ *
5
+ * If `wait` is `0`, the function will be invoked during the next tick.
6
+ * If `options.leading` is false or not provided, the function will be invoked
7
+ * N milliseconds after the last invocation of the returned function where
8
+ * N is the `timeout` value.
9
+ * If `options.leading` is true, the function will be invoked immediately upon
10
+ * the first invocation of the returned function and not again for N milliseconds
11
+ * where N is the `timeout` value.
12
+ * @param {function} func Function whose invocation should be limited so it is only invoked
13
+ * once within a given timeout period.
14
+ * @param {number} timeout Time in milliseconds that the function should only be invoked
15
+ * once within.
16
+ * @param {object} options Debounce options
17
+ * @param {boolean} options.leading Forces the function to be invoked on the first
18
+ * invocation of the returned function instead of N milliseconds after the last
19
+ * invocation.
20
+ * @returns {function} A wrapping function that will ensure the provided function
21
+ * is invoked only once within the given timeout.
22
+ */
23
+ export function debounce(func: Function, timeout?: number, options?: {
24
+ leading: boolean;
25
+ }): Function;
26
+ /**
27
+ * Reduce the invocation of the supplied function so that it is only invoked
28
+ * once.
29
+ * @param {function} func Function whose invocation should be limited so it is only invoked
30
+ * once.
31
+ * @returns {function} A wrapping function that will ensure the provided function
32
+ * is invoked only once.
33
+ */
34
+ export function single(func: Function): Function;
35
+ //# sourceMappingURL=invoke.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoke.d.ts","sourceRoot":"","sources":["../../../../src/common/util/invoke.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,mDATW,MAAM;IAGW,OAAO,EAAxB,OAAO;aAoBjB;AAED;;;;;;;GAOG;AACH,iDAQC"}
@@ -1 +1 @@
1
- {"version":3,"file":"obfuscate.d.ts","sourceRoot":"","sources":["../../../../src/common/util/obfuscate.js"],"names":[],"mappings":"AAqCA,sDAUC;AAGD,mDAsBC;AA/DD;IAKE,2BAEC;IAGD,kCAcC;CACF;8BAjC6B,2BAA2B"}
1
+ {"version":3,"file":"obfuscate.d.ts","sourceRoot":"","sources":["../../../../src/common/util/obfuscate.js"],"names":[],"mappings":"AAiCA,sDAUC;AAGD,mDAsBC;AA3DD;IACE,2BAEC;IAGD,kCAcC;CACF;8BA7B6B,2BAA2B"}
@@ -3,5 +3,5 @@
3
3
  * @param {boolean} [toHiddenOnly=false] - only execute the 'cb' when the vis is changing to the hidden state; no arg is passed to 'cb' if used
4
4
  * @returns void
5
5
  */
6
- export function subscribeToVisibilityChange(cb: Function, toHiddenOnly?: boolean | undefined): void;
6
+ export function subscribeToVisibilityChange(cb: Function, toHiddenOnly?: boolean | undefined, capture: any, abortSignal: any): void;
7
7
  //# sourceMappingURL=page-visibility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page-visibility.d.ts","sourceRoot":"","sources":["../../../../src/common/window/page-visibility.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,oGAWC"}
1
+ {"version":3,"file":"page-visibility.d.ts","sourceRoot":"","sources":["../../../../src/common/window/page-visibility.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,oIAWC"}
@@ -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 AggregateBase {
1
+ export class Aggregate extends FeatureBase {
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 AggregateBase {
12
12
  spaAjaxEvents: {};
13
13
  };
14
14
  }
15
- import { AggregateBase } from '../../utils/aggregate-base';
15
+ import { FeatureBase } from '../../utils/feature-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;8BA5O6B,4BAA4B"}
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,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 AggregateBase {
1
+ /**
2
+ * @typedef {import('./compute-stack-trace.js').StackInfo} StackInfo
3
+ */
4
+ export class Aggregate extends FeatureBase {
2
5
  static featureName: string;
3
6
  constructor(agentIdentifier: any, aggregator: any);
4
7
  stackReported: {};
@@ -13,12 +16,18 @@ export class Aggregate extends AggregateBase {
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 { AggregateBase } from '../../utils/aggregate-base';
31
+ export type StackInfo = import('./compute-stack-trace.js').StackInfo;
32
+ import { FeatureBase } from '../../utils/feature-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;8BAjS6B,4BAA4B"}
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,4EAsFC;IAED,2CAgCC;IAED,+CA2BC;CACF;wBAlQY,OAAO,0BAA0B,EAAE,SAAS;4BAH7B,0BAA0B"}
@@ -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"}
@@ -1,4 +1,4 @@
1
- export class Aggregate extends AggregateBase {
1
+ export class Aggregate extends FeatureBase {
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 AggregateBase {
8
8
  unload(): void;
9
9
  resourcesSent: boolean | undefined;
10
10
  }
11
- import { AggregateBase } from '../../utils/aggregate-base';
11
+ import { FeatureBase } from '../../utils/feature-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":"AAaA;IACE,2BAAiC;IACjC,mDAsBC;IAED,wDAKC;IAED,iDAKC;IAED,qBA2BC;IAED,0BAQC;IAED,eAuCC;IAhCG,mCAAyB;CAiC9B;8BAjI6B,4BAA4B"}
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,4 +1,4 @@
1
- export class Aggregate extends AggregateBase {
1
+ export class Aggregate extends FeatureBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  eventsPerMinute: number;
@@ -6,7 +6,7 @@ export class Aggregate extends AggregateBase {
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 AggregateBase {
20
20
  onHarvestFinished(result: any): void;
21
21
  addPageAction(t: any, name: any, attributes: any): void;
22
22
  }
23
- import { AggregateBase } from '../../utils/aggregate-base';
23
+ import { FeatureBase } from '../../utils/feature-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;8BArG6B,4BAA4B"}
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;4BAlG2B,0BAA0B"}
@@ -1,9 +1,9 @@
1
- export class Aggregate extends AggregateBase {
1
+ export class Aggregate extends FeatureBase {
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 { AggregateBase } from '../../utils/aggregate-base';
8
+ import { FeatureBase } from '../../utils/feature-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,gBAsFC;CACF;8BAlI6B,4BAA4B"}
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,4 +1,4 @@
1
- export class Aggregate extends AggregateBase {
1
+ export class Aggregate extends FeatureBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  timings: any[];
@@ -27,6 +27,6 @@ export class Aggregate extends AggregateBase {
27
27
  } | undefined;
28
28
  getPayload(data: any): string;
29
29
  }
30
- import { AggregateBase } from '../../utils/aggregate-base';
30
+ import { FeatureBase } from '../../utils/feature-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;8BAhP6B,4BAA4B;iCALzB,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;4BA7O2B,0BAA0B;iCARrB,2CAA2C"}
@@ -1,4 +1,4 @@
1
- export class Aggregate extends AggregateBase {
1
+ export class Aggregate extends FeatureBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  ptid: string | undefined;
@@ -73,5 +73,5 @@ export class Aggregate extends AggregateBase {
73
73
  trivial(node: any): boolean;
74
74
  shouldIgnoreEvent(event: any, target: any): boolean;
75
75
  }
76
- import { AggregateBase } from '../../utils/aggregate-base';
76
+ import { FeatureBase } from '../../utils/feature-base';
77
77
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAkBA;IACE,2BAAiC;IACjC,mDAoHC;IA7GC,yBAAc;IACd;;;;;;;;;;;;kBAOC;IACD;;;;;kBAKC;IACD;;;;;;;;;;;;;;;;;;;;;;;;kBAwBC;IAED,sBAAe;IACf,8BAAkB;IAClB,iCAAqB;IACrB,wBAA0G;IAC1G,wBAA4G;IAE5G,8BAAkB;IAgEpB,oDAKC;IAED,2BAuBC;IAED,+DAaC;IAED,oFAmBC;IAED,wBAQC;IAED,uCAqBC;IAED,gDAUC;IAED,qCAoBC;IAED,qEAUC;IAED,mEAUC;IAED,yBASC;IAED,sCASC;IAED,yBAmCC;IAED,gCAEC;IAED,+DAyBC;IAED,+BAEC;IAED,6BAEC;IAED,uCAEC;IAED,4BAIC;IAED,oDAMC;CACF;8BA/Y6B,4BAA4B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,mDAoHC;IA7GC,yBAAc;IACd;;;;;;;;;;;;kBAOC;IACD;;;;;kBAKC;IACD;;;;;;;;;;;;;;;;;;;;;;;;kBAwBC;IAED,sBAAe;IACf,8BAAkB;IAClB,iCAAqB;IACrB,wBAA0G;IAC1G,wBAA4G;IAE5G,8BAAkB;IAgEpB,oDAKC;IAED,2BAuBC;IAED,+DAaC;IAED,oFAmBC;IAED,wBAQC;IAED,uCAqBC;IAED,gDAUC;IAED,qCAoBC;IAED,qEAUC;IAED,mEAUC;IAED,yBASC;IAED,sCASC;IAED,yBAmCC;IAED,gCAEC;IAED,+DAyBC;IAED,+BAEC;IAED,6BAEC;IAED,uCAEC;IAED,4BAIC;IAED,oDAMC;CACF;4BA5Y2B,0BAA0B"}
@@ -1,4 +1,4 @@
1
- export class Aggregate extends AggregateBase {
1
+ export class Aggregate extends FeatureBase {
2
2
  static featureName: string;
3
3
  constructor(agentIdentifier: any, aggregator: any);
4
4
  state: {
@@ -20,6 +20,6 @@ export class Aggregate extends AggregateBase {
20
20
  };
21
21
  serializer: Serializer;
22
22
  }
23
- import { AggregateBase } from '../../utils/aggregate-base';
23
+ import { FeatureBase } from '../../utils/feature-base';
24
24
  import { Serializer } from './serializer';
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/spa/aggregate/index.js"],"names":[],"mappings":"AA2BA;IACE,2BAAiC;IACjC,mDAmsBC;IAhsBC;;;;;;;;;;;;;;;;MAgBC;IAED,uBAAsC;CA+qBzC;8BAltB6B,4BAA4B;2BAE/B,cAAc"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/spa/aggregate/index.js"],"names":[],"mappings":"AA2BA;IACE,2BAAiC;IACjC,mDAmsBC;IAhsBC;;;;;;;;;;;;;;;;MAgBC;IAED,uBAAsC;CA+qBzC;4BA5sB2B,0BAA0B;2BAL3B,cAAc"}
@@ -0,0 +1,2 @@
1
+ export function setupAgentSession(agentIdentifier: any): any;
2
+ //# sourceMappingURL=agent-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-session.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/agent-session.js"],"names":[],"mappings":"AAWA,6DAwDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrument-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/instrument-base.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH;IACE;;;;;;;;OAQG;IACH,6BAPW,MAAM,uCAEN,MAAM,8BAchB;IAPC,uBAA0B;IAC1B,cAAgB;IAEhB,8IAA8I;IAC9I,cADW,WAAW,SAAS,CACd;IAKnB;;;OAGG;IACH,yBAyBC;CACF;4BA5D2B,gBAAgB"}
1
+ {"version":3,"file":"instrument-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/instrument-base.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH;IACE;;;;;;;;OAQG;IACH,6BAPW,MAAM,uCAEN,MAAM,8BAchB;IAPC,uBAA0B;IAC1B,cAAgB;IAEhB,8IAA8I;IAC9I,cADW,WAAW,SAAS,CACd;IAKnB;;;OAGG;IACH,yBA4BC;CACF;4BA/D2B,gBAAgB"}
@@ -7,7 +7,7 @@
7
7
  * should be.
8
8
  * @param featureName Name of the feature to import such as ajax or session_trace
9
9
  * @param featurePart Name of the feature part to load; should be either instrument or aggregate
10
- * @returns {Promise<InstrumentBase|AggregateBase|null>}
10
+ * @returns {Promise<InstrumentBase|FeatureBase|null>}
11
11
  */
12
- export function lazyLoader(featureName: any, featurePart: any): Promise<InstrumentBase | AggregateBase | null>;
12
+ export function lazyLoader(featureName: any, featurePart: any): Promise<InstrumentBase | FeatureBase | null>;
13
13
  //# sourceMappingURL=lazy-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lazy-loader.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/lazy-loader.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,gEAFa,QAAQ,iCAA6B,IAAI,CAAC,CAyBtD"}
1
+ {"version":3,"file":"lazy-loader.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/lazy-loader.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,gEAFa,QAAQ,+BAA2B,IAAI,CAAC,CAyBpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/loaders/api/api.js"],"names":[],"mappings":"AAmBA,2CAoBC;AAED;;;;;IA4DE;;;;OAIG;qBAFQ,MAAM;;;EAuElB;AA7JD,0CAA0C"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/loaders/api/api.js"],"names":[],"mappings":"AAkBA,2CAoBC;AAED;;;;;IA0DE;;;;OAIG;qBAFQ,MAAM;;;EAuElB;AA3JD,0CAA0C"}
@@ -1 +1 @@
1
- {"version":3,"file":"apiAsync.d.ts","sourceRoot":"","sources":["../../../../src/loaders/api/apiAsync.js"],"names":[],"mappings":"AAUA,mDAiFC"}
1
+ {"version":3,"file":"apiAsync.d.ts","sourceRoot":"","sources":["../../../../src/loaders/api/apiAsync.js"],"names":[],"mappings":"AAUA,mDAkFC"}
@@ -1 +1 @@
1
- {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../../../src/loaders/configure/configure.js"],"names":[],"mappings":"AAOA;;;;;;;;EA+BC"}
1
+ {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../../../src/loaders/configure/configure.js"],"names":[],"mappings":"AAMA;;;;;;;;EA2BC"}