You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

amqp-connection-manager

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.0 to 3.4.1

15

dist/cjs/AmqpConnectionManager.js

@@ -54,2 +54,10 @@ "use strict";

this._closed = false;
/**
* Keep track of whether a disconnect event has been sent or not. The problem
* is that if we've never connected, and we encounter an error, we want to
* generate a "disconnect" event, even though we're not disconnected, otherwise
* the caller will never know there was an error. So we can't just rely on
* this._currentConnection.
*/
this._disconnectSent = false;
if (!urls && !options.findServers) {

@@ -204,2 +212,3 @@ throw new Error('Must supply either `urls` or `findServers`');

this._currentConnection = undefined;
this._disconnectSent = true;
this.emit('disconnect', { err });

@@ -214,2 +223,3 @@ const handle = helpers_js_1.wait(this.reconnectTimeInSeconds * 1000);

this._connectPromise = undefined;
this._disconnectSent = false;
this.emit('connect', { connection, url: originalUrl });

@@ -219,3 +229,6 @@ });

.catch((err) => {
this.emit('disconnect', { err });
if (!this._disconnectSent) {
this._disconnectSent = true;
this.emit('disconnect', { err });
}
// Connection failed...

@@ -222,0 +235,0 @@ this._currentConnection = undefined;

@@ -77,2 +77,10 @@ /// <reference types="node" />

private _urls?;
/**
* Keep track of whether a disconnect event has been sent or not. The problem
* is that if we've never connected, and we encounter an error, we want to
* generate a "disconnect" event, even though we're not disconnected, otherwise
* the caller will never know there was an error. So we can't just rely on
* this._currentConnection.
*/
private _disconnectSent;
connectionOptions: AmpqConnectionOptions | undefined;

@@ -79,0 +87,0 @@ heartbeatIntervalInSeconds: number;

@@ -49,2 +49,10 @@ import amqp from 'amqplib';

this._closed = false;
/**
* Keep track of whether a disconnect event has been sent or not. The problem
* is that if we've never connected, and we encounter an error, we want to
* generate a "disconnect" event, even though we're not disconnected, otherwise
* the caller will never know there was an error. So we can't just rely on
* this._currentConnection.
*/
this._disconnectSent = false;
if (!urls && !options.findServers) {

@@ -199,2 +207,3 @@ throw new Error('Must supply either `urls` or `findServers`');

this._currentConnection = undefined;
this._disconnectSent = true;
this.emit('disconnect', { err });

@@ -209,2 +218,3 @@ const handle = wait(this.reconnectTimeInSeconds * 1000);

this._connectPromise = undefined;
this._disconnectSent = false;
this.emit('connect', { connection, url: originalUrl });

@@ -214,3 +224,6 @@ });

.catch((err) => {
this.emit('disconnect', { err });
if (!this._disconnectSent) {
this._disconnectSent = true;
this.emit('disconnect', { err });
}
// Connection failed...

@@ -217,0 +230,0 @@ this._currentConnection = undefined;

2

package.json
{
"name": "amqp-connection-manager",
"version": "3.4.0",
"version": "3.4.1",
"description": "Auto-reconnect and round robin support for amqplib.",

@@ -5,0 +5,0 @@ "module": "./dist/esm/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc