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
317
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.30.0 to 6.0.0

21

dist/integrations/mongo.js

@@ -116,3 +116,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

}
var _a, _b, _c;
var _a, _b, _c, _d;
var lastArg = args[args.length - 1];

@@ -125,9 +125,16 @@ var scope = getCurrentHub().getScope();

var span_1 = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild(getSpanContext(this, operation, args));
return orig.call.apply(orig, tslib_1.__spread([this], args)).then(function (res) {
var _a;
(_a = span_1) === null || _a === void 0 ? void 0 : _a.finish();
return res;
});
var maybePromise = orig.call.apply(orig, tslib_1.__spread([this], args));
if (utils_1.isThenable(maybePromise)) {
return maybePromise.then(function (res) {
var _a;
(_a = span_1) === null || _a === void 0 ? void 0 : _a.finish();
return res;
});
}
else {
(_c = span_1) === null || _c === void 0 ? void 0 : _c.finish();
return maybePromise;
}
}
var span = (_c = parentSpan) === null || _c === void 0 ? void 0 : _c.startChild(getSpanContext(this, operation, args.slice(0, -1)));
var span = (_d = parentSpan) === null || _d === void 0 ? void 0 : _d.startChild(getSpanContext(this, operation, args.slice(0, -1)));
return orig.call.apply(orig, tslib_1.__spread([this], args.slice(0, -1), [function (err, result) {

@@ -134,0 +141,0 @@ var _a;

import { __read, __spread } from "tslib";
import { dynamicRequire, fill, logger } from '@sentry/utils';
import { dynamicRequire, fill, isThenable, logger } from '@sentry/utils';
var OPERATIONS = [

@@ -115,3 +115,3 @@ 'aggregate',

}
var _a, _b, _c;
var _a, _b, _c, _d;
var lastArg = args[args.length - 1];

@@ -124,9 +124,16 @@ var scope = getCurrentHub().getScope();

var span_1 = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild(getSpanContext(this, operation, args));
return orig.call.apply(orig, __spread([this], args)).then(function (res) {
var _a;
(_a = span_1) === null || _a === void 0 ? void 0 : _a.finish();
return res;
});
var maybePromise = orig.call.apply(orig, __spread([this], args));
if (isThenable(maybePromise)) {
return maybePromise.then(function (res) {
var _a;
(_a = span_1) === null || _a === void 0 ? void 0 : _a.finish();
return res;
});
}
else {
(_c = span_1) === null || _c === void 0 ? void 0 : _c.finish();
return maybePromise;
}
}
var span = (_c = parentSpan) === null || _c === void 0 ? void 0 : _c.startChild(getSpanContext(this, operation, args.slice(0, -1)));
var span = (_d = parentSpan) === null || _d === void 0 ? void 0 : _d.startChild(getSpanContext(this, operation, args.slice(0, -1)));
return orig.call.apply(orig, __spread([this], args.slice(0, -1), [function (err, result) {

@@ -133,0 +140,0 @@ var _a;

{
"name": "@sentry/tracing",
"version": "5.30.0",
"version": "6.0.0",
"description": "Extensions for Sentry AM",

@@ -19,11 +19,11 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/hub": "5.30.0",
"@sentry/minimal": "5.30.0",
"@sentry/types": "5.30.0",
"@sentry/utils": "5.30.0",
"@sentry/hub": "6.0.0",
"@sentry/minimal": "6.0.0",
"@sentry/types": "6.0.0",
"@sentry/utils": "6.0.0",
"tslib": "^1.9.3"
},
"devDependencies": {
"@sentry-internal/eslint-config-sdk": "5.30.0",
"@sentry/browser": "5.30.0",
"@sentry-internal/eslint-config-sdk": "6.0.0",
"@sentry/browser": "6.0.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

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