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

elytron

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elytron - npm Package Compare versions

Comparing version 2.3.5 to 2.3.6

6

dist/src/produce/index.js

@@ -49,8 +49,10 @@ 'use strict';

var handle_producer_close = function handle_producer_close(code, message_file_path, callback) {
(0, _logger.log)('Producer exited with code: ' + code);
var out = code == 0 ? _logger.log : _logger.error;
out('Producer exited with code: ' + code);
_fs2.default.unlink(message_file_path, function (err) {
if (err) throw err;
if (callback) callback();
return true;
});
if (callback) callback(code);
return code;
};

@@ -57,0 +59,0 @@

{
"name": "elytron",
"version": "2.3.5",
"version": "2.3.6",
"description": "An interface for Kafka in Node",

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

import fs from 'fs';
import uuid from 'uuid';
import { log } from '../../lib/logger';
import { log, error } from '../../lib/logger';
import { BrokerError } from '../../lib/error';

@@ -30,8 +30,10 @@ import { kafkacat, tmp, brokers } from '../../lib/run';

const handle_producer_close = (code, message_file_path, callback) => {
log(`Producer exited with code: ${code}`);
const out = code == 0 ? log : error;
out(`Producer exited with code: ${code}`);
fs.unlink(message_file_path, (err) => {
if (err) throw err;
if (callback) callback();
return true;
});
if (callback) callback(code);
return code;
};

@@ -38,0 +40,0 @@

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