@pager/jackrabbit
Advanced tools
Comparing version 4.6.6 to 4.6.7
@@ -140,9 +140,8 @@ 'use strict'; | ||
function bindKey(key) { | ||
var deferred = Promise.defer(); | ||
channel.bindQueue(newQueue.name, emitter.name, key, {}, function onBind(err, ok) { | ||
if (err) return deferred.reject(err); | ||
return deferred.resolve(ok); | ||
return new Promise((resolve, reject) => { | ||
channel.bindQueue(newQueue.name, emitter.name, key, {}, function onBind(err, ok) { | ||
if (err) return reject(err); | ||
return resolve(ok); | ||
}); | ||
}); | ||
return deferred.promise; | ||
} | ||
@@ -149,0 +148,0 @@ } |
{ | ||
"name": "@pager/jackrabbit", | ||
"version": "4.6.6", | ||
"version": "4.6.7", | ||
"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
15302