amqp-wrapper
Advanced tools
Comparing version 7.0.0-es6.3 to 7.0.0-es6.4
@@ -82,3 +82,3 @@ const amqp = require('amqplib'); | ||
} | ||
return promisify(this.channel.publish.bind(this.channel, this.config.exchange, routingKey, Buffer.from(message), options)); | ||
return promisify(cb => this.channel.publish(this.config.exchange, routingKey, Buffer.from(message), options, cb)); | ||
} | ||
@@ -85,0 +85,0 @@ |
@@ -5,3 +5,3 @@ async function bindRoutingKeys (channel, exchange, queueName, keys = []) { | ||
: keys; | ||
for (let i in routingKeys) { | ||
for (const i in routingKeys) { | ||
await channel.bindQueue(queueName, exchange, routingKeys[i]); | ||
@@ -8,0 +8,0 @@ } |
{ | ||
"name": "amqp-wrapper", | ||
"version": "7.0.0-es6.3", | ||
"version": "7.0.0-es6.4", | ||
"engines": { | ||
@@ -41,3 +41,3 @@ "node": ">= 8" | ||
"sandboxed-module": "^0.3.0", | ||
"semistandard": "^12.0.1", | ||
"semistandard": "^14.0.1", | ||
"sinon": "^7.3.2", | ||
@@ -44,0 +44,0 @@ "sinon-chai": "^3.3.0" |
@@ -42,3 +42,3 @@ const SandboxedModule = require('sandboxed-module'); | ||
requires: { | ||
'amqplib': amqpLibMock.mock | ||
amqplib: amqpLibMock.mock | ||
} | ||
@@ -59,3 +59,3 @@ }); | ||
requires: { | ||
'amqplib': amqpLibMock.mock | ||
amqplib: amqpLibMock.mock | ||
} | ||
@@ -78,3 +78,3 @@ }); | ||
requires: { | ||
'amqplib': amqpLibMock.mock | ||
amqplib: amqpLibMock.mock | ||
} | ||
@@ -114,3 +114,3 @@ }); | ||
requires: { | ||
'amqplib': amqpLibMock.mock | ||
amqplib: amqpLibMock.mock | ||
} | ||
@@ -142,3 +142,3 @@ }); | ||
requires: { | ||
'amqplib': amqpLibMock.mock | ||
amqplib: amqpLibMock.mock | ||
} | ||
@@ -167,3 +167,3 @@ }); | ||
requires: { | ||
'amqplib': amqpLibMock.mock | ||
amqplib: amqpLibMock.mock | ||
} | ||
@@ -187,3 +187,3 @@ }); | ||
requires: { | ||
'amqplib': amqpLibMock.mock | ||
amqplib: amqpLibMock.mock | ||
} | ||
@@ -190,0 +190,0 @@ }); |
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
23368