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

@compas/server

Package Overview
Dependencies
Maintainers
0
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compas/server - npm Package Compare versions

Comparing version 0.13.1 to 0.14.0

4

package.json
{
"name": "@compas/server",
"version": "0.13.1",
"version": "0.14.0",
"description": "Koa server and common middleware",

@@ -24,3 +24,3 @@ "exports": {

"dependencies": {
"@compas/stdlib": "0.13.1",
"@compas/stdlib": "0.14.0",
"@types/formidable": "2.0.6",

@@ -27,0 +27,0 @@ "@types/koa": "2.15.0",

@@ -115,3 +115,3 @@ import { Transform } from "node:stream";

// Discard sampled spans which don't match a route.
span.setAttribute("_compas.skip-event", true);
_compasSentryExport.setExtra("_compas.skip-event", true);
}

@@ -118,0 +118,0 @@

@@ -1,7 +0,3 @@

import { _compasSentryExport, uuid } from "@compas/stdlib";
import { _compasSentryExport } from "@compas/stdlib";
const cbIdentity = (cb) => {
return cb();
};
/**

@@ -39,14 +35,5 @@ * Sentry support;

const _sentry = _compasSentryExport;
// Sentry v7 / v8 compat
const startNewTrace = _sentry.startNewTrace ?? cbIdentity;
return startNewTrace(() => {
return _sentry.startSpanManual(
return _sentry.withIsolationScope(async () => {
return await _sentry.startSpanManual(
{
// @ts-expect-error compat
//
// v7 / v8 compat to force a new trace
traceId: uuid().replace(/-/g, ""),
spanId: uuid().replace(/-/g, "").slice(16),
op: "http.server",

@@ -53,0 +40,0 @@ name: "http",

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