@newrelic/browser-agent 1.281.0 → 1.283.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +17 -0
  3. package/dist/cjs/common/config/info.js +21 -0
  4. package/dist/cjs/common/config/init.js +88 -20
  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/session/session-entity.js +2 -0
  8. package/dist/cjs/common/wrap/wrap-function.js +1 -0
  9. package/dist/cjs/common/wrap/wrap-websocket.js +23 -39
  10. package/dist/cjs/features/logging/aggregate/index.js +52 -3
  11. package/dist/cjs/features/logging/constants.js +9 -1
  12. package/dist/cjs/features/logging/instrument/index.js +20 -0
  13. package/dist/cjs/features/metrics/aggregate/index.js +7 -9
  14. package/dist/cjs/features/metrics/constants.js +3 -5
  15. package/dist/cjs/features/metrics/instrument/index.js +8 -11
  16. package/dist/cjs/features/session_replay/aggregate/index.js +7 -3
  17. package/dist/cjs/features/utils/aggregate-base.js +3 -0
  18. package/dist/cjs/loaders/agent.js +12 -1
  19. package/dist/cjs/loaders/browser-agent.js +5 -2
  20. package/dist/cjs/loaders/micro-agent.js +1 -1
  21. package/dist/esm/common/config/info.js +22 -0
  22. package/dist/esm/common/config/init.js +86 -17
  23. package/dist/esm/common/constants/env.cdn.js +1 -1
  24. package/dist/esm/common/constants/env.npm.js +1 -1
  25. package/dist/esm/common/session/session-entity.js +2 -0
  26. package/dist/esm/common/wrap/wrap-function.js +1 -1
  27. package/dist/esm/common/wrap/wrap-websocket.js +23 -39
  28. package/dist/esm/features/logging/aggregate/index.js +53 -4
  29. package/dist/esm/features/logging/constants.js +8 -0
  30. package/dist/esm/features/logging/instrument/index.js +20 -0
  31. package/dist/esm/features/metrics/aggregate/index.js +8 -10
  32. package/dist/esm/features/metrics/constants.js +2 -3
  33. package/dist/esm/features/metrics/instrument/index.js +9 -11
  34. package/dist/esm/features/session_replay/aggregate/index.js +7 -3
  35. package/dist/esm/features/utils/aggregate-base.js +3 -0
  36. package/dist/esm/loaders/agent.js +12 -1
  37. package/dist/esm/loaders/browser-agent.js +5 -2
  38. package/dist/esm/loaders/micro-agent.js +1 -1
  39. package/dist/tsconfig.tsbuildinfo +1 -0
  40. package/dist/types/common/aggregate/event-aggregator.d.ts +1 -3
  41. package/dist/types/common/aggregate/event-aggregator.d.ts.map +1 -1
  42. package/dist/types/common/config/info.d.ts +31 -0
  43. package/dist/types/common/config/info.d.ts.map +1 -1
  44. package/dist/types/common/config/init.d.ts +262 -0
  45. package/dist/types/common/config/init.d.ts.map +1 -1
  46. package/dist/types/common/constants/agent-constants.d.ts.map +1 -1
  47. package/dist/types/common/constants/env.cdn.d.ts.map +1 -1
  48. package/dist/types/common/constants/env.d.ts.map +1 -1
  49. package/dist/types/common/constants/env.npm.d.ts.map +1 -1
  50. package/dist/types/common/session/constants.d.ts.map +1 -1
  51. package/dist/types/common/session/session-entity.d.ts.map +1 -1
  52. package/dist/types/common/url/clean-url.d.ts +1 -1
  53. package/dist/types/common/url/clean-url.d.ts.map +1 -1
  54. package/dist/types/common/util/traverse.d.ts +1 -1
  55. package/dist/types/common/util/traverse.d.ts.map +1 -1
  56. package/dist/types/common/window/page-visibility.d.ts +1 -1
  57. package/dist/types/common/window/page-visibility.d.ts.map +1 -1
  58. package/dist/types/common/wrap/wrap-function.d.ts +11 -1
  59. package/dist/types/common/wrap/wrap-function.d.ts.map +1 -1
  60. package/dist/types/common/wrap/wrap-websocket.d.ts.map +1 -1
  61. package/dist/types/features/generic_events/constants.d.ts.map +1 -1
  62. package/dist/types/features/logging/aggregate/index.d.ts +7 -0
  63. package/dist/types/features/logging/aggregate/index.d.ts.map +1 -1
  64. package/dist/types/features/logging/constants.d.ts +13 -0
  65. package/dist/types/features/logging/constants.d.ts.map +1 -1
  66. package/dist/types/features/logging/instrument/index.d.ts.map +1 -1
  67. package/dist/types/features/metrics/constants.d.ts +1 -0
  68. package/dist/types/features/metrics/constants.d.ts.map +1 -1
  69. package/dist/types/features/session_replay/aggregate/index.d.ts +3 -2
  70. package/dist/types/features/session_replay/aggregate/index.d.ts.map +1 -1
  71. package/dist/types/features/session_replay/constants.d.ts.map +1 -1
  72. package/dist/types/features/session_trace/constants.d.ts.map +1 -1
  73. package/dist/types/features/soft_navigations/constants.d.ts.map +1 -1
  74. package/dist/types/features/spa/constants.d.ts.map +1 -1
  75. package/dist/types/features/utils/aggregate-base.d.ts +1 -0
  76. package/dist/types/features/utils/aggregate-base.d.ts.map +1 -1
  77. package/dist/types/features/utils/feature-base.d.ts.map +1 -1
  78. package/dist/types/features/utils/instrument-base.d.ts +2 -2
  79. package/dist/types/features/utils/instrument-base.d.ts.map +1 -1
  80. package/dist/types/loaders/agent-base.d.ts +2 -2
  81. package/dist/types/loaders/agent-base.d.ts.map +1 -1
  82. package/dist/types/loaders/agent.d.ts +43 -3
  83. package/dist/types/loaders/agent.d.ts.map +1 -1
  84. package/dist/types/loaders/api/api.d.ts +0 -10
  85. package/dist/types/loaders/api/api.d.ts.map +1 -1
  86. package/dist/types/loaders/browser-agent.d.ts +0 -1
  87. package/dist/types/loaders/browser-agent.d.ts.map +1 -1
  88. package/dist/types/loaders/features/features.d.ts.map +1 -1
  89. package/dist/types/loaders/micro-agent-base.d.ts +6 -6
  90. package/dist/types/loaders/micro-agent-base.d.ts.map +1 -1
  91. package/dist/types/loaders/micro-agent.d.ts +3 -3
  92. package/dist/types/loaders/micro-agent.d.ts.map +1 -1
  93. package/package.json +1 -1
  94. package/src/common/config/info.js +22 -3
  95. package/src/common/config/init.js +95 -17
  96. package/src/common/session/session-entity.js +2 -0
  97. package/src/common/wrap/wrap-function.js +1 -1
  98. package/src/common/wrap/wrap-websocket.js +24 -40
  99. package/src/features/logging/aggregate/index.js +57 -4
  100. package/src/features/logging/constants.js +9 -0
  101. package/src/features/logging/instrument/index.js +8 -0
  102. package/src/features/metrics/aggregate/index.js +8 -8
  103. package/src/features/metrics/constants.js +2 -2
  104. package/src/features/metrics/instrument/index.js +9 -9
  105. package/src/features/session_replay/aggregate/index.js +8 -3
  106. package/src/features/utils/aggregate-base.js +4 -0
  107. package/src/loaders/agent.js +12 -1
  108. package/src/loaders/browser-agent.js +5 -3
  109. package/src/loaders/micro-agent.js +1 -1
