@types/kafkajs
Advanced tools
Comparing version 1.4.1 to 1.8.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for kafkajs 1.4 | ||
// Type definitions for kafkajs 1.8 | ||
// Project: https://github.com/tulios/kafkajs, https://kafka.js.org | ||
@@ -74,2 +74,27 @@ // Definitions by: Michal Kaminski <https://github.com/michal-b-kaminski> | ||
export interface LoggerMessage { | ||
/** @var namespace Context from which the logger was called. */ | ||
readonly namespace: string; | ||
/** @var level Logger level. */ | ||
readonly level: logLevel; | ||
/** @var label Logger level label. */ | ||
readonly label: string; | ||
/** @var log Content of the logger entry. */ | ||
readonly log: LoggerMessageContent; | ||
} | ||
export interface LoggerMessageContent { | ||
/** @var timestamp Message timestamp. */ | ||
readonly timestamp: Date; | ||
/** @var message Message sent to the logger. */ | ||
readonly message: string; | ||
// Other possible fields in the content, that depend on the context. | ||
[key: string]: any; | ||
} | ||
export interface KafkaOptions { | ||
@@ -84,2 +109,3 @@ clientId?: string; | ||
logLevel?: logLevel; | ||
logCreator?: () => (message: LoggerMessage) => void; | ||
} | ||
@@ -86,0 +112,0 @@ |
{ | ||
"name": "@types/kafkajs", | ||
"version": "1.4.1", | ||
"version": "1.8.0", | ||
"description": "TypeScript definitions for kafkajs", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "1b1f08f3b30a47547194c812a544011e95e42881561b93ed65158721f8c232d9", | ||
"typesPublisherContentHash": "e717d1c33a714aba4103b51326bc2f8dd448f5529b82ff50f10a0c9a08d92b7a", | ||
"typeScriptVersion": "2.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 07 Mar 2019 02:36:37 GMT | ||
* Last updated: Thu, 30 May 2019 17:55:46 GMT | ||
* Dependencies: @types/node | ||
@@ -14,0 +14,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
16007
469