@azteam/rabbitmq-async 1.0.125 → 1.0.134

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/rabbitmq-async",
3
- "version": "1.0.125",
3
+ "version": "1.0.134",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "engines": {
@@ -17,6 +17,6 @@
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
19
  "@azteam/util": "1.0.13",
20
- "amqplib": "0.10.1"
20
+ "amqplib": "0.8.0"
21
21
  }
22
22
  }
@@ -105,11 +105,9 @@ class RabbitMQAsync {
105
105
  let channel = null;
106
106
  try {
107
107
  channel = await this.client.createChannel();
108
- const queueInfo = await channel.assertQueue(prefixQueueName, {
108
+ return await channel.assertQueue(prefixQueueName, {
109
109
  durable: true,
110
110
  });
111
-
112
- return queueInfo;
113
111
  } catch (err) {
114
112
  return this.getInfo(queueName);
115
113
  } finally {