sb-rabbitmq-provider 1.0.25 → 1.0.27

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -48,11 +48,8 @@ class RabbitMqConnection {
48
48
  return __awaiter(this, void 0, void 0, function* () {
49
49
  try {
50
50
  const connection = yield amqplib_1.default.connect(this.config);
51
- if (this.exchange && this.exchangeType) {
52
- const channel = yield this.connection.createChannel();
53
- yield channel.assertExchange(this.exchange, this.exchangeType);
54
- this.channel = channel;
55
- }
51
+ const channel = yield this.createChannel();
52
+ this.channel = channel;
56
53
  // console.log('---RabbitMQ Connection Created---')
57
54
  this.connection = connection;
58
55
  return connection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sb-rabbitmq-provider",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Pub/Sub model for RabbitMq",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",