@modern-js/types
Advanced tools
Comparing version 1.5.1 to 1.5.2
# @modern-js/types | ||
## 1.5.2 | ||
### Patch Changes | ||
- a4c5fe78: fix test case | ||
- 6fa74d5f: add internal metrics and logger | ||
## 1.5.1 | ||
@@ -4,0 +11,0 @@ |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"types": "./index.d.ts", | ||
@@ -17,0 +17,0 @@ "dependencies": { |
@@ -62,4 +62,19 @@ import { IncomingMessage, ServerResponse, IncomingHttpHeaders } from 'http'; | ||
entryName: string; | ||
logger: Logger; | ||
metrics?: Metrics; | ||
logger: { | ||
error: (message: string, e: Error | string) => void; | ||
debug: (message: string, ...args: any[]) => void; | ||
info: (message: string, ...args: any[]) => void; | ||
}; | ||
metrics: { | ||
emitTimer: ( | ||
name: string, | ||
cost: number, | ||
tags: Record<string, unknown> = {}, | ||
) => void; | ||
emitCounter: ( | ||
name: string, | ||
counter: number, | ||
tags: Record<string, unknown> = {}, | ||
) => void; | ||
}; | ||
loadableManifest?: string; | ||
@@ -66,0 +81,0 @@ cacheConfig?: any; |
import { IncomingMessage, ServerResponse } from 'http'; | ||
export type Metrics = { | ||
counter: () => void; | ||
timer: () => void; | ||
emitCounter: (name: string, value: number, tags: Record<string, any>) => void; | ||
emitTimer: (name: string, value: number, tags: Record<string, any>) => void; | ||
gauges: () => void; | ||
@@ -7,0 +7,0 @@ }; |
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
21101
316