@types/bunyan
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -14,3 +14,3 @@ // Type definitions for node-bunyan | ||
addStream(stream: Stream): void; | ||
addSerializers(serializers: Serializers): void; | ||
addSerializers(serializers:Serializers | StdSerializers):void; | ||
child(options: LoggerOptions, simple?: boolean): Logger; | ||
@@ -25,3 +25,3 @@ child(obj: Object, simple?: boolean): Logger; | ||
fields: any; | ||
src: boolean; | ||
src:boolean; | ||
@@ -63,4 +63,14 @@ trace(error: Error, format?: any, ...params: any[]): void; | ||
interface Serializer { | ||
(input:any): any; | ||
} | ||
interface Serializers { | ||
[key: string]: (input: any) => string; | ||
[key:string]: Serializer; | ||
} | ||
interface StdSerializers { | ||
err: Serializer; | ||
res: Serializer; | ||
req: Serializer; | ||
} | ||
@@ -78,3 +88,3 @@ | ||
export declare var stdSerializers: Serializers; | ||
export var stdSerializers:StdSerializers; | ||
@@ -81,0 +91,0 @@ export declare var TRACE: number; |
{ | ||
"name": "@types/bunyan", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "TypeScript definitions for node-bunyan", | ||
@@ -16,4 +16,5 @@ "license": "MIT", | ||
}, | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "4bde7dfbc3b93b4a9b4ea9bd07fc3d7250027078f54531ce9b778212552fafcd" | ||
"typesPublisherContentHash": "ac720b11d5fabeda226bf7a463fb25846c15cd60dda63f1fbf1cf140875b36df" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 16:15:24 GMT | ||
* Last updated: Wed, 26 Oct 2016 19:23:25 GMT | ||
* File structure: ProperModule | ||
@@ -14,0 +14,0 @@ * Library Dependencies: node |
@@ -29,3 +29,3 @@ { | ||
"hasPackageJson": false, | ||
"contentHash": "4bde7dfbc3b93b4a9b4ea9bd07fc3d7250027078f54531ce9b778212552fafcd" | ||
"contentHash": "ac720b11d5fabeda226bf7a463fb25846c15cd60dda63f1fbf1cf140875b36df" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5705
122
0