express-perf
Advanced tools
Comparing version 1.11.1 to 1.11.2
23
index.js
@@ -114,8 +114,3 @@ var https = require('https') | ||
function finish () { | ||
if (!req.__baseRoute && !req.__layerPath) { | ||
cleanup() | ||
return | ||
} | ||
function compile () { | ||
var uri = ""; | ||
@@ -131,2 +126,5 @@ if (req.__routeStack) { | ||
} | ||
if (uri[0] !== '/') { | ||
uri = "/" + uri | ||
} | ||
@@ -142,4 +140,15 @@ var data = { | ||
return data | ||
} | ||
req.__perf = compile | ||
function finish () { | ||
if (!req.__baseRoute && !req.__layerPath) { | ||
cleanup() | ||
return | ||
} | ||
var data = compile() | ||
recordTimingData(data) | ||
if (opts.debug) { | ||
@@ -146,0 +155,0 @@ console.info('[express-perf]', data) |
{ | ||
"name": "express-perf", | ||
"version": "1.11.1", | ||
"version": "1.11.2", | ||
"description": "", | ||
@@ -20,2 +20,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"express": "^4.14.0", | ||
@@ -22,0 +23,0 @@ "mocha": "^3.1.2", |
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
40798
142
4