@sentry-internal/browser-utils
Advanced tools
Comparing version
@@ -62,5 +62,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
const unsubscribeStartNavigation = client.on('startNavigationSpan', () => { | ||
_collectClsOnce(); | ||
unsubscribeStartNavigation?.(); | ||
const unsubscribeStartNavigation = client.on('beforeStartNavigationSpan', (_, options) => { | ||
// we only want to collect LCP if we actually navigate. Redirects should be ignored. | ||
if (!options?.isRedirect) { | ||
_collectClsOnce(); | ||
unsubscribeStartNavigation?.(); | ||
} | ||
}); | ||
@@ -67,0 +70,0 @@ |
@@ -62,5 +62,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
const unsubscribeStartNavigation = client.on('startNavigationSpan', () => { | ||
_collectLcpOnce(); | ||
unsubscribeStartNavigation?.(); | ||
const unsubscribeStartNavigation = client.on('beforeStartNavigationSpan', (_, options) => { | ||
// we only want to collect LCP if we actually navigate. Redirects should be ignored. | ||
if (!options?.isRedirect) { | ||
_collectLcpOnce(); | ||
unsubscribeStartNavigation?.(); | ||
} | ||
}); | ||
@@ -67,0 +70,0 @@ |
@@ -60,5 +60,8 @@ import { getClient, getActiveSpan, getRootSpan, spanToJSON, logger, browserPerformanceTimeOrigin, getCurrentScope, htmlTreeAsString, SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core'; | ||
const unsubscribeStartNavigation = client.on('startNavigationSpan', () => { | ||
_collectClsOnce(); | ||
unsubscribeStartNavigation?.(); | ||
const unsubscribeStartNavigation = client.on('beforeStartNavigationSpan', (_, options) => { | ||
// we only want to collect LCP if we actually navigate. Redirects should be ignored. | ||
if (!options?.isRedirect) { | ||
_collectClsOnce(); | ||
unsubscribeStartNavigation?.(); | ||
} | ||
}); | ||
@@ -65,0 +68,0 @@ |
@@ -60,5 +60,8 @@ import { getClient, getActiveSpan, getRootSpan, spanToJSON, logger, browserPerformanceTimeOrigin, getCurrentScope, htmlTreeAsString, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core'; | ||
const unsubscribeStartNavigation = client.on('startNavigationSpan', () => { | ||
_collectLcpOnce(); | ||
unsubscribeStartNavigation?.(); | ||
const unsubscribeStartNavigation = client.on('beforeStartNavigationSpan', (_, options) => { | ||
// we only want to collect LCP if we actually navigate. Redirects should be ignored. | ||
if (!options?.isRedirect) { | ||
_collectLcpOnce(); | ||
unsubscribeStartNavigation?.(); | ||
} | ||
}); | ||
@@ -65,0 +68,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"9.36.0","sideEffects":false} | ||
{"type":"module","version":"9.37.0","sideEffects":false} |
{ | ||
"name": "@sentry-internal/browser-utils", | ||
"version": "9.36.0", | ||
"version": "9.37.0", | ||
"description": "Browser Utilities for all Sentry JavaScript SDKs", | ||
@@ -42,3 +42,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "9.36.0" | ||
"@sentry/core": "9.37.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
871531
0.18%9414
0.13%+ Added
- Removed
Updated