New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

quintoandar-kafka

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quintoandar-kafka - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

2

package.json
{
"name": "quintoandar-kafka",
"version": "0.0.12",
"version": "0.0.13",
"description": "Default Kafka NodeJS lib for QuintoAndar",

@@ -5,0 +5,0 @@ "main": "src/main.js",

@@ -28,3 +28,3 @@ const kafka = require('kafka-node');

this.client = new kafka.KafkaClient(this.configs);
this.producer = new kafka.HighLevelProducer(this.client, this.configs);
this.producer = new kafka.HighLevelProducer(this.client);
this.producer.on('error', logger.error);

@@ -48,3 +48,2 @@ this.readyPromisse = new Promise((resolve) => {

this.producer.send([payload], (err, data) => {
logger.debug(data);
if (err) {

@@ -51,0 +50,0 @@ reject(err);

@@ -36,3 +36,2 @@ jest.mock('node-rdkafka');

expect(producer.client.configs).toEqual(fullConfigs);
expect(producer.producer.configs).toEqual(fullConfigs);
expect(producer.producer.client).toBe(producer.client);

@@ -39,0 +38,0 @@ done();

@@ -15,2 +15,13 @@ import { Writable } from 'stream';

init(): void
}
export class KafkaProducerOptions {
configs: KafkaClientOptions;
topic: string;
}
export class KafkaProducer {
constructor(options: KafkaProducerOptions)
send(msg: string): Promise<string>;
}
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