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

kafka-observe

Package Overview
Dependencies
Maintainers
3
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kafka-observe - npm Package Compare versions

Comparing version 2.1.1-beta-14 to 2.1.1-beta-15

2

package.json
{
"name": "kafka-observe",
"version": "2.1.1-beta-14",
"version": "2.1.1-beta-15",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -126,2 +126,18 @@ # kafka-observe

## streamReader
Helper to convert consumed stream data to json object. needs to be initialized and returns a function that can be used to read the consumed data parts
```javascript
const { streamReader } = require("kafka-observe")(options);
const _streamReader = streamReader();
_streamReader({
event: {},
id: "uniqueId",
onStatus: (status) => console.log(status) // A callback to receive status about the stream
}).then((event) => {
// do something with the event
});
```
## streamCallback

@@ -128,0 +144,0 @@

const { expect } = require("chai");
const { timerHelpers } = require("../helpers");
const { timerHelpers } = require("../../../helpers");

@@ -5,0 +5,0 @@ describe("Timer helpers", function () {

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