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

amqper

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amqper - npm Package Compare versions

Comparing version 0.1.15 to 0.2.0

9

lib/client.js

@@ -80,3 +80,3 @@ "use strict";

* @param {Object|Function} [options]
* @param {Function} [handler]
* @param {Function} [handler] function (err, message)
* @returns {Promise}

@@ -95,8 +95,9 @@ */

message.payload = codec.decode(message.content);
return handler(message);
}).done(function () {
return handler(null, message);
}).then(function () {
return message.ack();
}, function (err) {
}).catch(function (err) {
debug('error', 'Error thrown in routing handler, not acking message. Error: ', err.stack);
that.emit('error', err);
handler(err, message);
});

@@ -103,0 +104,0 @@ });

{
"name": "amqper",
"version": "0.1.15",
"version": "0.2.0",
"description": "A simple and elegant AMQP client for node based on amqplib.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/taoyuan/amqper",

@@ -34,3 +34,3 @@ 'use strict';

client.$promise.then(function () {
client.route('test1.:arg', {queue: 'this_is_queue_name_1'}, function (message) {
client.route('test1.:arg', {queue: 'this_is_queue_name_1'}, function (err, message) {
t.deepEqual(message.payload, data);

@@ -54,3 +54,3 @@ delayCloseClient(client, done);

client.format('msgpack');
client.route('test2.:arg', {queue: 'this_is_queue_name_2'}, function (message) {
client.route('test2.:arg', {queue: 'this_is_queue_name_2'}, function (err, message) {
t.deepEqual(message.payload, data);

@@ -57,0 +57,0 @@ delayCloseClient(client, done);

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