Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/kafkajs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/kafkajs - npm Package Compare versions

Comparing version 1.4.1 to 1.8.0

28

kafkajs/index.d.ts

@@ -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 @@

4

kafkajs/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc