🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@sentry-internal/browser-utils

Package Overview
Dependencies
Maintainers
9
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/browser-utils - npm Package Compare versions

Comparing version

to
9.32.0

8

build/cjs/metrics/cls.js

@@ -96,2 +96,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

// Add CLS sources as span attributes to help with debugging layout shifts
// See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift/sources
if (entry?.sources) {
entry.sources.forEach((source, index) => {
attributes[`cls.source.${index + 1}`] = core.htmlTreeAsString(source.node);
});
}
const span = utils.startStandaloneWebVitalSpan({

@@ -98,0 +106,0 @@ name,

@@ -94,2 +94,10 @@ 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';

// Add CLS sources as span attributes to help with debugging layout shifts
// See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift/sources
if (entry?.sources) {
entry.sources.forEach((source, index) => {
attributes[`cls.source.${index + 1}`] = htmlTreeAsString(source.node);
});
}
const span = startStandaloneWebVitalSpan({

@@ -96,0 +104,0 @@ name,

2

build/esm/package.json

@@ -1,1 +0,1 @@

{"type":"module","version":"9.31.0","sideEffects":false}
{"type":"module","version":"9.32.0","sideEffects":false}
{
"name": "@sentry-internal/browser-utils",
"version": "9.31.0",
"version": "9.32.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.31.0"
"@sentry/core": "9.32.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