@appsignal/express
Advanced tools
Comparing version
@@ -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 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
-100%6889
-3.03%80
-4.76%Updated