@newrelic/browser-agent 1.309.0-rc.6 → 1.309.0-rc.7

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.
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.RRWEB_PACKAGE_NAME = exports.D
17
17
  /**
18
18
  * Exposes the version of the agent
19
19
  */
20
- const VERSION = exports.VERSION = "1.309.0-rc.6";
20
+ const VERSION = exports.VERSION = "1.309.0-rc.7";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.RRWEB_PACKAGE_NAME = exports.D
17
17
  /**
18
18
  * Exposes the version of the agent
19
19
  */
20
- const VERSION = exports.VERSION = "1.309.0-rc.6";
20
+ const VERSION = exports.VERSION = "1.309.0-rc.7";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -94,7 +94,7 @@ class RegisteredEntity {
94
94
  * Measures a task that is recorded as a BrowserPerformance event.
95
95
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/measure/}
96
96
  * @param {string} name The name of the task
97
- * @param {{start: number, end: number, duration: number, customAttributes: object}} [options] An object used to control the way the measure API operates
97
+ * @param {{start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}} [options] An object used to control the way the measure API operates
98
98
  * @returns {{start: number, end: number, duration: number, customAttributes: object}} Measurement details
99
99
  */
100
100
  measure(name, options) {
@@ -16,7 +16,7 @@ exports.default = void 0;
16
16
  * @property {(target: RegisterAPIConstructor) => RegisterAPI} register - Record a custom event for the registered entity.
17
17
  * @property {() => void} deregister - Deregister the registered entity, which blocks its use and captures end of life timings.
18
18
  * @property {(eventType: string, attributes?: Object) => void} recordCustomEvent - Record a custom event for the registered entity.
19
- * @property {(eventType: string, options?: {start: number, end: number, duration: number, customAttributes: object}) => ({start: number, end: number, duration: number, customAttributes: object})} measure - Measures a task that is recorded as a BrowserPerformance event.
19
+ * @property {(eventType: string, options?: {start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}) => ({start: number, end: number, duration: number, customAttributes: object})} measure - Measures a task that is recorded as a BrowserPerformance event.
20
20
  * @property {(value: string | null) => void} setApplicationVersion - Add an application.version attribute to all outgoing data for the registered entity.
21
21
  * @property {(name: string, value: string | number | boolean | null, persist?: boolean) => void} setCustomAttribute - Add a custom attribute to outgoing data for the registered entity.
22
22
  * @property {(value: string | null, resetSession?: boolean) => void} setUserId - Add an enduser.id attribute to all outgoing API data for the registered entity. Note: a registered entity will not be able to initiate a session reset. It must be done from the main agent.
@@ -225,7 +225,7 @@ class ApiBase {
225
225
  * Measures a task that is recorded as a BrowserPerformance event.
226
226
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/measure/}
227
227
  * @param {string} name The name of the task
228
- * @param {{start: number, end: number, duration: number, customAttributes: object}} [options] An object used to control the way the measure API operates
228
+ * @param {{start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}} [options] An object used to control the way the measure API operates
229
229
  * @returns {{start: number, end: number, duration: number, customAttributes: object}} Measurement details
230
230
  */
231
231
  measure(name, options) {
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.309.0-rc.6";
14
+ export const VERSION = "1.309.0-rc.7";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.309.0-rc.6";
14
+ export const VERSION = "1.309.0-rc.7";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -88,7 +88,7 @@ export class RegisteredEntity {
88
88
  * Measures a task that is recorded as a BrowserPerformance event.
89
89
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/measure/}
90
90
  * @param {string} name The name of the task
91
- * @param {{start: number, end: number, duration: number, customAttributes: object}} [options] An object used to control the way the measure API operates
91
+ * @param {{start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}} [options] An object used to control the way the measure API operates
92
92
  * @returns {{start: number, end: number, duration: number, customAttributes: object}} Measurement details
93
93
  */
94
94
  measure(name, options) {
@@ -11,7 +11,7 @@
11
11
  * @property {(target: RegisterAPIConstructor) => RegisterAPI} register - Record a custom event for the registered entity.
12
12
  * @property {() => void} deregister - Deregister the registered entity, which blocks its use and captures end of life timings.
13
13
  * @property {(eventType: string, attributes?: Object) => void} recordCustomEvent - Record a custom event for the registered entity.
14
- * @property {(eventType: string, options?: {start: number, end: number, duration: number, customAttributes: object}) => ({start: number, end: number, duration: number, customAttributes: object})} measure - Measures a task that is recorded as a BrowserPerformance event.
14
+ * @property {(eventType: string, options?: {start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}) => ({start: number, end: number, duration: number, customAttributes: object})} measure - Measures a task that is recorded as a BrowserPerformance event.
15
15
  * @property {(value: string | null) => void} setApplicationVersion - Add an application.version attribute to all outgoing data for the registered entity.
16
16
  * @property {(name: string, value: string | number | boolean | null, persist?: boolean) => void} setCustomAttribute - Add a custom attribute to outgoing data for the registered entity.
17
17
  * @property {(value: string | null, resetSession?: boolean) => void} setUserId - Add an enduser.id attribute to all outgoing API data for the registered entity. Note: a registered entity will not be able to initiate a session reset. It must be done from the main agent.
@@ -219,7 +219,7 @@ export class ApiBase {
219
219
  * Measures a task that is recorded as a BrowserPerformance event.
220
220
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/measure/}
221
221
  * @param {string} name The name of the task
222
- * @param {{start: number, end: number, duration: number, customAttributes: object}} [options] An object used to control the way the measure API operates
222
+ * @param {{start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}} [options] An object used to control the way the measure API operates
223
223
  * @returns {{start: number, end: number, duration: number, customAttributes: object}} Measurement details
224
224
  */
225
225
  measure(name, options) {
@@ -55,14 +55,13 @@ export class RegisteredEntity {
55
55
  * Measures a task that is recorded as a BrowserPerformance event.
56
56
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/measure/}
57
57
  * @param {string} name The name of the task
58
- * @param {{start: number, end: number, duration: number, customAttributes: object}} [options] An object used to control the way the measure API operates
58
+ * @param {{start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}} [options] An object used to control the way the measure API operates
59
59
  * @returns {{start: number, end: number, duration: number, customAttributes: object}} Measurement details
60
60
  */
61
61
  measure(name: string, options?: {
62
- start: number;
63
- end: number;
64
- duration: number;
65
- customAttributes: object;
62
+ start?: number | PerformanceMark;
63
+ end?: number | PerformanceMark;
64
+ customAttributes?: object;
66
65
  }): {
67
66
  start: number;
68
67
  end: number;
@@ -1 +1 @@
1
- {"version":3,"file":"registered-entity.d.ts","sourceRoot":"","sources":["../../../src/interfaces/registered-entity.js"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH;;;;;;GAMG;AACH;IAQE;;;OAGG;IACH,kBAFW,sBAAsB,EAShC;IAlBD,kCAAkC;IAClC,UADW,mBAAmB,CAK7B;IAeD;;;;;OAKG;IACH,oBAHW,MAAM,eACN,MAAM,QAKhB;IAED;;;;;;;;OAQG;IACH,iBAHW,OAAO,mCAAmC,EAAE,sBAAsB,GACjE,OAAO,mCAAmC,EAAE,WAAW,CAIlE;IAED;;;;;;;OAOG;IACH,cAFa,IAAI,CAIhB;IAED;;;;;SAKK;IACL,6BAHa,MAAM,eACN,MAAM,QAIlB;IAED;;;;;;OAMG;IACH,cAJW,MAAM,YACN;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAC,GACtE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAC,CAIpF;IAED;;;;;;OAMG;IACH,yBAJW,MAAM,SACN,MAAM,GAAC,MAAM,GAAC,OAAO,GAAC,IAAI,YAC1B,OAAO,QAKjB;IAED;;;;;OAKG;IACH,mBAHW,KAAK,GAAC,MAAM,qBACZ,MAAM,QAKhB;IAED;;;;;OAKG;IACH,iBAHW,MAAM,GAAC,IAAI,iBACX,OAAO,QAKjB;IAED;;;;;;;OAOG;IACH,6BAJW,MAAM,GAAC,IAAI,QAOrB;IAED;;;;;MAKE;IACF,aAHW,MAAM,YACN;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,GAAC,OAAO,GAAC,OAAO,GAAC,MAAM,GAAC,MAAM,CAAA;KAAC,QAKpF;CACF;0BAnJY,OAAO,mCAAmC,EAAE,WAAW;kCACvD,OAAO,mCAAmC,EAAE,mBAAmB;qCAC/D,OAAO,mCAAmC,EAAE,sBAAsB"}
1
+ {"version":3,"file":"registered-entity.d.ts","sourceRoot":"","sources":["../../../src/interfaces/registered-entity.js"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH;;;;;;GAMG;AACH;IAQE;;;OAGG;IACH,kBAFW,sBAAsB,EAShC;IAlBD,kCAAkC;IAClC,UADW,mBAAmB,CAK7B;IAeD;;;;;OAKG;IACH,oBAHW,MAAM,eACN,MAAM,QAKhB;IAED;;;;;;;;OAQG;IACH,iBAHW,OAAO,mCAAmC,EAAE,sBAAsB,GACjE,OAAO,mCAAmC,EAAE,WAAW,CAIlE;IAED;;;;;;;OAOG;IACH,cAFa,IAAI,CAIhB;IAED;;;;;SAKK;IACL,6BAHa,MAAM,eACN,MAAM,QAIlB;IAED;;;;;;OAMG;IACH,cAJW,MAAM,YACN;QAAC,KAAK,CAAC,EAAE,MAAM,GAAC,eAAe,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,GAAC,eAAe,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAC,GACvF;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAC,CAIpF;IAED;;;;;;OAMG;IACH,yBAJW,MAAM,SACN,MAAM,GAAC,MAAM,GAAC,OAAO,GAAC,IAAI,YAC1B,OAAO,QAKjB;IAED;;;;;OAKG;IACH,mBAHW,KAAK,GAAC,MAAM,qBACZ,MAAM,QAKhB;IAED;;;;;OAKG;IACH,iBAHW,MAAM,GAAC,IAAI,iBACX,OAAO,QAKjB;IAED;;;;;;;OAOG;IACH,6BAJW,MAAM,GAAC,IAAI,QAOrB;IAED;;;;;MAKE;IACF,aAHW,MAAM,YACN;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,GAAC,OAAO,GAAC,OAAO,GAAC,MAAM,GAAC,MAAM,CAAA;KAAC,QAKpF;CACF;0BAnJY,OAAO,mCAAmC,EAAE,WAAW;kCACvD,OAAO,mCAAmC,EAAE,mBAAmB;qCAC/D,OAAO,mCAAmC,EAAE,sBAAsB"}
@@ -32,10 +32,9 @@ export type RegisterAPI = {
32
32
  * - Measures a task that is recorded as a BrowserPerformance event.
33
33
  */
34
34
  measure: (eventType: string, options?: {
35
- start: number;
36
- end: number;
37
- duration: number;
38
- customAttributes: object;
35
+ start?: number | PerformanceMark;
36
+ end?: number | PerformanceMark;
37
+ customAttributes?: object;
39
38
  }) => ({
40
39
  start: number;
41
40
  end: number;
@@ -1 +1 @@
1
- {"version":3,"file":"register-api-types.d.ts","sourceRoot":"","sources":["../../../../src/loaders/api/register-api-types.js"],"names":[],"mappings":";;;;;;mBAOc,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI;;;;SAC3C,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,GA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AAY,CAAC,EAAE,OAAO,KAAK,IAAI;;;;cACtD,mBAAmB;;;;;;QAKnB,MAAM,GAAC,MAAM;;;;UACb,MAAM;;;;;;;;;;;;;;;;;;;;sBAQN,MAAM;;;;aAEjB;QAA2B,YAAY,EAA5B,MAAM;QACW,UAAU;QACX,UAAU,EAA1B,MAAM;QACU,QAAQ,EAAxB,MAAM;QACW,KAAK;KACjC;;;;YACA;QAA2B,UAAU;QACX,EAAE,EAAjB,MAAM;QACS,IAAI,EAAnB,MAAM;QACwB,IAAI;;;QAClB,QAAQ;QACP,QAAQ;KACtC"}
@@ -165,14 +165,13 @@ export class ApiBase {
165
165
  * Measures a task that is recorded as a BrowserPerformance event.
166
166
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/measure/}
167
167
  * @param {string} name The name of the task
168
- * @param {{start: number, end: number, duration: number, customAttributes: object}} [options] An object used to control the way the measure API operates
168
+ * @param {{start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}} [options] An object used to control the way the measure API operates
169
169
  * @returns {{start: number, end: number, duration: number, customAttributes: object}} Measurement details
170
170
  */
171
171
  measure(name: string, options?: {
172
- start: number;
173
- end: number;
174
- duration: number;
175
- customAttributes: object;
172
+ start?: number | PerformanceMark;
173
+ end?: number | PerformanceMark;
174
+ customAttributes?: object;
176
175
  }): {
177
176
  start: number;
178
177
  end: number;
@@ -1 +1 @@
1
- {"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../../../src/loaders/api-base.js"],"names":[],"mappings":"AAOA;;GAEG;AACH;IAQE;;;;;OAKG;IACH,oBAHW,MAAM,eACN,MAAM,OAIhB;IAED;;;;;;;;OAQG;IACH,iBAHW,OAAO,0BAA0B,EAAE,sBAAsB,GAC1D,OAAO,0BAA0B,EAAE,WAAW,CAIvD;IAED;;;;;OAKG;IACH,6BAHW,MAAM,eACN,MAAM,OAIhB;IAED;;;;;OAKG;IACH,sBAHW,MAAM,SACN,MAAM,OAIhB;IAED;;;;;;O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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "1.309.0-rc.6",
3
+ "version": "1.309.0-rc.7",
4
4
  "private": false,
5
5
  "author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
6
6
  "description": "New Relic Browser Agent",
@@ -88,7 +88,7 @@ export class RegisteredEntity {
88
88
  * Measures a task that is recorded as a BrowserPerformance event.
89
89
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/measure/}
90
90
  * @param {string} name The name of the task
91
- * @param {{start: number, end: number, duration: number, customAttributes: object}} [options] An object used to control the way the measure API operates
91
+ * @param {{start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}} [options] An object used to control the way the measure API operates
92
92
  * @returns {{start: number, end: number, duration: number, customAttributes: object}} Measurement details
93
93
  */
94
94
  measure (name, options) {
@@ -11,7 +11,7 @@
11
11
  * @property {(target: RegisterAPIConstructor) => RegisterAPI} register - Record a custom event for the registered entity.
12
12
  * @property {() => void} deregister - Deregister the registered entity, which blocks its use and captures end of life timings.
13
13
  * @property {(eventType: string, attributes?: Object) => void} recordCustomEvent - Record a custom event for the registered entity.
14
- * @property {(eventType: string, options?: {start: number, end: number, duration: number, customAttributes: object}) => ({start: number, end: number, duration: number, customAttributes: object})} measure - Measures a task that is recorded as a BrowserPerformance event.
14
+ * @property {(eventType: string, options?: {start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}) => ({start: number, end: number, duration: number, customAttributes: object})} measure - Measures a task that is recorded as a BrowserPerformance event.
15
15
  * @property {(value: string | null) => void} setApplicationVersion - Add an application.version attribute to all outgoing data for the registered entity.
16
16
  * @property {(name: string, value: string | number | boolean | null, persist?: boolean) => void} setCustomAttribute - Add a custom attribute to outgoing data for the registered entity.
17
17
  * @property {(value: string | null, resetSession?: boolean) => void} setUserId - Add an enduser.id attribute to all outgoing API data for the registered entity. Note: a registered entity will not be able to initiate a session reset. It must be done from the main agent.
@@ -220,7 +220,7 @@ export class ApiBase {
220
220
  * Measures a task that is recorded as a BrowserPerformance event.
221
221
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/measure/}
222
222
  * @param {string} name The name of the task
223
- * @param {{start: number, end: number, duration: number, customAttributes: object}} [options] An object used to control the way the measure API operates
223
+ * @param {{start?: number|PerformanceMark, end?: number|PerformanceMark, customAttributes?: object}} [options] An object used to control the way the measure API operates
224
224
  * @returns {{start: number, end: number, duration: number, customAttributes: object}} Measurement details
225
225
  */
226
226
  measure (name, options) {