You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@sentry/browser

Package Overview
Dependencies
Maintainers
10
Versions
648
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version

to
10.2.0

2

build/npm/cjs/integrations/breadcrumbs.js

@@ -27,3 +27,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

setup(client) {
// TODO(v10): Remove this functionality and use `consoleIntegration` from @sentry/core instead.
// TODO(v11): Remove this functionality and use `consoleIntegration` from @sentry/core instead.
if (_options.console) {

@@ -30,0 +30,0 @@ core.addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(client));

@@ -60,3 +60,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

handled: false,
type: 'onerror',
type: 'auto.browser.global_handlers.onerror',
},

@@ -87,3 +87,3 @@ });

handled: false,
type: 'onunhandledrejection',
type: 'auto.browser.global_handlers.onunhandledrejection',
},

@@ -90,0 +90,0 @@ });

@@ -22,3 +22,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

return [
// TODO(v10): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
// TODO(v11): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
// eslint-disable-next-line deprecation/deprecation

@@ -25,0 +25,0 @@ core.inboundFiltersIntegration(),

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

// Matches stack frames with data URIs instead of filename so we can still get the function name
// Example: "at dynamicFn (data:application/javascript,export function dynamicFn() {..."
const chromeDataUriRegex = /at (.+?) ?\(data:(.+?),/;
// Chromium based browsers: Chrome, Brave, new Opera, new Edge

@@ -45,2 +49,10 @@ // We cannot call this variable `chrome` because it can conflict with global `chrome` variable in certain environments

const chromeStackParserFn = line => {
const dataUriMatch = line.match(chromeDataUriRegex);
if (dataUriMatch) {
return {
filename: `<data:${dataUriMatch[2]}>`,
function: dataUriMatch[1],
};
}
// If the stack line has no function name, we need to parse it differently

@@ -47,0 +59,0 @@ const noFnParts = chromeRegexNoFnName.exec(line) ;

@@ -173,4 +173,4 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

// can obtain the previous trace information from the EAP store. Long-term, EAP will handle
// span links and then we should remove this again. Also throwing in a TODO(v10), to remind us
// to check this at v10 time :)
// span links and then we should remove this again. Also throwing in a TODO(v11), to remind us
// to check this at v11 time :)
span.setAttribute(

@@ -177,0 +177,0 @@ PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE,

@@ -25,3 +25,3 @@ import { defineIntegration, addConsoleInstrumentationHandler, addFetchInstrumentationHandler, getClient, safeJoin, severityLevelFromString, addBreadcrumb, debug, htmlTreeAsString, getComponentName, getBreadcrumbLogLevelFromHttpStatusCode, parseUrl, getEventDescription } from '@sentry/core';

setup(client) {
// TODO(v10): Remove this functionality and use `consoleIntegration` from @sentry/core instead.
// TODO(v11): Remove this functionality and use `consoleIntegration` from @sentry/core instead.
if (_options.console) {

@@ -28,0 +28,0 @@ addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(client));

@@ -58,3 +58,3 @@ import { defineIntegration, addGlobalErrorInstrumentationHandler, getClient, captureEvent, debug, addGlobalUnhandledRejectionInstrumentationHandler, isPrimitive, isString, getLocationHref, UNKNOWN_FUNCTION } from '@sentry/core';

handled: false,
type: 'onerror',
type: 'auto.browser.global_handlers.onerror',
},

@@ -85,3 +85,3 @@ });

handled: false,
type: 'onunhandledrejection',
type: 'auto.browser.global_handlers.onunhandledrejection',
},

@@ -88,0 +88,0 @@ });

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

{"type":"module","version":"10.1.0","sideEffects":false}
{"type":"module","version":"10.2.0","sideEffects":false}

@@ -20,3 +20,3 @@ import { inboundFiltersIntegration, functionToStringIntegration, dedupeIntegration, getIntegrationsToSetup, stackParserFromStackParserOptions, initAndBind } from '@sentry/core';

return [
// TODO(v10): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
// TODO(v11): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
// eslint-disable-next-line deprecation/deprecation

@@ -23,0 +23,0 @@ inboundFiltersIntegration(),

@@ -38,2 +38,6 @@ import { createStackParser, UNKNOWN_FUNCTION } from '@sentry/core';

// Matches stack frames with data URIs instead of filename so we can still get the function name
// Example: "at dynamicFn (data:application/javascript,export function dynamicFn() {..."
const chromeDataUriRegex = /at (.+?) ?\(data:(.+?),/;
// Chromium based browsers: Chrome, Brave, new Opera, new Edge

@@ -43,2 +47,10 @@ // We cannot call this variable `chrome` because it can conflict with global `chrome` variable in certain environments

const chromeStackParserFn = line => {
const dataUriMatch = line.match(chromeDataUriRegex);
if (dataUriMatch) {
return {
filename: `<data:${dataUriMatch[2]}>`,
function: dataUriMatch[1],
};
}
// If the stack line has no function name, we need to parse it differently

@@ -45,0 +57,0 @@ const noFnParts = chromeRegexNoFnName.exec(line) ;

@@ -171,4 +171,4 @@ import { getRootSpan, getCurrentScope, SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE, spanToJSON, debug, SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE } from '@sentry/core';

// can obtain the previous trace information from the EAP store. Long-term, EAP will handle
// span links and then we should remove this again. Also throwing in a TODO(v10), to remind us
// to check this at v10 time :)
// span links and then we should remove this again. Also throwing in a TODO(v11), to remind us
// to check this at v11 time :)
span.setAttribute(

@@ -175,0 +175,0 @@ PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE,

{
"name": "@sentry/browser",
"version": "10.1.0",
"version": "10.2.0",
"description": "Official Sentry SDK for browsers",

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

"dependencies": {
"@sentry-internal/browser-utils": "10.1.0",
"@sentry-internal/feedback": "10.1.0",
"@sentry-internal/replay": "10.1.0",
"@sentry-internal/replay-canvas": "10.1.0",
"@sentry/core": "10.1.0"
"@sentry-internal/browser-utils": "10.2.0",
"@sentry-internal/feedback": "10.2.0",
"@sentry-internal/replay": "10.2.0",
"@sentry-internal/replay-canvas": "10.2.0",
"@sentry/core": "10.2.0"
},
"devDependencies": {
"@sentry-internal/integration-shims": "10.1.0",
"@sentry-internal/integration-shims": "10.2.0",
"fake-indexeddb": "^4.0.1"

@@ -52,0 +52,0 @@ },

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

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

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

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.