@pager/jackrabbit
Advanced tools
Comparing version 4.8.0 to 4.8.1
@@ -30,14 +30,2 @@ 'use strict'; | ||
if ( ready ){ | ||
const opts = Extend({}, DEFAULT_CONSUME_OPTIONS, consumeOptions); | ||
channel.consume(emitter.name, onMessage, opts, onConsume); | ||
} | ||
else { | ||
emitter.once('ready', () => { | ||
const opts = Extend({}, DEFAULT_CONSUME_OPTIONS, consumeOptions); | ||
channel.consume(emitter.name, onMessage, opts, onConsume); | ||
}); | ||
} | ||
const onMessage = (msg) => { | ||
@@ -75,2 +63,16 @@ | ||
}; | ||
if ( ready ){ | ||
const opts = Extend({}, DEFAULT_CONSUME_OPTIONS, consumeOptions); | ||
channel.consume(emitter.name, onMessage, opts, onConsume); | ||
return; | ||
} | ||
emitter.once('ready', () => { | ||
const opts = Extend({}, DEFAULT_CONSUME_OPTIONS, consumeOptions); | ||
channel.consume(emitter.name, onMessage, opts, onConsume); | ||
}); | ||
}; | ||
@@ -77,0 +79,0 @@ |
{ | ||
"name": "@pager/jackrabbit", | ||
"version": "4.8.0", | ||
"version": "4.8.1", | ||
"description": "Easy RabbitMQ for node", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
18943
504