New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@appsignal/express

Package Overview
Dependencies
Maintainers
9
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/express - npm Package Compare versions

Comparing version

to
1.0.27

10

dist/middleware/index.js

@@ -21,3 +21,3 @@ "use strict";

span.setCategory("process_request.express");
res.end = function () {
res.end = function (...args) {
var _a;

@@ -34,9 +34,5 @@ res.end = originalEnd;

}
// defeated the type checker here because i'm pretty sure the error
// `tsc` returns is actually a parse error
// @TODO: keep an eye on this
// @ts-ignore
span.setSampleData("params", { ...params, ...query });
span.setSampleData("environment", filteredHeaders);
return res.end.apply(this, arguments);
return res.end.apply(this, args);
};

@@ -65,3 +61,3 @@ return next();

function filterHeaders(headers, appsignal) {
let filtered = {};
const filtered = {};
const headersAllowList = appsignal.config.data.requestHeaders || [];

@@ -68,0 +64,0 @@ headersAllowList.forEach(key => {

{
"name": "@appsignal/express",
"version": "1.0.26",
"version": "1.0.27",
"main": "dist/index",

@@ -13,3 +13,3 @@ "types": "dist/index",

"dependencies": {
"@appsignal/nodejs": "=2.3.2",
"@appsignal/nodejs": "=2.3.3",
"tslib": "^2.0.3"

@@ -16,0 +16,0 @@ },