@newrelic/browser-agent 1.297.1-rc.1 → 1.297.1-rc.3
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/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/common/vitals/largest-contentful-paint.js +4 -1
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/common/vitals/largest-contentful-paint.js +4 -1
- package/package.json +1 -1
- package/src/common/vitals/largest-contentful-paint.js +2 -1
|
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the version of the agent
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = exports.VERSION = "1.297.1-rc.
|
|
20
|
+
const VERSION = exports.VERSION = "1.297.1-rc.3";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the version of the agent
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = exports.VERSION = "1.297.1-rc.
|
|
20
|
+
const VERSION = exports.VERSION = "1.297.1-rc.3";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -34,7 +34,10 @@ if (_runtime.isBrowserScope) {
|
|
|
34
34
|
resourceLoadDuration: attribution.resourceLoadDuration,
|
|
35
35
|
resourceLoadTime: attribution.resourceLoadDuration,
|
|
36
36
|
// kept for NR backwards compatibility, deprecated in v3->v4
|
|
37
|
-
elementRenderDelay: attribution.elementRenderDelay
|
|
37
|
+
elementRenderDelay: attribution.elementRenderDelay,
|
|
38
|
+
...(attribution.navigationEntry && {
|
|
39
|
+
pageUrl: (0, _cleanUrl.cleanURL)(attribution.navigationEntry.name)
|
|
40
|
+
}) // used to ensure the LCP gets the correct URL at harvest time if a soft nav has occurred before page load
|
|
38
41
|
};
|
|
39
42
|
if (attribution.url) attrs.elUrl = (0, _cleanUrl.cleanURL)(attribution.url);
|
|
40
43
|
if (lcpEntry.element?.tagName) attrs.elTag = lcpEntry.element.tagName;
|
|
@@ -27,7 +27,10 @@ if (isBrowserScope) {
|
|
|
27
27
|
resourceLoadDuration: attribution.resourceLoadDuration,
|
|
28
28
|
resourceLoadTime: attribution.resourceLoadDuration,
|
|
29
29
|
// kept for NR backwards compatibility, deprecated in v3->v4
|
|
30
|
-
elementRenderDelay: attribution.elementRenderDelay
|
|
30
|
+
elementRenderDelay: attribution.elementRenderDelay,
|
|
31
|
+
...(attribution.navigationEntry && {
|
|
32
|
+
pageUrl: cleanURL(attribution.navigationEntry.name)
|
|
33
|
+
}) // used to ensure the LCP gets the correct URL at harvest time if a soft nav has occurred before page load
|
|
31
34
|
};
|
|
32
35
|
if (attribution.url) attrs.elUrl = cleanURL(attribution.url);
|
|
33
36
|
if (lcpEntry.element?.tagName) attrs.elTag = lcpEntry.element.tagName;
|
package/package.json
CHANGED
|
@@ -26,7 +26,8 @@ if (isBrowserScope) {
|
|
|
26
26
|
resourceLoadDelay: attribution.resourceLoadDelay,
|
|
27
27
|
resourceLoadDuration: attribution.resourceLoadDuration,
|
|
28
28
|
resourceLoadTime: attribution.resourceLoadDuration, // kept for NR backwards compatibility, deprecated in v3->v4
|
|
29
|
-
elementRenderDelay: attribution.elementRenderDelay
|
|
29
|
+
elementRenderDelay: attribution.elementRenderDelay,
|
|
30
|
+
...(attribution.navigationEntry && { pageUrl: cleanURL(attribution.navigationEntry.name) }) // used to ensure the LCP gets the correct URL at harvest time if a soft nav has occurred before page load
|
|
30
31
|
}
|
|
31
32
|
if (attribution.url) attrs.elUrl = cleanURL(attribution.url)
|
|
32
33
|
if (lcpEntry.element?.tagName) attrs.elTag = lcpEntry.element.tagName
|