@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 +2 -2
- package/src/RabbitMQAsync.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azteam/rabbitmq-async",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
20
|
+
"amqplib": "0.8.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/src/RabbitMQAsync.js
CHANGED
|
@@ -105,11 +105,9 @@ class RabbitMQAsync {
|
|
|
105
105
|
let channel = null;
|
|
106
106
|
try {
|
|
107
107
|
channel = await this.client.createChannel();
|
|
108
|
-
|
|
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 {
|