@@ -3,22 +3,20 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
- // import { handle } from '../../../common/event-emitter/handle'
7
- // import { WEBSOCKET_TAG, wrapWebSocket } from '../../../common/wrap/wrap-websocket'
6
+ import { handle } from '../../../common/event-emitter/handle';
7
+ import { WEBSOCKET_TAG, wrapWebSocket } from '../../../common/wrap/wrap-websocket';
8
8
  import { InstrumentBase } from '../../utils/instrument-base';
9
- import { FEATURE_NAME /*, WATCHABLE_WEB_SOCKET_EVENTS */ } from '../constants';
9
+ import { FEATURE_NAME, WATCHABLE_WEB_SOCKET_EVENTS } from '../constants';
10
10
  export class Instrument extends InstrumentBase {
11
11
  static featureName = FEATURE_NAME;
12
12
  constructor(agentRef, auto = true) {
13
13
  super(agentRef, FEATURE_NAME, auto);
14
- // wrapWebSocket(this.ee)
15
-
16
- // WATCHABLE_WEB_SOCKET_EVENTS.forEach((suffix) => {
17
- // this.ee.on(WEBSOCKET_TAG + suffix, (...args) => {
18
- // handle('buffered-' + WEBSOCKET_TAG + suffix, [...args], undefined, this.featureName, this.ee)
19
- // })
20
- // })
21
-
14
+ wrapWebSocket(this.ee);
15
+ WATCHABLE_WEB_SOCKET_EVENTS.forEach(suffix => {
16
+ this.ee.on(WEBSOCKET_TAG + suffix, (...args) => {
17
+ handle('buffered-' + WEBSOCKET_TAG + suffix, [...args], undefined, this.featureName, this.ee);
18
+ });
19
+ });
22
20
  this.importAggregator(agentRef);
23
21
  }
24
22
  }
@@ -24,6 +24,7 @@ import { now } from '../../../common/timing/now';
24
24
  import { buildNRMetaNode } from '../shared/utils';
25
25
  import { MAX_PAYLOAD_SIZE } from '../../../common/constants/agent-constants';
26
26
  import { cleanURL } from '../../../common/url/clean-url';
