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

amqp-wrapper

Package Overview
Dependencies
Maintainers
7
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amqp-wrapper - npm Package Compare versions

Comparing version 7.0.0-es6.2 to 7.0.0-es6.3

5

amqp.js
const amqp = require('amqplib');
const stringifysafe = require('json-stringify-safe');
const queueSetup = require('./lib/queue-setup');
const { promisify } = require('util');

@@ -77,7 +78,7 @@ /**

*/
async publish (routingKey, message, options) {
async publish (routingKey, message, options = {}) {
if (typeof message === 'object') {
message = stringifysafe(message);
}
return this.channel.publish(this.config.exchange, routingKey, Buffer.from(message), options);
return promisify(this.channel.publish.bind(this.channel, this.config.exchange, routingKey, Buffer.from(message), options));
}

@@ -84,0 +85,0 @@

2

package.json
{
"name": "amqp-wrapper",
"version": "7.0.0-es6.2",
"version": "7.0.0-es6.3",
"engines": {

@@ -5,0 +5,0 @@ "node": ">= 8"

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