Socket
Socket
Sign inDemoInstall

@sentry-internal/browser-utils

Package Overview
Dependencies
Maintainers
9
Versions
52
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.4.0 to 8.5.0

12

cjs/metrics/inp.js

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

var {
_optionalChain
} = require('@sentry/utils');
Object.defineProperty(exports, '__esModule', { value: true });

@@ -91,3 +87,9 @@

const userDisplay = user !== undefined ? user.email || user.id || user.ip_address : undefined;
const profileId = _optionalChain([scope, 'access', _ => _.getScopeData, 'call', _2 => _2(), 'access', _3 => _3.contexts, 'optionalAccess', _4 => _4.profile, 'optionalAccess', _5 => _5.profile_id]) ;
let profileId = undefined;
try {
// @ts-expect-error skip optional chaining to save bundle size with try catch
profileId = scope.getScopeData().contexts.profile.profile_id;
} catch (e) {
// do nothing
}

@@ -94,0 +96,0 @@ const name = utils$1.htmlTreeAsString(entry.target);

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

import { _optionalChain } from '@sentry/utils';
import { getClient, getCurrentScope, getActiveSpan, getRootSpan, spanToJSON, SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME, startInactiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE } from '@sentry/core';

@@ -86,3 +85,9 @@ import { browserPerformanceTimeOrigin, htmlTreeAsString, dropUndefinedKeys } from '@sentry/utils';

const userDisplay = user !== undefined ? user.email || user.id || user.ip_address : undefined;
const profileId = _optionalChain([scope, 'access', _ => _.getScopeData, 'call', _2 => _2(), 'access', _3 => _3.contexts, 'optionalAccess', _4 => _4.profile, 'optionalAccess', _5 => _5.profile_id]) ;
let profileId = undefined;
try {
// @ts-expect-error skip optional chaining to save bundle size with try catch
profileId = scope.getScopeData().contexts.profile.profile_id;
} catch (e) {
// do nothing
}

@@ -89,0 +94,0 @@ const name = htmlTreeAsString(entry.target);

{
"name": "@sentry-internal/browser-utils",
"version": "8.4.0",
"version": "8.5.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.4.0",
"@sentry/types": "8.4.0",
"@sentry/utils": "8.4.0"
"@sentry/core": "8.5.0",
"@sentry/types": "8.5.0",
"@sentry/utils": "8.5.0"
},
"sideEffects": false
}

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