@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.
- package/dist/cjs/cdn/polyfills.js +5 -2
- package/dist/cjs/common/config/state/configurable.js +15 -26
- package/dist/cjs/common/config/state/info.js +1 -1
- package/dist/cjs/common/config/state/init.js +101 -56
- package/dist/cjs/common/config/state/loader-config.js +1 -1
- package/dist/cjs/common/config/state/runtime.js +1 -5
- package/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/common/drain/drain.js +1 -1
- package/dist/cjs/common/harvest/harvest-scheduler.js +30 -10
- package/dist/cjs/common/harvest/harvest.js +119 -55
- package/dist/cjs/common/session/session-entity.js +35 -22
- package/dist/cjs/common/session/session-entity.test.js +73 -49
- package/dist/cjs/common/timer/interaction-timer.js +9 -12
- package/dist/cjs/common/url/canonicalize-url.js +32 -0
- package/dist/cjs/common/url/canonicalize-url.test.js +42 -0
- package/dist/cjs/common/url/clean-url.js +10 -3
- package/dist/cjs/common/url/protocol.test.js +0 -1
- package/dist/cjs/common/util/feature-flags.js +2 -1
- package/dist/cjs/common/util/global-scope.js +4 -2
- package/dist/cjs/common/util/submit-data.js +57 -18
- package/dist/cjs/common/wrap/wrap-fetch.js +1 -3
- package/dist/cjs/common/wrap/wrap-function.js +1 -3
- package/dist/cjs/common/wrap/wrap-promise.js +1 -1
- package/dist/cjs/features/ajax/aggregate/index.js +2 -2
- package/dist/cjs/features/ajax/instrument/index.js +1 -1
- package/dist/cjs/features/jserrors/aggregate/canonical-function-name.js +12 -4
- package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.js +93 -10
- package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.test.js +164 -38
- package/dist/cjs/features/jserrors/aggregate/index.js +29 -48
- package/dist/cjs/features/jserrors/instrument/index.js +0 -2
- package/dist/cjs/features/metrics/aggregate/framework-detection.js +67 -0
- package/dist/cjs/features/metrics/aggregate/framework-detection.test.js +137 -0
- package/dist/cjs/features/metrics/aggregate/index.js +7 -3
- package/dist/cjs/features/metrics/aggregate/polyfill-detection.es5.js +14 -0
- package/dist/cjs/features/metrics/aggregate/polyfill-detection.es5.test.js +17 -0
- package/dist/cjs/features/metrics/aggregate/polyfill-detection.js +53 -0
- package/dist/cjs/features/metrics/aggregate/polyfill-detection.test.js +165 -0
- package/dist/cjs/features/page_action/aggregate/index.js +2 -2
- package/dist/cjs/features/page_view_event/aggregate/index.js +6 -3
- package/dist/cjs/features/page_view_timing/aggregate/index.js +2 -2
- package/dist/cjs/features/session_replay/aggregate/index.js +333 -0
- package/dist/cjs/features/session_replay/constants.js +9 -0
- package/dist/cjs/features/session_replay/index.js +12 -0
- package/dist/cjs/features/session_replay/instrument/index.js +29 -0
- package/dist/cjs/features/session_trace/aggregate/index.js +163 -164
- package/dist/cjs/features/session_trace/constants.js +2 -9
- package/dist/cjs/features/session_trace/instrument/index.js +24 -66
- package/dist/cjs/features/spa/aggregate/index.js +2 -2
- package/dist/cjs/features/utils/agent-session.js +1 -2
- package/dist/cjs/features/utils/aggregate-base.js +64 -0
- package/dist/cjs/features/utils/feature-base.js +0 -31
- package/dist/cjs/features/utils/handler-cache.js +3 -4
- package/dist/cjs/features/utils/instrument-base.js +42 -10
- package/dist/cjs/features/utils/{lazy-loader.js → lazy-feature-loader.js} +4 -2
- package/dist/cjs/loaders/agent.js +1 -1
- package/dist/cjs/loaders/api/apiAsync.js +3 -1
- package/dist/cjs/loaders/configure/configure.js +3 -3
- package/dist/cjs/loaders/features/featureDependencies.js +0 -12
- package/dist/cjs/loaders/features/features.js +3 -1
- package/dist/cjs/loaders/micro-agent.js +6 -6
- package/dist/esm/cdn/polyfills.js +5 -2
- package/dist/esm/common/config/state/configurable.js +14 -24
- package/dist/esm/common/config/state/info.js +2 -2
- package/dist/esm/common/config/state/init.js +102 -57
- package/dist/esm/common/config/state/loader-config.js +2 -2
- package/dist/esm/common/config/state/runtime.js +2 -4
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/common/drain/drain.js +1 -1
- package/dist/esm/common/harvest/harvest-scheduler.js +30 -10
- package/dist/esm/common/harvest/harvest.js +121 -56
- package/dist/esm/common/session/session-entity.js +35 -22
- package/dist/esm/common/session/session-entity.test.js +73 -49
- package/dist/esm/common/timer/interaction-timer.js +9 -12
- package/dist/esm/common/url/canonicalize-url.js +27 -0
- package/dist/esm/common/url/canonicalize-url.test.js +38 -0
- package/dist/esm/common/url/clean-url.js +10 -3
- package/dist/esm/common/url/protocol.test.js +0 -1
- package/dist/esm/common/util/feature-flags.js +2 -1
- package/dist/esm/common/util/global-scope.js +1 -0
- package/dist/esm/common/util/submit-data.js +57 -18
- package/dist/esm/common/wrap/wrap-fetch.js +1 -2
- package/dist/esm/common/wrap/wrap-function.js +1 -2
- package/dist/esm/common/wrap/wrap-promise.js +1 -1
- package/dist/esm/features/ajax/aggregate/index.js +2 -2
- package/dist/esm/features/ajax/instrument/index.js +1 -1
- package/dist/esm/features/jserrors/aggregate/canonical-function-name.js +12 -4
- package/dist/esm/features/jserrors/aggregate/compute-stack-trace.js +93 -10
- package/dist/esm/features/jserrors/aggregate/compute-stack-trace.test.js +149 -25
- package/dist/esm/features/jserrors/aggregate/index.js +30 -48
- package/dist/esm/features/jserrors/instrument/index.js +0 -1
- package/dist/esm/features/metrics/aggregate/framework-detection.js +61 -0
- package/dist/esm/features/metrics/aggregate/framework-detection.test.js +133 -0
- package/dist/esm/features/metrics/aggregate/index.js +7 -3
- package/dist/esm/features/metrics/aggregate/polyfill-detection.es5.js +8 -0
- package/dist/esm/features/metrics/aggregate/polyfill-detection.es5.test.js +15 -0
- package/dist/esm/features/metrics/aggregate/polyfill-detection.js +47 -0
- package/dist/esm/features/metrics/aggregate/polyfill-detection.test.js +163 -0
- package/dist/esm/features/page_action/aggregate/index.js +2 -2
- package/dist/esm/features/page_view_event/aggregate/index.js +6 -3
- package/dist/esm/features/page_view_timing/aggregate/index.js +2 -2
- package/dist/esm/features/session_replay/aggregate/index.js +327 -0
- package/dist/esm/features/session_replay/constants.js +2 -0
- package/dist/esm/features/session_replay/index.js +12 -0
- package/dist/esm/features/session_replay/instrument/index.js +21 -0
- package/dist/esm/features/session_trace/aggregate/index.js +163 -163
- package/dist/esm/features/session_trace/constants.js +1 -5
- package/dist/esm/features/session_trace/instrument/index.js +24 -66
- package/dist/esm/features/spa/aggregate/index.js +2 -2
- package/dist/esm/features/utils/agent-session.js +1 -2
- package/dist/esm/features/utils/aggregate-base.js +57 -0
- package/dist/esm/features/utils/feature-base.js +1 -32
- package/dist/esm/features/utils/handler-cache.js +3 -4
- package/dist/esm/features/utils/instrument-base.js +42 -10
- package/dist/esm/features/utils/{lazy-loader.js → lazy-feature-loader.js} +3 -1
- package/dist/esm/loaders/agent.js +1 -1
- package/dist/esm/loaders/api/apiAsync.js +3 -1
- package/dist/esm/loaders/configure/configure.js +3 -3
- package/dist/esm/loaders/features/featureDependencies.js +0 -11
- package/dist/esm/loaders/features/features.js +3 -1
- package/dist/esm/loaders/micro-agent.js +6 -6
- package/dist/types/common/config/state/configurable.d.ts +1 -3
- package/dist/types/common/config/state/configurable.d.ts.map +1 -1
- package/dist/types/common/config/state/init.d.ts.map +1 -1
- package/dist/types/common/config/state/runtime.d.ts.map +1 -1
- package/dist/types/common/harvest/harvest-scheduler.d.ts.map +1 -1
- package/dist/types/common/harvest/harvest.d.ts +37 -34
- package/dist/types/common/harvest/harvest.d.ts.map +1 -1
- package/dist/types/common/session/session-entity.d.ts +6 -3
- package/dist/types/common/session/session-entity.d.ts.map +1 -1
- package/dist/types/common/timer/interaction-timer.d.ts +2 -1
- package/dist/types/common/timer/interaction-timer.d.ts.map +1 -1
- package/dist/types/common/url/canonicalize-url.d.ts +9 -0
- package/dist/types/common/url/canonicalize-url.d.ts.map +1 -0
- package/dist/types/common/url/clean-url.d.ts +7 -1
- package/dist/types/common/url/clean-url.d.ts.map +1 -1
- package/dist/types/common/util/feature-flags.d.ts.map +1 -1
- package/dist/types/common/util/global-scope.d.ts +1 -0
- package/dist/types/common/util/global-scope.d.ts.map +1 -1
- package/dist/types/common/util/submit-data.d.ts +40 -14
- package/dist/types/common/util/submit-data.d.ts.map +1 -1
- package/dist/types/common/wrap/wrap-fetch.d.ts.map +1 -1
- package/dist/types/common/wrap/wrap-function.d.ts.map +1 -1
- package/dist/types/features/ajax/aggregate/index.d.ts +2 -2
- package/dist/types/features/ajax/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/jserrors/aggregate/canonical-function-name.d.ts +8 -1
- package/dist/types/features/jserrors/aggregate/canonical-function-name.d.ts.map +1 -1
- package/dist/types/features/jserrors/aggregate/compute-stack-trace.d.ts +48 -19
- package/dist/types/features/jserrors/aggregate/compute-stack-trace.d.ts.map +1 -1
- package/dist/types/features/jserrors/aggregate/index.d.ts +14 -5
- package/dist/types/features/jserrors/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/jserrors/instrument/index.d.ts.map +1 -1
- package/dist/types/features/metrics/aggregate/framework-detection.d.ts.map +1 -0
- package/dist/types/features/metrics/aggregate/index.d.ts +2 -2
- package/dist/types/features/metrics/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/metrics/aggregate/polyfill-detection.d.ts +6 -0
- package/dist/types/features/metrics/aggregate/polyfill-detection.d.ts.map +1 -0
- package/dist/types/features/metrics/aggregate/polyfill-detection.es5.d.ts +7 -0
- package/dist/types/features/metrics/aggregate/polyfill-detection.es5.d.ts.map +1 -0
- package/dist/types/features/page_action/aggregate/index.d.ts +3 -3
- package/dist/types/features/page_action/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/page_view_event/aggregate/index.d.ts +2 -2
- package/dist/types/features/page_view_event/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/page_view_timing/aggregate/index.d.ts +2 -2
- package/dist/types/features/page_view_timing/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_replay/aggregate/index.d.ts +96 -0
- package/dist/types/features/session_replay/aggregate/index.d.ts.map +1 -0
- package/dist/types/features/session_replay/constants.d.ts +2 -0
- package/dist/types/features/session_replay/constants.d.ts.map +1 -0
- package/dist/types/features/session_replay/index.d.ts +2 -0
- package/dist/types/features/session_replay/index.d.ts.map +1 -0
- package/dist/types/features/session_replay/instrument/index.d.ts +6 -0
- package/dist/types/features/session_replay/instrument/index.d.ts.map +1 -0
- package/dist/types/features/session_trace/aggregate/index.d.ts +8 -57
- package/dist/types/features/session_trace/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_trace/constants.d.ts +0 -3
- package/dist/types/features/session_trace/constants.d.ts.map +1 -1
- package/dist/types/features/session_trace/instrument/index.d.ts +1 -3
- package/dist/types/features/session_trace/instrument/index.d.ts.map +1 -1
- package/dist/types/features/spa/aggregate/index.d.ts +2 -2
- package/dist/types/features/spa/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/utils/agent-session.d.ts.map +1 -1
- package/dist/types/features/utils/aggregate-base.d.ts +11 -0
- package/dist/types/features/utils/aggregate-base.d.ts.map +1 -0
- package/dist/types/features/utils/feature-base.d.ts +0 -5
- package/dist/types/features/utils/feature-base.d.ts.map +1 -1
- package/dist/types/features/utils/handler-cache.d.ts.map +1 -1
- package/dist/types/features/utils/instrument-base.d.ts +3 -1
- package/dist/types/features/utils/instrument-base.d.ts.map +1 -1
- package/dist/types/features/utils/{lazy-loader.d.ts → lazy-feature-loader.d.ts} +2 -2
- package/dist/types/features/utils/lazy-feature-loader.d.ts.map +1 -0
- package/dist/types/loaders/configure/configure.d.ts.map +1 -1
- package/dist/types/loaders/features/featureDependencies.d.ts +0 -1
- package/dist/types/loaders/features/featureDependencies.d.ts.map +1 -1
- package/dist/types/loaders/features/features.d.ts +1 -0
- package/dist/types/loaders/features/features.d.ts.map +1 -1
- package/package.json +31 -22
- package/src/cdn/polyfills.js +4 -1
- package/src/common/config/state/configurable.js +18 -24
- package/src/common/config/state/info.js +2 -2
- package/src/common/config/state/init.js +62 -28
- package/src/common/config/state/loader-config.js +2 -2
- package/src/common/config/state/runtime.js +2 -4
- package/src/common/drain/drain.js +1 -1
- package/src/common/harvest/harvest-scheduler.js +35 -10
- package/src/common/harvest/harvest.js +73 -50
- package/src/common/session/session-entity.js +34 -23
- package/src/common/session/session-entity.test.js +57 -51
- package/src/common/timer/interaction-timer.js +9 -12
- package/src/common/url/canonicalize-url.js +28 -0
- package/src/common/url/canonicalize-url.test.js +34 -0
- package/src/common/url/clean-url.js +10 -3
- package/src/common/url/protocol.test.js +0 -1
- package/src/common/util/feature-flags.js +2 -2
- package/src/common/util/global-scope.js +2 -0
- package/src/common/util/submit-data.js +28 -17
- package/src/common/wrap/wrap-fetch.js +1 -2
- package/src/common/wrap/wrap-function.js +1 -2
- package/src/common/wrap/wrap-promise.js +1 -1
- package/src/features/ajax/aggregate/index.js +2 -2
- package/src/features/ajax/instrument/index.js +1 -1
- package/src/features/jserrors/aggregate/canonical-function-name.js +12 -4
- package/src/features/jserrors/aggregate/compute-stack-trace.js +85 -11
- package/src/features/jserrors/aggregate/compute-stack-trace.test.js +141 -24
- package/src/features/jserrors/aggregate/index.js +28 -52
- package/src/features/jserrors/instrument/index.js +0 -1
- package/src/features/metrics/aggregate/framework-detection.js +73 -0
- package/src/features/metrics/aggregate/framework-detection.test.js +201 -0
- package/src/features/metrics/aggregate/index.js +8 -3
- package/src/features/metrics/aggregate/polyfill-detection.es5.js +9 -0
- package/src/features/metrics/aggregate/polyfill-detection.es5.test.js +16 -0
- package/src/features/metrics/aggregate/polyfill-detection.js +48 -0
- package/src/features/metrics/aggregate/polyfill-detection.test.js +163 -0
- package/src/features/page_action/aggregate/index.js +2 -2
- package/src/features/page_view_event/aggregate/index.js +5 -5
- package/src/features/page_view_timing/aggregate/index.js +2 -2
- package/src/features/session_replay/aggregate/index.js +314 -0
- package/src/features/session_replay/constants.js +3 -0
- package/src/features/session_replay/index.js +12 -0
- package/src/features/session_replay/instrument/index.js +22 -0
- package/src/features/session_trace/aggregate/index.js +148 -188
- package/src/features/session_trace/constants.js +0 -4
- package/src/features/session_trace/instrument/index.js +17 -69
- package/src/features/spa/aggregate/index.js +2 -2
- package/src/features/utils/agent-session.js +1 -2
- package/src/features/utils/aggregate-base.js +51 -0
- package/src/features/utils/feature-base.js +1 -31
- package/src/features/utils/handler-cache.js +3 -4
- package/src/features/utils/instrument-base.js +40 -8
- package/src/features/utils/{lazy-loader.js → lazy-feature-loader.js} +3 -1
- package/src/loaders/agent.js +1 -1
- package/src/loaders/api/apiAsync.js +1 -1
- package/src/loaders/configure/configure.js +4 -3
- package/src/loaders/features/featureDependencies.js +0 -12
- package/src/loaders/features/features.js +3 -1
- package/src/loaders/micro-agent.js +4 -4
- package/dist/cjs/common/metrics/framework-detection.js +0 -72
- package/dist/cjs/common/util/user-agent.js +0 -57
- package/dist/cjs/common/window/supports-performance-observer.js +0 -15
- package/dist/esm/common/metrics/framework-detection.js +0 -66
- package/dist/esm/common/util/user-agent.js +0 -48
- package/dist/esm/common/window/supports-performance-observer.js +0 -9
- package/dist/types/common/metrics/framework-detection.d.ts.map +0 -1
- package/dist/types/common/util/user-agent.d.ts +0 -5
- package/dist/types/common/util/user-agent.d.ts.map +0 -1
- package/dist/types/common/window/supports-performance-observer.d.ts +0 -2
- package/dist/types/common/window/supports-performance-observer.d.ts.map +0 -1
- package/dist/types/features/utils/lazy-loader.d.ts.map +0 -1
- package/src/common/metrics/framework-detection.js +0 -71
- package/src/common/util/user-agent.js +0 -56
- package/src/common/window/supports-performance-observer.js +0 -10
- /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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction-timer.d.ts","sourceRoot":"","sources":["../../../../src/common/timer/interaction-timer.js"],"names":[],"mappings":"AAKA;IAGI,
|
|
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
|
-
|
|
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":"
|
|
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":"
|
|
1
|
+
{"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../src/common/util/feature-flags.js"],"names":[],"mappings":"AAkBA,yEAiBC;AAED,mCAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-scope.d.ts","sourceRoot":"","sources":["../../../../src/common/util/global-scope.js"],"names":[],"mappings":"
|
|
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 {
|
|
5
|
-
* @param {string}
|
|
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
|
|
9
|
-
|
|
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 {
|
|
13
|
-
* @param {string}
|
|
14
|
-
* @param {
|
|
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
|
|
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 {
|
|
24
|
-
* @
|
|
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
|
|
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 {
|
|
30
|
-
* @param {string}
|
|
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
|
|
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
|
|
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":"
|
|
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":"
|
|
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
|
|
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 {
|
|
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;
|
|
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
|
-
|
|
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":"
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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":"
|
|
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
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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":"
|
|
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":"
|
|
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
|
|
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 {
|
|
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":"
|
|
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
|
|
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:
|
|
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 {
|
|
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,
|
|
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
|
|
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 {
|
|
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;
|
|
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
|
|
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 {
|
|
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;
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/session_replay/constants.js"],"names":[],"mappings":"AAEA,kCAAuD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/session_replay/index.js"],"names":[],"mappings":""}
|
|
@@ -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"}
|