@avtechno/sfr 1.0.8 → 1.0.10

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.
@@ -39,8 +39,7 @@ export class SFRPipeline {
39
39
  if (this.comms["MQ"]) {
40
40
  //Create channels for each type of Communication Pattern
41
41
  const channels = await Promise.all(PATTERNS.map(async (v) => {
42
- const channel = await this.comms["MQ"].createChannel();
43
- const mq = TARGETED_PATTERN.includes(v) ? new TargetedMQ(channel, v) : new BroadcastMQ(channel, v);
42
+ const mq = TARGETED_PATTERN.includes(v) ? new TargetedMQ(this.comms["MQ"], v) : new BroadcastMQ(this.comms["MQ"], v);
44
43
  return [v, mq];
45
44
  }));
46
45
  this.pattern_channels = Object.fromEntries(channels);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avtechno/sfr",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "An opinionated way of writing services using ExpressJS.",
5
5
  "type": "module",
6
6
  "files": [
@@ -39,8 +39,7 @@ export class SFRPipeline {
39
39
  if(this.comms["MQ"]){
40
40
  //Create channels for each type of Communication Pattern
41
41
  const channels = await Promise.all(PATTERNS.map(async (v) => {
42
- const channel = await this.comms["MQ"].createChannel();
43
- const mq = TARGETED_PATTERN.includes(v) ? new TargetedMQ(channel, v) : new BroadcastMQ(channel, v);
42
+ const mq = TARGETED_PATTERN.includes(v) ? new TargetedMQ(this.comms["MQ"], v) : new BroadcastMQ(this.comms["MQ"], v);
44
43
 
45
44
  return [v, mq];
46
45
  }));
@@ -259,7 +259,7 @@ declare type NamespaceDeclaration = {
259
259
  declare type SFRProtocols = {
260
260
  REST?: Express;
261
261
  WS?: Server;
262
- MQ?: ChannelModel;
262
+ MQ?: Channel;
263
263
  }
264
264
 
265
265
  declare type Operation = "Read" | "Write";