@sentry-internal/browser-utils
Advanced tools
Comparing version
@@ -138,8 +138,13 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
function instrumentLcp() { | ||
return getLCP.onLCP(metric => { | ||
triggerHandlers('lcp', { | ||
metric, | ||
}); | ||
_previousLcp = metric; | ||
}); | ||
return getLCP.onLCP( | ||
metric => { | ||
triggerHandlers('lcp', { | ||
metric, | ||
}); | ||
_previousLcp = metric; | ||
}, | ||
// We want the callback to be called whenever the LCP value updates. | ||
// By default, the callback is only called when the tab goes to the background. | ||
{ reportAllChanges: true }, | ||
); | ||
} | ||
@@ -146,0 +151,0 @@ |
@@ -136,8 +136,13 @@ import { logger, getFunctionName } from '@sentry/utils'; | ||
function instrumentLcp() { | ||
return onLCP(metric => { | ||
triggerHandlers('lcp', { | ||
metric, | ||
}); | ||
_previousLcp = metric; | ||
}); | ||
return onLCP( | ||
metric => { | ||
triggerHandlers('lcp', { | ||
metric, | ||
}); | ||
_previousLcp = metric; | ||
}, | ||
// We want the callback to be called whenever the LCP value updates. | ||
// By default, the callback is only called when the tab goes to the background. | ||
{ reportAllChanges: true }, | ||
); | ||
} | ||
@@ -144,0 +149,0 @@ |
{ | ||
"name": "@sentry-internal/browser-utils", | ||
"version": "8.7.0", | ||
"version": "8.8.0", | ||
"description": "Browser Utilities for all Sentry JavaScript SDKs", | ||
@@ -45,7 +45,7 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "8.7.0", | ||
"@sentry/types": "8.7.0", | ||
"@sentry/utils": "8.7.0" | ||
"@sentry/core": "8.8.0", | ||
"@sentry/types": "8.8.0", | ||
"@sentry/utils": "8.8.0" | ||
}, | ||
"sideEffects": false | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
625995
0.15%6786
0.15%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated