express-perf
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -104,2 +104,7 @@ var https = require('https') | ||
function finish () { | ||
var uri = (req.__baseRoute + req.route.path).replace(/:([^\/]*)/ig, '*') | ||
if (uri[uri.length - 1] === "/") { | ||
uri = uri.substring(0, uri.length - 1) | ||
} | ||
var data = { | ||
@@ -109,3 +114,3 @@ ip_addr: req.headers['x-forwarded-for'] || req.connection.remoteAddress, | ||
request_url: req.protocol + '://' + req.get('host') + req.originalUrl, | ||
normalized_uri: (req.__baseRoute + req.route.path).replace(/:([^\/]*)/ig, '*'), | ||
normalized_uri: uri, | ||
status_code: res.statusCode, | ||
@@ -112,0 +117,0 @@ time_in_millis: (new Date().getTime()) - startTime |
{ | ||
"name": "express-perf", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39984
115