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

rabbitmq-eventemitter

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rabbitmq-eventemitter - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

timeout.js

17

index.js

@@ -13,2 +13,4 @@ var util = require('util');

var nextTick = process.nextTick;
var Queue = function(url, options) {

@@ -26,2 +28,7 @@ if(!(this instanceof Queue)) return new Queue(url, options);

var onclose = function(err) {
if(err) onerror(err);
self.emit('close');
};
this._getConnection = thunky(function(callback) {

@@ -31,3 +38,9 @@ amqp.connect(url, options.connectOptions, function(err, connection) {

connection.on('error', onerror);
connection.on('error', function(err) {
nextTick(onerror, err);
});
connection.on('close', function(err) {
nextTick(onclose, err);
});
callback(null, connection);

@@ -138,3 +151,3 @@ });

// channel.consume eats uncaught exceptions
process.nextTick(function() {
nextTick(function() {
var data = JSON.parse(message.content.toString());

@@ -141,0 +154,0 @@ var onresponse = function(err) {

4

package.json
{
"name": "rabbitmq-eventemitter",
"version": "1.3.1",
"version": "1.4.0",
"description": "Simplified rabbitmq events",

@@ -23,3 +23,3 @@ "main": "index.js",

"after-all": "^2.0.2",
"amqplib": "^0.3.2",
"amqplib": "^0.5.0",
"once": "^1.3.2",

@@ -26,0 +26,0 @@ "randomstring": "^1.0.7",

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