@types/koa-pino-logger
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "@types/koa-pino-logger", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "TypeScript definitions for koa-pino-logger", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-pino-logger", | ||
"license": "MIT", | ||
@@ -28,7 +29,7 @@ "contributors": [ | ||
"@types/koa": "*", | ||
"@types/pino": "*", | ||
"@types/pino": "6.3", | ||
"@types/pino-http": "*" | ||
}, | ||
"typesPublisherContentHash": "7c25a136749130bb665a6e6d2f8128c117b1e7e9314637f5f7169e75d55bd8c8", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "cb92202bbc896b6177bff60ac430aa056d7e5a6c18d567c7f6d40b55aaee1389", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -9,5 +9,37 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-pino-logger. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-pino-logger/index.d.ts) | ||
````ts | ||
// Type definitions for koa-pino-logger 3.0 | ||
// Project: https://github.com/pinojs/koa-pino-logger, https://github.com/davidmarkclements/koa-pino-logger | ||
// Definitions by: Cameron Yan <https://github.com/khell> | ||
// Jeremy Hull <https://github.com/sourrust> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.7 | ||
import { Middleware as BaseMiddleware } from 'koa'; | ||
import { DestinationStream, Logger } from 'pino'; | ||
import { Options } from 'pino-http'; | ||
export = logger; | ||
interface Middleware extends BaseMiddleware { | ||
logger: Logger; | ||
} | ||
declare function logger( | ||
opts?: Options, | ||
stream?: DestinationStream | ||
): Middleware; | ||
declare function logger(stream?: DestinationStream): Middleware; | ||
declare module 'koa' { | ||
interface ExtendableContext { | ||
log: Logger; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 15 Oct 2020 14:45:57 GMT | ||
* Last updated: Sat, 13 Nov 2021 16:31:25 GMT | ||
* Dependencies: [@types/koa](https://npmjs.com/package/@types/koa), [@types/pino](https://npmjs.com/package/@types/pino), [@types/pino-http](https://npmjs.com/package/@types/pino-http) | ||
@@ -14,0 +46,0 @@ * Global values: none |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4723
0
49
- Removed@types/pino@7.0.5(transitive)
- Removedfast-redact@3.5.0(transitive)
- Removedpino@9.5.0(transitive)
- Removedprocess-warning@4.0.0(transitive)
- Removedquick-format-unescaped@4.0.4(transitive)
- Removedreal-require@0.2.0(transitive)
- Removedsafe-stable-stringify@2.5.0(transitive)
- Removedthread-stream@3.1.0(transitive)
Updated@types/pino@6.3