@onify/fake-amqplib 0.9.0 → 0.9.1

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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@ Changelog
3
3
 
4
4
  # 0.9.0
5
5
 
6
- - support url object
6
+ - support connecting with urlish object
7
7
  - smqp@6
8
8
 
9
9
  # 0.8.5
package/index.js CHANGED
@@ -148,9 +148,9 @@ function Fake(minorVersion) {
148
148
  function assertQueue(queueName, ...args) {
149
149
  const name = queueName ? queueName : 'amqp.gen-' + generateId();
150
150
  const options = typeof args[0] === 'object' ? args.shift() : {};
151
- const queue = broker.assertQueue(queueName, {...options, _connectionId: connection._id}, ...args);
151
+ const queue = broker.assertQueue(name, {...options, _connectionId: connection._id}, ...args);
152
152
  return {
153
- ...(!queueName ? {queue: name} : undefined),
153
+ queue: name,
154
154
  messageCount: queue.messageCount,
155
155
  consumerCount: queue.consumerCount,
156
156
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onify/fake-amqplib",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Fake amqplib",
5
5
  "main": "index.js",
6
6
  "scripts": {