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

@sentry/tracing

Package Overview
Dependencies
Maintainers
13
Versions
315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/tracing - npm Package Compare versions

Comparing version 5.22.3 to 5.23.0

9

dist/browser/request.js

@@ -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) {

6

dist/integrations/express.js

@@ -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

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