@rxdi/graphql-rabbitmq-subscriptions 0.7.191-nightly.2 → 0.7.191

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.
@@ -68,13 +68,15 @@ class AmqpPubSub {
68
68
  let newRefs;
69
69
  if (refs.length === 1) {
70
70
  newRefs = [];
71
- this.unsubscribeChannelMap[subId]()
72
- .then(() => {
73
- this.logger.trace("cancelled channel from subscribing to queue '%s'", triggerName);
74
- })
75
- .catch((err) => {
76
- this.logger.error(err, "channel cancellation failed from queue '%j'", triggerName);
77
- });
71
+ if (typeof this.unsubscribeChannelMap[subId] === 'function') {
72
+ this.unsubscribeChannelMap[subId]()
73
+ .then(() => {
74
+ this.logger.trace("cancelled channel from subscribing to queue '%s'", triggerName);
75
+ })
76
+ .catch((err) => {
77
+ this.logger.error(err, "channel cancellation failed from queue '%j'", triggerName);
78
+ });
79
+ }
78
80
  }
79
81
  else {
80
82
  const index = refs.indexOf(subId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/graphql-rabbitmq-subscriptions",
3
- "version": "0.7.191-nightly.2",
3
+ "version": "0.7.191",
4
4
  "description": "A graphql-subscriptions PubSub Engine using RabbitMQ",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "lint": "tslint ./src/**/*.ts"
25
25
  },
26
26
  "dependencies": {
27
- "@rxdi/rabbitmq-pubsub": "^0.7.191-nightly.1",
27
+ "@rxdi/rabbitmq-pubsub": "^0.7.190",
28
28
  "graphql-subscriptions": "^3.0.0"
29
29
  },
30
30
  "devDependencies": {