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

kafkajs

Package Overview
Dependencies
Maintainers
2
Versions
299
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kafkajs - npm Package Compare versions

Comparing version 1.4.4 to 1.4.5

8

CHANGELOG.md

@@ -8,2 +8,10 @@ # Changelog

## [1.4.5] - 2018-11-28
### Fixed
- Fix crash in mitigation for receiving metadata for unsubscribed topics #221
### Added
- Add `CRASH` instrumentation event for the consumer #221
## [1.4.4] - 2018-10-29

@@ -10,0 +18,0 @@

2

package.json
{
"name": "kafkajs",
"version": "1.4.4",
"version": "1.4.5",
"description": "A modern Apache Kafka client for node.js",

@@ -5,0 +5,0 @@ "author": "Tulio Ornelas <ornelas.tulio@gmail.com>",

@@ -1158,2 +1158,5 @@ [![KafkaJS](https://raw.githubusercontent.com/tulios/kafkajs/master/logo.png)](https://github.com/tulios/kafkajs)

* consumer.events.CRASH
payload: {`error`, `groupId`}
### <a name="instrumentation-producer"></a> Producer

@@ -1160,0 +1163,0 @@

@@ -169,3 +169,4 @@ const flatten = require('../utils/flatten')

// Check if the consumer is aware of all assigned partitions
for (let topic of assignedTopics) {
const safeAssignedTopics = keys(currentMemberAssignment)
for (let topic of safeAssignedTopics) {
const assignedPartitions = currentMemberAssignment[topic]

@@ -172,0 +173,0 @@ const knownPartitions = this.partitionsPerSubscribedTopic.get(topic)

@@ -7,3 +7,3 @@ const Long = require('long')

const InstrumentationEventEmitter = require('../instrumentation/emitter')
const { CONNECT, DISCONNECT, STOP } = require('./instrumentationEvents')
const { CONNECT, DISCONNECT, STOP, CRASH } = require('./instrumentationEvents')
const { KafkaJSNonRetriableError } = require('../errors')

@@ -190,2 +190,7 @@ const { roundRobin } = require('./assigners')

instrumentationEmitter.emit(CRASH, {
error: e,
groupId,
})
if (e.name === 'KafkaJSNumberOfRetriesExceeded') {

@@ -192,0 +197,0 @@ logger.error(`Restarting the consumer in ${e.retryTime}ms`, {

@@ -14,2 +14,3 @@ const InstrumentationEventType = require('../instrumentation/eventType')

STOP: consumerType('stop'),
CRASH: consumerType('crash'),
}
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