Socket
Socket
Sign inDemoInstall

@sentry-internal/browser-utils

Package Overview
Dependencies
Maintainers
9
Versions
51
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 8.30.0 to 8.31.0-beta.0

9

build/cjs/metrics/browserMetrics.js

@@ -10,2 +10,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

const utils = require('./utils.js');
const getActivationStart = require('./web-vitals/lib/getActivationStart.js');
const getNavigationEntry = require('./web-vitals/lib/getNavigationEntry.js');

@@ -326,2 +327,10 @@ const getVisibilityWatcher = require('./web-vitals/lib/getVisibilityWatcher.js');

// In prerendering scenarios, where a page might be prefetched and pre-rendered before the user clicks the link,
// the navigation starts earlier than when the user clicks it. Web Vitals should always be based on the
// user-perceived time, so they are not reported from the actual start of the navigation, but rather from the
// time where the user actively started the navigation, for example by clicking a link.
// This is user action is called "activation" and the time between navigation and activation is stored in
// the `activationStart` attribute of the "navigation" PerformanceEntry.
span.setAttribute('performance.activationStart', getActivationStart.getActivationStart());
_setWebVitalAttributes(span);

@@ -328,0 +337,0 @@ }

@@ -8,2 +8,3 @@ import { getActiveSpan, startInactiveSpan, spanToJSON, setMeasurement, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';

import { getBrowserPerformanceAPI, msToSec, startAndEndSpan, isMeasurementValue } from './utils.js';
import { getActivationStart } from './web-vitals/lib/getActivationStart.js';
import { getNavigationEntry } from './web-vitals/lib/getNavigationEntry.js';

@@ -324,2 +325,10 @@ import { getVisibilityWatcher } from './web-vitals/lib/getVisibilityWatcher.js';

// In prerendering scenarios, where a page might be prefetched and pre-rendered before the user clicks the link,
// the navigation starts earlier than when the user clicks it. Web Vitals should always be based on the
// user-perceived time, so they are not reported from the actual start of the navigation, but rather from the
// time where the user actively started the navigation, for example by clicking a link.
// This is user action is called "activation" and the time between navigation and activation is stored in
// the `activationStart` attribute of the "navigation" PerformanceEntry.
span.setAttribute('performance.activationStart', getActivationStart());
_setWebVitalAttributes(span);

@@ -326,0 +335,0 @@ }

8

package.json
{
"name": "@sentry-internal/browser-utils",
"version": "8.30.0",
"version": "8.31.0-beta.0",
"description": "Browser Utilities for all Sentry JavaScript SDKs",

@@ -42,5 +42,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "8.30.0",
"@sentry/types": "8.30.0",
"@sentry/utils": "8.30.0"
"@sentry/core": "8.31.0-beta.0",
"@sentry/types": "8.31.0-beta.0",
"@sentry/utils": "8.31.0-beta.0"
},

@@ -47,0 +47,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc