@highoutput/amqp
Advanced tools
Comparing version 0.5.10 to 0.5.12
@@ -24,2 +24,3 @@ import Client, { ClientOptions } from './lib/client'; | ||
private options; | ||
private container; | ||
private connection; | ||
@@ -26,0 +27,0 @@ private workers; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const rhea_1 = __importDefault(require("rhea")); | ||
const rhea_1 = require("rhea"); | ||
const ramda_1 = __importDefault(require("ramda")); | ||
@@ -24,2 +24,3 @@ const uuid_1 = __importDefault(require("uuid")); | ||
constructor(options) { | ||
this.container = rhea_1.create_container(); | ||
this.workers = new Map(); | ||
@@ -36,3 +37,3 @@ this.clients = new Map(); | ||
logger_1.default.tag(['amqp', 'options']).info(ramda_1.default.omit(['password'], this.options)); | ||
this.connection = rhea_1.default.connect(Object.assign(Object.assign({}, this.options), { reconnect: true, initial_reconnect_delay: this.options.initialReconnectDelay, max_reconnect_delay: this.options.maxReconnectDelay })); | ||
this.connection = this.container.connect(Object.assign(Object.assign({}, this.options), { reconnect: true, initial_reconnect_delay: this.options.initialReconnectDelay, max_reconnect_delay: this.options.maxReconnectDelay })); | ||
this.connection.setMaxListeners(100); | ||
@@ -39,0 +40,0 @@ this.connection.on('connection_open', () => { |
{ | ||
"name": "@highoutput/amqp", | ||
"version": "0.5.10", | ||
"version": "0.5.12", | ||
"description": "A simplified abstraction of the AMQP 1.0 protocol", | ||
@@ -57,3 +57,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "388890e79c85e4bd0f931c9290e6502e9f4c8fb8" | ||
"gitHead": "9720b91d1e6c66dd6a0d2939cc923ae54e42936e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69311
872
1