@sentry/browser
Advanced tools
Comparing version 8.7.0 to 8.8.0
@@ -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 @@ |
{ | ||
"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
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
947889
9612
+ Added@sentry-internal/browser-utils@8.8.0(transitive)
+ Added@sentry-internal/feedback@8.8.0(transitive)
+ Added@sentry-internal/replay@8.8.0(transitive)
+ Added@sentry-internal/replay-canvas@8.8.0(transitive)
+ Added@sentry/core@8.8.0(transitive)
+ Added@sentry/types@8.8.0(transitive)
+ Added@sentry/utils@8.8.0(transitive)
- Removed@sentry-internal/browser-utils@8.7.0(transitive)
- Removed@sentry-internal/feedback@8.7.0(transitive)
- Removed@sentry-internal/replay@8.7.0(transitive)
- Removed@sentry-internal/replay-canvas@8.7.0(transitive)
- Removed@sentry/core@8.7.0(transitive)
- Removed@sentry/types@8.7.0(transitive)
- Removed@sentry/utils@8.7.0(transitive)
Updated@sentry/core@8.8.0
Updated@sentry/types@8.8.0
Updated@sentry/utils@8.8.0