@sentry-internal/browser-utils
Advanced tools
Comparing version 8.4.0 to 8.5.0
@@ -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
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
6776
625049
+ Added@sentry/core@8.5.0(transitive)
+ Added@sentry/types@8.5.0(transitive)
+ Added@sentry/utils@8.5.0(transitive)
- Removed@sentry/core@8.4.0(transitive)
- Removed@sentry/types@8.4.0(transitive)
- Removed@sentry/utils@8.4.0(transitive)
Updated@sentry/core@8.5.0
Updated@sentry/types@8.5.0
Updated@sentry/utils@8.5.0