@sentry/tracing
Advanced tools
Comparing version 5.22.3 to 5.23.0
@@ -28,3 +28,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}; | ||
var shouldCreateSpan = shouldCreateSpanForRequest || defaultShouldCreateSpan; | ||
// We want that our users don't have to re-implement shouldCreateSpanForRequest themselves | ||
// That's why we filter out already unwanted Spans from tracingOrigins | ||
var shouldCreateSpan = defaultShouldCreateSpan; | ||
if (typeof shouldCreateSpanForRequest === 'function') { | ||
shouldCreateSpan = function (url) { | ||
return defaultShouldCreateSpan(url) && shouldCreateSpanForRequest(url); | ||
}; | ||
} | ||
var spans = {}; | ||
@@ -31,0 +38,0 @@ if (traceFetch) { |
@@ -52,4 +52,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
function wrap(fn) { | ||
var arrity = fn.length; | ||
switch (arrity) { | ||
var arity = fn.length; | ||
switch (arity) { | ||
case 2: { | ||
@@ -106,3 +106,3 @@ return function (_req, res) { | ||
default: { | ||
throw new Error("Express middleware takes 2-4 arguments. Got: " + arrity); | ||
throw new Error("Express middleware takes 2-4 arguments. Got: " + arity); | ||
} | ||
@@ -109,0 +109,0 @@ } |
@@ -27,3 +27,10 @@ import { __assign, __read, __spread } from "tslib"; | ||
}; | ||
var shouldCreateSpan = shouldCreateSpanForRequest || defaultShouldCreateSpan; | ||
// We want that our users don't have to re-implement shouldCreateSpanForRequest themselves | ||
// That's why we filter out already unwanted Spans from tracingOrigins | ||
var shouldCreateSpan = defaultShouldCreateSpan; | ||
if (typeof shouldCreateSpanForRequest === 'function') { | ||
shouldCreateSpan = function (url) { | ||
return defaultShouldCreateSpan(url) && shouldCreateSpanForRequest(url); | ||
}; | ||
} | ||
var spans = {}; | ||
@@ -30,0 +37,0 @@ if (traceFetch) { |
@@ -51,4 +51,4 @@ import { logger } from '@sentry/utils'; | ||
function wrap(fn) { | ||
var arrity = fn.length; | ||
switch (arrity) { | ||
var arity = fn.length; | ||
switch (arity) { | ||
case 2: { | ||
@@ -105,3 +105,3 @@ return function (_req, res) { | ||
default: { | ||
throw new Error("Express middleware takes 2-4 arguments. Got: " + arrity); | ||
throw new Error("Express middleware takes 2-4 arguments. Got: " + arity); | ||
} | ||
@@ -108,0 +108,0 @@ } |
{ | ||
"name": "@sentry/tracing", | ||
"version": "5.22.3", | ||
"version": "5.23.0", | ||
"description": "Extensions for Sentry AM", | ||
@@ -19,11 +19,11 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/hub": "5.22.3", | ||
"@sentry/minimal": "5.22.3", | ||
"@sentry/types": "5.22.3", | ||
"@sentry/utils": "5.22.3", | ||
"@sentry/hub": "5.23.0", | ||
"@sentry/minimal": "5.23.0", | ||
"@sentry/types": "5.23.0", | ||
"@sentry/utils": "5.23.0", | ||
"tslib": "^1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@sentry-internal/eslint-config-sdk": "5.22.3", | ||
"@sentry/browser": "5.22.3", | ||
"@sentry-internal/eslint-config-sdk": "5.23.0", | ||
"@sentry/browser": "5.23.0", | ||
"@types/express": "^4.17.1", | ||
@@ -30,0 +30,0 @@ "@types/jsdom": "^16.2.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
1601154
11792
+ Added@sentry/hub@5.23.0(transitive)
+ Added@sentry/minimal@5.23.0(transitive)
+ Added@sentry/types@5.23.0(transitive)
+ Added@sentry/utils@5.23.0(transitive)
- Removed@sentry/hub@5.22.3(transitive)
- Removed@sentry/minimal@5.22.3(transitive)
- Removed@sentry/types@5.22.3(transitive)
- Removed@sentry/utils@5.22.3(transitive)
Updated@sentry/hub@5.23.0
Updated@sentry/minimal@5.23.0
Updated@sentry/types@5.23.0
Updated@sentry/utils@5.23.0