27
+ import { canEnableSessionTracking } from '../../utils/feature-gates';
27
28
  export class Aggregate extends AggregateBase {
28
29
  static featureName = FEATURE_NAME;
29
30
  mode = MODE.OFF;
@@ -47,6 +48,7 @@ export class Aggregate extends AggregateBase {
47
48
  this.recorder = args?.recorder;
48
49
  this.errorNoticed = args?.errorNoticed || false;
49
50
  this.harvestOpts.raw = true;
51
+ this.isSessionTrackingEnabled = canEnableSessionTracking(this.agentIdentifier) && this.agentRef.runtime.session;
50
52
  handle(SUPPORTABILITY_METRIC_CHANNEL, ['Config/SessionReplay/Enabled'], undefined, FEATURE_NAMES.metrics, this.ee);
51
53
 
52
54
  // The SessionEntity class can emit a message indicating the session was cleared and reset (expiry, inactivity). This feature must abort and never resume if that occurs.
@@ -69,7 +71,7 @@ export class Aggregate extends AggregateBase {
69
71
  this.ee.on(SESSION_EVENTS.UPDATE, (type, data) => {
70
72
  if (!this.recorder || !this.initialized || this.blocked || type !== SESSION_EVENT_TYPES.CROSS_TAB) return;
71
73
  if (this.mode !== MODE.OFF && data.sessionReplayMode === MODE.OFF) this.abort(ABORT_REASONS.CROSS_TAB);
72
- this.mode = data.sessionReplay;
74
+ this.mode = data.sessionReplayMode;
73
75
  });
74
76
  registerHandler(SR_EVENT_EMITTER_TYPES.PAUSE, () => {
75
77
  this.forceStop(this.mode === MODE.FULL);
@@ -143,7 +145,7 @@ export class Aggregate extends AggregateBase {
143
145
 
144
146
  /**
145
147
  * Evaluate entitlements and sampling before starting feature mechanics, importing and configuring recording library, and setting storage state
146
- * @param {boolean} entitlements - the true/false state of the "sr" flag from RUM response
148
+ * @param {boolean} srMode - the true/false state of the "sr" flag (aka. entitlements) from RUM response
147
149
  * @param {boolean} ignoreSession - whether to force the method to ignore the session state and use just the sample flags
148
150
  * @returns {void}
149
151
  */
@@ -391,6 +393,8 @@ export class Aggregate extends AggregateBase {
391
393
  while (this.recorder?.getEvents().events.length) this.recorder?.clearBuffer?.();
392
394
  }
393
395
  syncWithSessionManager(state = {}) {
394
- this.agentRef.runtime.session.write(state);
396
+ if (this.isSessionTrackingEnabled) {
397
+ this.agentRef.runtime.session.write(state);
398
+ }
395
399
  }
396
400
  }
@@ -71,6 +71,9 @@ export class AggregateBase extends FeatureBase {
71
71
  drain(this.agentIdentifier, this.featureName);
72
72
  this.drained = true;
73
73
  }
74
+ preHarvestChecks(opts) {
75
+ return !this.blocked;
76
+ }
74
77
 
75
78
  /**
76
79
  * Return harvest payload. A "serializer" function can be defined on a derived class to format the payload.
@@ -19,13 +19,24 @@ import { gosNREUM, setNREUMInitializedAgent } from '../common/window/nreum';
19
19
  import { warn } from '../common/util/console';
20
20
  import { globalScope } from '../common/constants/runtime';
21
21
 
22
+ /**
23
+ * @typedef {Object} AgentOptions
24
+ * @property {import('../common/config/info').Info} info - An object containing operational info needed by the agent. It's strongly encouraged to define this.
25
+ * @property {import('../common/config/init').Init} [init] - An object containing initialization configurations for the agent.
26
+ * @property {Object} [loader_config] - An object containing configuration primarily passed by APM injection. This is not recommended for use if not already provided by installation.
27
+ * @property {Object} [runtime] - An object containing runtime references by the agent. This is not recommended for use.
28
+ * @property {Array<Object>} [features] - A list of feature modules to include in the agent. This is only necessary when using the `Agent` class strictly.
29
+ * @property {boolean} [exposed] - Whether the agent should expose its API to (be affected by) the global `newrelic` object.
30
+ * @property {string} [loaderType] - The type of loader that is initializing the agent. It's recommended to allow the default.
31
+ */
32
+
22
33
  /**
23
34
  * A flexible class that may be used to compose an agent from a select subset of feature modules. In applications
24
35
  * sensitive to network load, this may result in smaller builds with slightly lower performance impact.
25
36
  */
26
37
  export class Agent extends AgentBase {
27
38
  /**
28
- * @param {Object} options Options to initialize agent with
39
+ * @param {AgentOptions} options
29
40
  */
30
41
  constructor(options) {
31
42
  super();
@@ -20,9 +20,12 @@ import { Instrument as InstrumentSoftNav } from '../features/soft_navigations/in
20
20
  * The BrowserAgent class is the most convenient and reliable option for most use cases.
21
21
  */
22
22
  export class BrowserAgent extends Agent {
23
- constructor(args) {
23
+ /**
24
+ * @param {import('./agent').AgentOptions} options
25
+ */
26
+ constructor(options) {
24
27
  super({
25
- ...args,
28
+ ...options,
26
29
  features: [InstrumentXhr, InstrumentPageViewEvent, InstrumentPageViewTiming, InstrumentSessionTrace, InstrumentMetrics, InstrumentErrors, InstrumentSpa, InstrumentSoftNav, InstrumentSessionReplay, InstrumentGenericEvents, InstrumentLogs],
27
30
  loaderType: 'browser-agent'
28
31
  });
@@ -21,7 +21,7 @@ const nonAutoFeatures = [FEATURE_NAMES.jserrors, FEATURE_NAMES.genericEvents, FE
21
21
  */
22
22
  export class MicroAgent extends MicroAgentBase {
23
23
  /**
24
- * @param {Object} options - Specifies features and runtime configuration,
24
+ * @param {import('./agent').AgentOptions} options
25
25
  */
26
26
  constructor(options) {
27
27
  super();
@@ -0,0 +1 @@
1
+ {"root":["../src/index.js","../src/cdn/experimental.js","../src/cdn/lite.js","../src/cdn/pro.js","../src/cdn/spa.js","../src/common/aggregate/aggregator.js","../src/common/aggregate/event-aggregator.js","../src/common/config/configurable.js","../src/common/config/info.js","../src/common/config/init.js","../src/common/config/loader-config.js","../src/common/config/runtime.js","../src/common/constants/agent-constants.js","../src/common/constants/env.cdn.js","../src/common/constants/env.js","../src/common/constants/env.npm.js","../src/common/constants/runtime.js","../src/common/constants/shared-channel.js","../src/common/context/shared-context.js","../src/common/deny-list/deny-list.js","../src/common/dispatch/global-event.js","../src/common/dom/iframe.js","../src/common/dom/query-selector.js","../src/common/dom/selector-path.js","../src/common/drain/drain.js","../src/common/event-emitter/contextual-ee.js","../src/common/event-emitter/event-context.js","../src/common/event-emitter/handle.js","../src/common/event-emitter/register-handler.js","../src/common/event-listener/event-listener-opts.js","../src/common/harvest/harvester.js","../src/common/harvest/types.js","../src/common/ids/bundle-id.js","../src/common/ids/id.js","../src/common/ids/unique-id.js","../src/common/serialize/bel-serializer.js","../src/common/session/constants.js","../src/common/session/session-entity.js","../src/common/storage/local-storage.js","../src/common/timer/interaction-timer.js","../src/common/timer/timer.js","../src/common/timing/nav-timing.js","../src/common/timing/now.js","../src/common/timing/time-keeper.js","../src/common/unload/eol.js","../src/common/url/canonicalize-url.js","../src/common/url/clean-url.js","../src/common/url/encode.js","../src/common/url/location.js","../src/common/url/parse-url.js","../src/common/url/protocol.js","../src/common/util/console.js","../src/common/util/data-size.js","../src/common/util/feature-flags.js","../src/common/util/get-or-set.js","../src/common/util/invoke.js","../src/common/util/obfuscate.js","../src/common/util/stringify.js","../src/common/util/submit-data.js","../src/common/util/text.js","../src/common/util/traverse.js","../src/common/util/type-check.js","../src/common/vitals/constants.js","../src/common/vitals/cumulative-layout-shift.js","../src/common/vitals/first-contentful-paint.js","../src/common/vitals/first-input-delay.js","../src/common/vitals/first-paint.js","../src/common/vitals/interaction-to-next-paint.js","../src/common/vitals/largest-contentful-paint.js","../src/common/vitals/time-to-first-byte.js","../src/common/vitals/vital-metric.js","../src/common/window/load.js","../src/common/window/nreum.js","../src/common/window/page-visibility.js","../src/common/wrap/wrap-events.js","../src/common/wrap/wrap-fetch.js","../src/common/wrap/wrap-function.js","../src/common/wrap/wrap-history.js","../src/common/wrap/wrap-jsonp.js","../src/common/wrap/wrap-logger.js","../src/common/wrap/wrap-mutation.js","../src/common/wrap/wrap-promise.js","../src/common/wrap/wrap-timer.js","../src/common/wrap/wrap-websocket.js","../src/common/wrap/wrap-xhr.js","../src/features/ajax/constants.js","../src/features/ajax/index.js","../src/features/ajax/aggregate/gql.js","../src/features/ajax/aggregate/index.js","../src/features/ajax/instrument/distributed-tracing.js","../src/features/ajax/instrument/index.js","../src/features/ajax/instrument/response-size.js","../src/features/generic_events/constants.js","../src/features/generic_events/index.js","../src/features/generic_events/aggregate/index.js","../src/features/generic_events/aggregate/user-actions/aggregated-user-action.js","../src/features/generic_events/aggregate/user-actions/user-actions-aggregator.js","../src/features/generic_events/instrument/index.js","../src/features/jserrors/constants.js","../src/features/jserrors/index.js","../src/features/jserrors/aggregate/canonical-function-name.js","../src/features/jserrors/aggregate/compute-stack-trace.js","../src/features/jserrors/aggregate/format-stack-trace.js","../src/features/jserrors/aggregate/index.js","../src/features/jserrors/aggregate/internal-errors.js","../src/features/jserrors/aggregate/string-hash-code.js","../src/features/jserrors/instrument/index.js","../src/features/jserrors/shared/cast-error.js","../src/features/jserrors/shared/uncaught-error.js","../src/features/logging/constants.js","../src/features/logging/index.js","../src/features/logging/aggregate/index.js","../src/features/logging/instrument/index.js","../src/features/logging/shared/log.js","../src/features/logging/shared/utils.js","../src/features/metrics/constants.js","../src/features/metrics/index.js","../src/features/metrics/aggregate/framework-detection.js","../src/features/metrics/aggregate/index.js","../src/features/metrics/aggregate/websocket-detection.js","../src/features/metrics/instrument/index.js","../src/features/page_action/constants.js","../src/features/page_action/index.js","../src/features/page_action/instrument/index.js","../src/features/page_view_event/constants.js","../src/features/page_view_event/index.js","../src/features/page_view_event/aggregate/index.js","../src/features/page_view_event/aggregate/initialized-features.js","../src/features/page_view_event/instrument/index.js","../src/features/page_view_timing/constants.js","../src/features/page_view_timing/index.js","../src/features/page_view_timing/aggregate/index.js","../src/features/page_view_timing/instrument/index.js","../src/features/session_replay/constants.js","../src/features/session_replay/index.js","../src/features/session_replay/aggregate/index.js","../src/features/session_replay/instrument/index.js","../src/features/session_replay/shared/recorder-events.js","../src/features/session_replay/shared/recorder.js","../src/features/session_replay/shared/stylesheet-evaluator.js","../src/features/session_replay/shared/utils.js","../src/features/session_trace/constants.js","../src/features/session_trace/index.js","../src/features/session_trace/aggregate/index.js","../src/features/session_trace/aggregate/trace/node.js","../src/features/session_trace/aggregate/trace/storage.js","../src/features/session_trace/instrument/index.js","../src/features/soft_navigations/constants.js","../src/features/soft_navigations/index.js","../src/features/soft_navigations/aggregate/ajax-node.js","../src/features/soft_navigations/aggregate/bel-node.js","../src/features/soft_navigations/aggregate/index.js","../src/features/soft_navigations/aggregate/initial-page-load-interaction.js","../src/features/soft_navigations/aggregate/interaction.js","../src/features/soft_navigations/instrument/index.js","../src/features/spa/constants.js","../src/features/spa/index.js","../src/features/spa/aggregate/index.js","../src/features/spa/aggregate/interaction-node.js","../src/features/spa/aggregate/interaction.js","../src/features/spa/aggregate/serializer.js","../src/features/spa/instrument/index.js","../src/features/utils/agent-session.js","../src/features/utils/aggregate-base.js","../src/features/utils/event-buffer.js","../src/features/utils/event-store-manager.js","../src/features/utils/feature-base.js","../src/features/utils/feature-gates.js","../src/features/utils/instrument-base.js","../src/features/utils/lazy-feature-loader.js","../src/features/utils/nr1-debugger.js","../src/loaders/agent-base.js","../src/loaders/agent.js","../src/loaders/browser-agent.js","../src/loaders/micro-agent-base.js","../src/loaders/micro-agent.js","../src/loaders/api/api-methods.js","../src/loaders/api/api.js","../src/loaders/api/apiAsync.js","../src/loaders/api/interaction-types.js","../src/loaders/configure/configure.js","../src/loaders/configure/nonce.js","../src/loaders/configure/public-path.js","../src/loaders/features/enabled-features.js","../src/loaders/features/featureDependencies.js","../src/loaders/features/features.js"],"version":"5.7.3"}
@@ -12,9 +12,7 @@ export class EventAggregator {
12
12
  aggregatorTypes: any;
13
13
  }): void;
14
14
  get(opts: any): {} | null;
15
- clear({ aggregatorTypes }?: {
16
- aggregatorTypes: any;
17
- }): void;
15
+ clear({ aggregatorTypes }?: {}): void;
18
16
  reloadSave({ aggregatorTypes }: {
19
17
  aggregatorTypes: any;
20
18
  }): void;
@@ -1 +1 @@
1
- {"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../../src/common/aggregate/event-aggregator.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH;IAIE;;YAGC;IAED,wFAIC;IAED,kEAGC;IAED;;aAgBC;IAED,0BAGC;IAED;;aAMC;IAED;;aAYC;IAED;;aAGC;;CACF"}
1
+ {"version":3,"file":"event-aggregator.d.ts","sourceRoot":"","sources":["../../../../src/common/aggregate/event-aggregator.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH;IAIE;;YAGC;IAED,wFAIC;IAED,kEAGC;IAED;;aAgBC;IAED,0BAGC;IAED,sCAMC;IAED;;aAYC;IAED;;aAGC;;CACF"}
@@ -1,4 +1,35 @@
1
1
  export function isValid(id: any): boolean;
2
2
  export function getInfo(id: any): any;
3
3
  export function setInfo(id: any, obj: any): void;
4
+ export type Info = {
5
+ beacon?: string | undefined;
6
+ /**
7
+ * - Base URL endpoint for all data harvested by the agent. Proxies should be defined in the init instead.
8
+ */
9
+ errorBeacon?: string | undefined;
10
+ /**
11
+ * - New Relic license key provided by the website in user account.
12
+ */
13
+ licenseKey: string;
14
+ /**
15
+ * - New Relic application ID provided when creating a browser entity in the UI.
16
+ */
17
+ applicationID: string;
18
+ sa?: number | undefined;
19
+ queueTime?: number | undefined;
20
+ applicationTime?: number | undefined;
21
+ ttGuid?: string | undefined;
22
+ user?: string | undefined;
23
+ account?: string | undefined;
24
+ product?: string | undefined;
25
+ extra?: string | undefined;
26
+ /**
27
+ * - Custom attributes that are added to majority of agent's payloads. The `setCustomAttribute` API method affects this.
28
+ */
29
+ jsAttributes?: Object | undefined;
30
+ userAttributes?: string | undefined;
31
+ atts?: string | undefined;
32
+ transactionName?: string | undefined;
33
+ tNamePlain?: string | undefined;
34
+ };
4
35
  //# sourceMappingURL=info.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/common/config/info.js"],"names":[],"mappings":"AAiCA,0CAOC;AAED,sCAIC;AAED,iDAKC"}
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/common/config/info.js"],"names":[],"mappings":"AAoDA,0CAOC;AAED,sCAIC;AAED,iDAKC;;;;;;;;;;gBA7Da,MAAM;;;;mBACN,MAAM"}
@@ -1,4 +1,266 @@
1
1
  export function getConfiguration(id: any): any;
2
2
  export function setConfiguration(id: any, obj: any): void;
3
3
  export function getConfigurationValue(id: any, path: any): any;
4
+ export type Init = {
5
+ ajax?: {
6
+ /**
7
+ * - List of domain URLs to be excluded from AjaxRequest collection.
8
+ */
9
+ deny_list?: string[] | undefined;
10
+ /**
11
+ * - If true, agent requests going to harvest endpoint are treated as on deny list. In other words, agent will not self-report AJAX.
12
+ */
13
+ block_internal?: boolean | undefined;
14
+ /**
15
+ * - Turn on/off the ajax feature (on by default).
16
+ */
17
+ enabled?: boolean | undefined;
18
+ /**
19
+ * - If true, the agent will automatically start the ajax feature. Otherwise, it will be in a deferred state until the `start` API method is called.
20
+ */
21
+ autoStart?: boolean | undefined;
22
+ } | undefined;
23
+ distributed_tracing?: {
24
+ /**
25
+ * - If true, distributed tracing headers will be added to outgoing requests. Requires ajax feature to be running.
26
+ */
27
+ enabled?: boolean | undefined;
28
+ exclude_newrelic_header?: boolean | undefined;
29
+ cors_use_newrelic_header?: boolean | undefined;
30
+ cors_use_tracecontext_headers?: boolean | undefined;
31
+ allowed_origins?: string[] | undefined;
32
+ } | undefined;
33
+ /**
34
+ * - An array of feature flags to enable experimental features.
35
+ */
36
+ feature_flags?: string[] | undefined;
37
+ generic_events?: {
38
+ /**
39
+ * - Turn on/off the generic events feature (on by default). This is required for `PageAction`, `UserAction`, and `BrowserPerformance` events.
40
+ */
41
+ enabled?: boolean | undefined;
42
+ /**
43
+ * - If true, the agent will automatically start the generic events feature. Otherwise, it will be in a deferred state until the `start` API method is called.
44
+ */
45
+ autoStart?: boolean | undefined;
46
+ } | undefined;
47
+ harvest?: {
48
+ /**
49
+ * - The interval in seconds at which the agent will send out data. It's not recommended to change this value.
50
+ */
51
+ interval?: number | undefined;
52
+ } | undefined;
53
+ jserrors?: {
54
+ /**
55
+ * - Turn on/off the jserrors feature (on by default).
56
+ */
57
+ enabled?: boolean | undefined;
58
+ /**
59
+ * - If true, the agent will automatically start the jserrors feature. Otherwise, it will be in a deferred state until the `start` API method is called.
60
+ */
61
+ autoStart?: boolean | undefined;
62
+ } | undefined;
63
+ logging?: {
64
+ /**
65
+ * - Turn on/off the logging feature (on by default).
66
+ */
67
+ enabled?: boolean | undefined;
68
+ /**
69
+ * - If true, the agent will automatically start the logging feature. Otherwise, it will be in a deferred state until the `start` API method is called.
70
+ */
71
+ autoStart?: boolean | undefined;
72
+ } | undefined;
73
+ metrics?: {
74
+ /**
75
+ * - Turn on/off the metrics feature (on by default).
76
+ */
77
+ enabled?: boolean | undefined;
78
+ /**
79
+ * - If true, the agent will automatically start the metrics feature. Otherwise, it will be in a deferred state until the `start` API method is called.
80
+ */
81
+ autoStart?: boolean | undefined;
82
+ } | undefined;
83
+ /**
84
+ * - Array of regexp and corresponding replacement patterns for obfuscating data.
85
+ */
86
+ obfuscate?: Object[] | undefined;
87
+ page_action?: {
88
+ /**
89
+ * - Must be true to allow PageAction events to be captured.
90
+ */
91
+ enabled?: boolean | undefined;
92
+ } | undefined;
93
+ page_view_event?: {
94
+ /**
95
+ * - This setting is ignored! PageViewEvent is always enabled by force.
96
+ */
97
+ enabled?: boolean | undefined;
98
+ /**
99
+ * - If true, the agent will automatically send the RUM request. Otherwise, it will be in a deferred state until the `start` API method is called.
100
+ */
101
+ autoStart?: boolean | undefined;
102
+ } | undefined;
103
+ page_view_timing?: {
104
+ /**
105
+ * - Turn on/off the page view timing feature (on by default).
106
+ */
107
+ enabled?: boolean | undefined;
108
+ /**
109
+ * - If true, the agent will automatically start the page view timing feature. Otherwise, it will be in a deferred state until the `start` API method is called.
110
+ */
111
+ autoStart?: boolean | undefined;
112
+ } | undefined;
113
+ performance?: {
114
+ /**
115
+ * - If true, the agent will capture PerformanceMark events.
116
+ */
117
+ capture_marks?: boolean | undefined;
118
+ /**
119
+ * - If true, the agent will capture PerformanceMeasure events.
120
+ */
121
+ capture_measures?: boolean | undefined;
122
+ /**
123
+ * - If true, `BrowserPerformance` events from marks and measures will include, as attribute(s), the `detail` metadata provided to `markOptions` and `measureOptions`.
124
+ */
125
+ capture_detail?: boolean | undefined;
126
+ resources?: {
127
+ /**
128
+ * - If true, the agent will capture PerformanceResourceTiming entries.
129
+ */
130
+ enabled?: boolean | undefined;
131
+ /**
132
+ * - Array of `initiatorType` strings to filter the desired ResourceTiming entries. By default, all resource types are captured.
133
+ */
134
+ asset_types?: string[] | undefined;
135
+ /**
136
+ * - Each resource URL will be checked against this list to determine if it should be labeled "first party" in the resulting `BrowserPerformance` event.
137
+ */
138
+ first_party_domains?: string[] | undefined;
139
+ /**
140
+ * - When true (default), resource entries associated with New Relic domains will be ignored.
141
+ */
142
+ ignore_newrelic?: boolean | undefined;
143
+ } | undefined;
144
+ } | undefined;
145
+ privacy?: {
146
+ /**
147
+ * - If true (default), session tracking of users across page loads is enabled in the agent. This is required for session trace, replay, and session-related features.
148
+ */
149
+ cookies_enabled?: boolean | undefined;
150
+ } | undefined;
151
+ proxy?: {
152
+ /**
153
+ * - Set value will be used to overwrite the webpack asset path used to fetch agent assets.
154
+ */
155
+ assets?: string | undefined;
156
+ /**
157
+ * - Set value will be used to overwrite the endpoint URL to which we send analytics.
158
+ */
159
+ beacon?: string | undefined;
160
+ } | undefined;
161
+ session?: {
162
+ /**
163
+ * - When session tracking is on, this determines how long a session will last before expiring. Modifying this value is not recommended.
164
+ */
165
+ expiresMs?: number | undefined;
166
+ /**
167
+ * - When session tracking is on, this determines how long a session will last without user activity before expiring. Modifying this value is not recommended.
168
+ */
169
+ inactiveMs?: number | undefined;
170
+ } | undefined;
171
+ session_replay?: {
172
+ /**
173
+ * - If true, the agent will automatically start the session replay feature. Otherwise, it will be in a deferred state until the `start` API method is called.
174
+ */
175
+ autoStart?: boolean | undefined;
176
+ /**
177
+ * - Turn on/off the session replay feature (off by default).
178
+ */
179
+ enabled?: boolean | undefined;
180
+ /**
181
+ * - If true, allow the agent to run rrweb recorder immediately instead of waiting until after the window.load event, for new sessions. Existing sessions ignore this setting.
182
+ */
183
+ preload?: boolean | undefined;
184
+ /**
185
+ * - This setting is deprecated and ineffective. Sampling is controlled in New Relic by server-side configuration.
186
+ */
187
+ sampling_rate?: number | undefined;
188
+ /**
189
+ * - This setting is deprecated and ineffective.
190
+ */
191
+ error_sampling_rate?: number | undefined;
192
+ /**
193
+ * - When true, serialize fonts for collection without public asset url. This is currently broken -- https://github.com/rrweb-io/rrweb/issues/1304.
194
+ */
195
+ collect_fonts?: boolean | undefined;
196
+ /**
197
+ * - When true, serialize images for collection without public asset url. Not recommended for use. This is currently for TESTING as it easily generates payloads too large to be harvested.
198
+ */
199
+ inline_images?: boolean | undefined;
200
+ /**
201
+ * - When true, tries to fetch any missing stylesheets again to inline in replayer.
202
+ */
203
+ fix_stylesheets?: boolean | undefined;
204
+ /**
205
+ * - If true, all input content will be masked with asterisks.
206
+ */
207
+ mask_all_inputs?: boolean | undefined;
208
+ /**
209
+ * - Set value should be in CSS selector syntax and is used to identify matching elements to mask.
210
+ */
211
+ mask_text_selector?: string | undefined;
212
+ /**
213
+ * - Set value should be in CSS selector syntax and is used to identify matching elements to block.
214
+ */
215
+ block_selector?: string | undefined;
216
+ /**
217
+ * - If mask_all_inputs is not true, this object will be used to select what input to mask. Passwords are forcibly always masked.
218
+ */
219
+ mask_input_options?: Object | undefined;
220
+ } | undefined;
221
+ session_trace?: {
222
+ /**
223
+ * - Turn on/off the session trace feature (on by default).
224
+ */
225
+ enabled?: boolean | undefined;
226
+ /**
227
+ * - If true, the agent will automatically start the session trace feature. Otherwise, it will be in a deferred state until the `start` API method is called.
228
+ */
229
+ autoStart?: boolean | undefined;
230
+ } | undefined;
231
+ soft_navigations?: {
232
+ /**
233
+ * - Turn on/off the soft navigations feature (on by default).
234
+ */
235
+ enabled?: boolean | undefined;
236
+ /**
237
+ * - If true, the agent will automatically start the soft navigations feature. Otherwise, it will be in a deferred state until the `start` API method is called.
238
+ */
239
+ autoStart?: boolean | undefined;
240
+ } | undefined;
241
+ spa?: {
242
+ /**
243
+ * - Turn on/off the single page application feature (on by default). NOTE: the SPA feature is deprecated and under removal procedure.
244
+ */
245
+ enabled?: boolean | undefined;
246
+ /**
247
+ * - If true, the agent will automatically start the single page application feature. Otherwise, it will be in a deferred state until the `start` API method is called.
248
+ */
249
+ autoStart?: boolean | undefined;
250
+ } | undefined;
251
+ /**
252
+ * - If explicitly false, the agent will use HTTP instead of HTTPS. This setting should NOT be used.
253
+ */
254
+ ssl?: boolean | undefined;
255
+ user_actions?: {
256
+ /**
257
+ * - Must be true to allow UserAction events to be captured.
258
+ */
259
+ enabled?: boolean | undefined;
260
+ /**
261
+ * - List of HTML Element properties to be captured with UserAction events' target elements. This may help to identify the source element being interacted with in the UI.
262
+ */
263
+ elementAttributes?: string[] | undefined;
264
+ } | undefined;
265
+ };
4
266
  //# sourceMappingURL=init.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/common/config/init.js"],"names":[],"mappings":"AA4IA,+CAIC;AAED,0DAKC;AAED,+DAYC"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/common/config/init.js"],"names":[],"mappings":"AA0NA,+CAIC;AAED,0DAKC;AAED,+DAYC"}
@@ -1 +1 @@
1
- {"version":3,"file":"agent-constants.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/agent-constants.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,uCAAuC;AACvC,uCAAuC"}
1
+ {"version":3,"file":"agent-constants.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/agent-constants.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,iCAAkC,KAAK,CAAA;AACvC,+BAAgC,OAAO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"env.cdn.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/env.cdn.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AAEH;;GAEG;AACH,yCAAgD;AAEhD;;;GAGG;AACH,2CAA8C;AAE9C;;GAEG;AACH,gCAAgC;AAEhC;;GAEG;AACH,+CAAsD"}
1
+ {"version":3,"file":"env.cdn.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/env.cdn.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AAEH;;GAEG;AACH,yCAAgD;AAEhD;;;GAGG;AACH,2CAA8C;AAE9C;;GAEG;AACH,0BAA2B,KAAK,CAAA;AAEhC;;GAEG;AACH,+CAAsD"}
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/env.js"],"names":[],"mappings":"AAcA;;GAEG;AACH,0BAAsC;AAEtC;;GAEG;AACH,8BAA8B;AAE9B;;GAEG;AACH,gCAAgC;AAEhC;;GAEG;AACH,gCAAuD"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/env.js"],"names":[],"mappings":"AAcA;;GAEG;AACH,0BAAsC;AAEtC;;GAEG;AACH,wBAAyB,KAAK,CAAA;AAE9B;;GAEG;AACH,0BAA2B,KAAK,CAAA;AAEhC;;GAEG;AACH,gCAAuD"}
@@ -1 +1 @@
1
- {"version":3,"file":"env.npm.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/env.npm.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AAEH;;GAEG;AACH,yCAAgD;AAEhD;;;GAGG;AACH,8BAA8B;AAE9B;;;GAGG;AACH,gCAAgC;AAEhC;;GAEG;AACH,+CAAsD"}
1
+ {"version":3,"file":"env.npm.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/env.npm.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AAEH;;GAEG;AACH,yCAAgD;AAEhD;;;GAGG;AACH,wBAAyB,KAAK,CAAA;AAE9B;;;GAGG;AACH,0BAA2B,KAAK,CAAA;AAEhC;;GAEG;AACH,+CAAsD"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/common/session/constants.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,4BAA4B;AAC5B,oCAAoC;AACpC,0CAA0C;AAC1C,0CAA0C"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/common/session/constants.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAsB,MAAM,CAAA;AAC5B,0BAA2B,SAAS,CAAA;AACpC,iCAAkC,QAAQ,CAAA;AAC1C,kCAAmC,OAAO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"session-entity.d.ts","sourceRoot":"","sources":["../../../../src/common/session/session-entity.js"],"names":[],"mappings":"AAkCA;IACE;;;;;OAKG;IACH,uBA+BC;IAzBC,qBAAsC;IACtC,aAAsB;IACtB,UAAe;IAGf,SAAc;IAEd,QAAiC;IAoBnC;;;;aA4EC;IAnEC,8BAA0B;IAC1B,+BAA4B;IAc1B,gCAOqC;IAUrC,4CAkBsC;IAexC,iCAAuB;IAKzB,wBAEC;IAED,sBAEC;IAED;;;OAGG;IACH,QAFa,MAAM,CA6BlB;IAED;;;;;;OAMG;IACH,YAHW,MAAM,GACJ,MAAM,CAkBlB;IAED,gBAuBC;IAED;;OAEG;IACH,gBAIC;IAED;;;OAGG;IACH,qBAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;OAGG;IACH,gBAHW,MAAM,GACJ,OAAO,CAKnB;IAED,yDAUC;IAED,6DAIC;IAED;;;OAGG;IACH,6BAHW,MAAM,GACJ,MAAM,CAIlB;IAED,gDAaC;IAHG,YAAuD;CAI5D;sBA9SqB,gBAAgB;iCAGL,4BAA4B"}
1
+ {"version":3,"file":"session-entity.d.ts","sourceRoot":"","sources":["../../../../src/common/session/session-entity.js"],"names":[],"mappings":"AAoCA;IACE;;;;;OAKG;IACH,uBA+BC;IAzBC,qBAAsC;IACtC,aAAsB;IACtB,UAAe;IAGf,SAAc;IAEd,QAAiC;IAoBnC;;;;aA4EC;IAnEC,8BAA0B;IAC1B,+BAA4B;IAc1B,gCAOqC;IAUrC,4CAkBsC;IAexC,iCAAuB;IAKzB,wBAEC;IAED,sBAEC;IAED;;;OAGG;IACH,QAFa,MAAM,CA6BlB;IAED;;;;;;OAMG;IACH,YAHW,MAAM,GACJ,MAAM,CAkBlB;IAED,gBAuBC;IAED;;OAEG;IACH,gBAIC;IAED;;;OAGG;IACH,qBAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;OAGG;IACH,gBAHW,MAAM,GACJ,OAAO,CAKnB;IAED,yDAUC;IAED,6DAIC;IAED;;;OAGG;IACH,6BAHW,MAAM,GACJ,MAAM,CAIlB;IAED,gDAaC;IAHG,YAAuD;CAI5D;sBAhTqB,gBAAgB;iCAGL,4BAA4B"}
@@ -4,5 +4,5 @@
4
4
  * @param {boolean} [keepHash=false] - Whether to preserve the hash portion of the URL.
5
5
  * @returns {string} The cleaned URL.
6
6
  */
7
- export function cleanURL(url: string, keepHash?: boolean | undefined): string;
7
+ export function cleanURL(url: string, keepHash?: boolean): string;
8
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":"AAQA;;;;;GAKG;AACH,8BAJW,MAAM,mCAEJ,MAAM,CAIlB"}
1
+ {"version":3,"file":"clean-url.d.ts","sourceRoot":"","sources":["../../../../src/common/url/clean-url.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,8BAJW,MAAM,aACN,OAAO,GACL,MAAM,CAIlB"}
@@ -11,5 +11,5 @@
11
11
  * @param {Array<string>} [ignoreKeys=[]] - The keys of properties to ignore and not modify.
12
12
  * @returns {Object} - The object with function recursively applied.
13
13
  */
14
- export function applyFnToProps(obj: Object, fn: Function, type?: string | undefined, ignoreKeys?: string[] | undefined): Object;
14
+ export function applyFnToProps(obj: Object, fn: Function, type?: string, ignoreKeys?: Array<string>): Object;
15
15
  //# sourceMappingURL=traverse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"traverse.d.ts","sourceRoot":"","sources":["../../../../src/common/util/traverse.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,oCANW,MAAM,+EAIJ,MAAM,CAelB"}
1
+ {"version":3,"file":"traverse.d.ts","sourceRoot":"","sources":["../../../../src/common/util/traverse.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,oCANW,MAAM,uBAEN,MAAM,eACN,KAAK,CAAC,MAAM,CAAC,GACX,MAAM,CAelB"}
@@ -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, capture: any, abortSignal: any): void;
6
+ export function subscribeToVisibilityChange(cb: Function, toHiddenOnly?: boolean, 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,oIAUC"}
1
+ {"version":3,"file":"page-visibility.d.ts","sourceRoot":"","sources":["../../../../src/common/window/page-visibility.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,yEAHW,OAAO,wCAajB"}
@@ -4,7 +4,17 @@
4
4
  * @param {boolean} always - If `true`, emit events even if already emitting an event.
5
5
  * @returns {function} The wrapped function.
6
6
  */
7
- export function createWrapperWithEmitter(emitter?: Object | undefined, always: boolean): Function;
7
+ export function createWrapperWithEmitter(emitter?: Object, always: boolean): Function;
8
+ /**
9
+ * Copies properties from one object to another. Used for creating a wrapper function from an original function and for
10
+ * copying an original function to a property of a wrapper function named by `flag` in the executing context.
11
+ * @param {Object} from - The source function or object.
12
+ * @param {Object} to - The destination function or object.
13
+ * @param {Object} [emitter] - The (optional) desired event emitter if errors are encountered while copying.
14
+ * Defaults to the global event emitter.
15
+ * @returns {object} - The destination founction or object with copied properties.
16
+ */
17
+ export function copy(from: Object, to: Object, emitter?: Object): object;
8
18
  export const flag: string;
9
19
  export default createWrapperWithEmitter;
10
20
  //# sourceMappingURL=wrap-function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrap-function.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-function.js"],"names":[],"mappings":"AA6BA;;;;;GAKG;AACH,+EAHW,OAAO,YAgIjB;AApJD,0BAA6C"}
1
+ {"version":3,"file":"wrap-function.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-function.js"],"names":[],"mappings":"AA6BA;;;;;GAKG;AACH,mDAJW,MAAM,UACN,OAAO,YAgIjB;AAgBD;;;;;;;;GAQG;AACH,2BANW,MAAM,MACN,MAAM,YACN,MAAM,GAEJ,MAAM,CA2BlB;AAtMD,0BAA6C"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrap-websocket.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-websocket.js"],"names":[],"mappings":"AAeA,kDA6DC;AAlED,yCAAyC;AACzC,wDAAwD"}
1
+ {"version":3,"file":"wrap-websocket.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-websocket.js"],"names":[],"mappings":"AAeA,kDA6CC;AAlDD,4BAA6B,YAAY,CAAA;AACzC,qCAAsC,kBAAkB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/generic_events/constants.js"],"names":[],"mappings":"AAMA,kCAAuD;AACvD,uCAAuC;AACvC,uCAAuC;AAEvC,uCAA6F;AAC7F,8CAAuD;AAEvD,4CAA4C;AAC5C,2CAA2C;AAE3C,4CAAsF"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/generic_events/constants.js"],"names":[],"mappings":"AAMA,kCAAuD;AACvD,iCAAkC,KAAK,CAAA;AACvC,+BAAgC,OAAO,CAAA;AAEvC,uCAA6F;AAC7F,8CAAuD;AAEvD,0CAA2C,CAAC,CAAA;AAC5C,sCAAuC,IAAI,CAAA;AAE3C,4CAAsF"}
@@ -1,6 +1,10 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
3
  constructor(agentRef: any);
4
+ isSessionTrackingEnabled: any;
5
+ mode: any;
6
+ loggingMode: any;
7
+ updateLoggingMode(loggingMode: any): void;
4
8
  handleLog(timestamp: any, message: any, attributes?: {}, level?: string): void;
5
9
  serializer(eventBuffer: any): {
6
10
  common: {
@@ -13,6 +17,9 @@ export class Aggregate extends AggregateBase {
13
17
  queryStringsBuilder(): {
14
18
  browser_monitoring_key: any;
15
19
  };
20
+ /** Abort the feature, once aborted it will not resume */
21
+ abort(reason?: {}): void;
22
+ syncWithSessionManager(state?: {}): void;
16
23
  }
17
24
  import { AggregateBase } from '../../utils/aggregate-base';
18
25
  //# sourceMappingURL=index.d.ts.map