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

@hierotech/amqp-client

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hierotech/amqp-client - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "@hierotech/amqp-client",
"version": "0.1.0",
"version": "0.1.1",
"description": "AMQP client wrapper",

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

@@ -27,6 +27,6 @@ const amqplib = require('amqplib');

* @param {object} config.exchange Exchanges configuration
* @param {object} config.exchange.consume Consume exchange configuration
* @param {object|null} config.exchange.consume Consume exchange configuration
* @param {string} config.exchange.consume.name Consume exchange name
* @param {string} [config.exchange.consume.type=fanout] Consume exchange type
* @param {object} config.exchange.publish Publish exchange configuration
* @param {object|null} config.exchange.publish Publish exchange configuration
* @param {string} config.exchange.publish.name Publish exchange name

@@ -152,2 +152,8 @@ * @param {string} [config.exchange.publish.type=fanout] Publish exchange type

async _initConsume(connection) {
const config = this._config.exchange.consume;
if (!config) {
return null;
}
const channel = await connection.createChannel();

@@ -157,3 +163,3 @@

const {name, type} = this._config.exchange.consume;
const {name, type} = config;

@@ -170,5 +176,11 @@ await channel.assertExchange(name, type);

async _initPublish(connection) {
const config = this._config.exchange.publish;
if (!config) {
return null;
}
const channel = await connection.createChannel();
const {name, type} = this._config.exchange.publish;
const {name, type} = config;

@@ -175,0 +187,0 @@ await channel.assertExchange(name, type);

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