Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

servicebus

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

servicebus - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

test/subscribe-unsubscribe.js

13

bus/rabbitmq/pubsubqueue.js

@@ -75,6 +75,11 @@ var events = require('events');

if (self.listening) {
self.listenChannel.cancel(self.subscription.consumerTag, function () {
self.emit('unlistened');
cb();
});
// cancel misses callback version so we have to use the promise
self.listenChannel
.cancel(self.subscription.consumerTag)
.then(function () {
self.emit('unlistened');
if (cb) {
cb();
}
});
} else {

@@ -81,0 +86,0 @@ self.on('listening', _unsubscribe.bind(this, cb));

@@ -10,3 +10,3 @@ {

"description": "Simple service bus for sending events between processes using amqp.",
"version": "2.0.3",
"version": "2.0.4",
"homepage": "https://github.com/mateodelnorte/servicebus",

@@ -13,0 +13,0 @@ "repository": {

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