server-timing
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -11,8 +11,16 @@ declare module "server-timing" { | ||
export default _default; | ||
type Response = { | ||
type _Response = { | ||
startTime: (name: string, desc: string) => void; | ||
endTime: (name: string) => void; | ||
setMetric: (name: string, value: number, description?: string) => void; | ||
}; | ||
export type IsEnabledCheck = (req: e.Request, res: e.Response) => boolean | ||
export type SeverTimingResponse = e.Response & Response; | ||
export type SeverTimingResponse = e.Response & _Response; | ||
global { | ||
namespace Express { | ||
interface Response extends _Response { | ||
} | ||
} | ||
} | ||
} |
{ | ||
"name": "server-timing", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "This module can add `ServerTiming` Header to http response, and be able to use express middleware", | ||
@@ -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
24960
645