@sentry-internal/browser-utils
Advanced tools
Comparing version 8.7.0 to 8.8.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
625995
6786
+ Added@sentry/core@8.8.0(transitive)
+ Added@sentry/types@8.8.0(transitive)
+ Added@sentry/utils@8.8.0(transitive)
- Removed@sentry/core@8.7.0(transitive)
- Removed@sentry/types@8.7.0(transitive)
- Removed@sentry/utils@8.7.0(transitive)
Updated@sentry/core@8.8.0
Updated@sentry/types@8.8.0
Updated@sentry/utils@8.8.0