@sentry/core
Advanced tools
Comparing version
@@ -140,10 +140,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
const { user } = getMergedScopeData(currentScope); | ||
// Only attach user to log attributes if sendDefaultPii is enabled | ||
if (client$1.getOptions().sendDefaultPii) { | ||
const { id, email, username } = user; | ||
setLogAttribute(processedLogAttributes, 'user.id', id, false); | ||
setLogAttribute(processedLogAttributes, 'user.email', email, false); | ||
setLogAttribute(processedLogAttributes, 'user.name', username, false); | ||
} | ||
const { | ||
user: { id, email, username }, | ||
} = getMergedScopeData(currentScope); | ||
setLogAttribute(processedLogAttributes, 'user.id', id, false); | ||
setLogAttribute(processedLogAttributes, 'user.email', email, false); | ||
setLogAttribute(processedLogAttributes, 'user.name', username, false); | ||
@@ -150,0 +148,0 @@ setLogAttribute(processedLogAttributes, 'sentry.release', release); |
@@ -5,5 +5,5 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
const SDK_VERSION = "9.29.0" ; | ||
const SDK_VERSION = "9.30.0" ; | ||
exports.SDK_VERSION = SDK_VERSION; | ||
//# sourceMappingURL=version.js.map |
@@ -138,10 +138,8 @@ import { _getTraceInfoFromScope } from '../client.js'; | ||
const { user } = getMergedScopeData(currentScope); | ||
// Only attach user to log attributes if sendDefaultPii is enabled | ||
if (client.getOptions().sendDefaultPii) { | ||
const { id, email, username } = user; | ||
setLogAttribute(processedLogAttributes, 'user.id', id, false); | ||
setLogAttribute(processedLogAttributes, 'user.email', email, false); | ||
setLogAttribute(processedLogAttributes, 'user.name', username, false); | ||
} | ||
const { | ||
user: { id, email, username }, | ||
} = getMergedScopeData(currentScope); | ||
setLogAttribute(processedLogAttributes, 'user.id', id, false); | ||
setLogAttribute(processedLogAttributes, 'user.email', email, false); | ||
setLogAttribute(processedLogAttributes, 'user.name', username, false); | ||
@@ -148,0 +146,0 @@ setLogAttribute(processedLogAttributes, 'sentry.release', release); |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"9.29.0","sideEffects":false} | ||
{"type":"module","version":"9.30.0","sideEffects":false} |
// This is a magic string replaced by rollup | ||
const SDK_VERSION = "9.29.0" ; | ||
const SDK_VERSION = "9.30.0" ; | ||
export { SDK_VERSION }; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@sentry/core", | ||
"version": "9.29.0", | ||
"version": "9.30.0", | ||
"description": "Base implementation for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
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
3505075
-0.02%41159
-0.01%