@azteam/rabbitmq-async 1.0.181 → 1.0.182

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.
@@ -494,7 +494,7 @@ var RabbitMQAsync = /*#__PURE__*/function () {
494
494
  _context7.next = 26;
495
495
  return (0, _util.timeout)(5000);
496
496
  case 26:
497
- return _context7.abrupt("return", this.consume(queueName, cb, callbackError));
497
+ return _context7.abrupt("return", this.consume(queueName, self, asyncFunction, callbackError));
498
498
  case 27:
499
499
  _context7.next = 32;
500
500
  break;
@@ -502,7 +502,7 @@ var RabbitMQAsync = /*#__PURE__*/function () {
502
502
  _context7.next = 31;
503
503
  return (0, _util.timeout)(5000);
504
504
  case 31:
505
- return _context7.abrupt("return", this.consume(queueName, cb, callbackError));
505
+ return _context7.abrupt("return", this.consume(queueName, self, asyncFunction, callbackError));
506
506
  case 32:
507
507
  return _context7.abrupt("return", true);
508
508
  case 33:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/rabbitmq-async",
3
- "version": "1.0.181",
3
+ "version": "1.0.182",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "toda",
@@ -210,11 +210,11 @@ class RabbitMQAsync {
210
210
  } catch (err2) {}
211
211
 
212
212
  await timeout(5000);
213
- return this.consume(queueName, cb, callbackError);
213
+ return this.consume(queueName, self, asyncFunction, callbackError);
214
214
  }
215
215
  } else {
216
216
  await timeout(5000);
217
- return this.consume(queueName, cb, callbackError);
217
+ return this.consume(queueName, self, asyncFunction, callbackError);
218
218
  }
219
219
 
220
220
  return true;