Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/browser

Package Overview
Dependencies
Maintainers
11
Versions
541
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 8.7.0 to 8.8.0

17

cjs/stack-parsers.js

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

// Chromium based browsers: Chrome, Brave, new Opera, new Edge
// This regex matches frames that have no function name (ie. are at the top level of a module).
// For example "at http://localhost:5000//script.js:1:126"
// Frames _with_ function names usually look as follows: "at commitLayoutEffects (react-dom.development.js:23426:1)"
const chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
// This regex matches all the frames that have a function name.
const chromeRegex =
/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
const chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
// Chromium based browsers: Chrome, Brave, new Opera, new Edge
// We cannot call this variable `chrome` because it can conflict with global `chrome` variable in certain environments
// See: https://github.com/getsentry/sentry-javascript/issues/6880
const chromeStackParserFn = line => {
// If the stack line has no function name, we need to parse it differently
const noFnParts = chromeRegexNoFnName.exec(line);
if (noFnParts) {
const [, filename, line, col] = noFnParts;
return createFrame(filename, utils.UNKNOWN_FUNCTION, +line, +col);
}
const parts = chromeRegex.exec(line);

@@ -39,0 +54,0 @@

@@ -27,10 +27,25 @@ import { createStackParser, UNKNOWN_FUNCTION } from '@sentry/utils';

// Chromium based browsers: Chrome, Brave, new Opera, new Edge
// This regex matches frames that have no function name (ie. are at the top level of a module).
// For example "at http://localhost:5000//script.js:1:126"
// Frames _with_ function names usually look as follows: "at commitLayoutEffects (react-dom.development.js:23426:1)"
const chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
// This regex matches all the frames that have a function name.
const chromeRegex =
/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
const chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
// Chromium based browsers: Chrome, Brave, new Opera, new Edge
// We cannot call this variable `chrome` because it can conflict with global `chrome` variable in certain environments
// See: https://github.com/getsentry/sentry-javascript/issues/6880
const chromeStackParserFn = line => {
// If the stack line has no function name, we need to parse it differently
const noFnParts = chromeRegexNoFnName.exec(line);
if (noFnParts) {
const [, filename, line, col] = noFnParts;
return createFrame(filename, UNKNOWN_FUNCTION, +line, +col);
}
const parts = chromeRegex.exec(line);

@@ -37,0 +52,0 @@

20

package.json
{
"name": "@sentry/browser",
"version": "8.7.0",
"version": "8.8.0",
"description": "Official Sentry SDK for browsers",

@@ -29,3 +29,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"require": {
"types": "./build/npm.types/index.d.ts",
"types": "./types/index.d.ts",
"default": "./cjs/index.js"

@@ -46,12 +46,12 @@ }

"dependencies": {
"@sentry-internal/browser-utils": "8.7.0",
"@sentry-internal/feedback": "8.7.0",
"@sentry-internal/replay": "8.7.0",
"@sentry-internal/replay-canvas": "8.7.0",
"@sentry/core": "8.7.0",
"@sentry/types": "8.7.0",
"@sentry/utils": "8.7.0"
"@sentry-internal/browser-utils": "8.8.0",
"@sentry-internal/feedback": "8.8.0",
"@sentry-internal/replay": "8.8.0",
"@sentry-internal/replay-canvas": "8.8.0",
"@sentry/core": "8.8.0",
"@sentry/types": "8.8.0",
"@sentry/utils": "8.8.0"
},
"devDependencies": {
"@sentry-internal/integration-shims": "8.7.0",
"@sentry-internal/integration-shims": "8.8.0",
"@types/md5": "2.1.33",

@@ -58,0 +58,0 @@ "btoa": "^1.2.1",

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