rascal 15.0.0 → 15.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 15.0.1
4
+
5
+ - Fix MaxListenersExceeded warning when there are more than 10 vhosts - See https://github.com/guidesmiths/rascal/issues/206
6
+
3
7
  ## 15.0.0
4
8
 
5
9
  - Drop support for Node 10
@@ -6,6 +6,8 @@ const Vhost = require('../Vhost');
6
6
 
7
7
  module.exports = _.curry((config, ctx, next) => {
8
8
  ctx.vhosts = {};
9
+ const maxListeners = Math.max(ctx.broker.getMaxListeners(), Object.keys(config.vhosts).length);
10
+ ctx.broker.setMaxListeners(maxListeners);
9
11
  async.eachSeries(
10
12
  _.values(config.vhosts),
11
13
  (vhostConfig, callback) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rascal",
3
- "version": "15.0.0",
3
+ "version": "15.0.1",
4
4
  "description": "A config driven wrapper for amqplib supporting multi-host connections, automatic error recovery, redelivery flood protection, transparent encryption / decryption, channel pooling and publication timeouts",
5
5
  "main": "index.js",
6
6
  "dependencies": {