@artstesh/postboy 3.2.0 → 3.3.0

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 (76) hide show
  1. package/lib/index.d.ts +1 -0
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +1 -0
  4. package/lib/index.js.map +1 -1
  5. package/lib/messages/add-middleware.executor.d.ts +19 -0
  6. package/lib/messages/add-middleware.executor.d.ts.map +1 -0
  7. package/lib/messages/add-middleware.executor.js +24 -0
  8. package/lib/messages/add-middleware.executor.js.map +1 -0
  9. package/lib/messages/add-namespace.executor.d.ts +19 -0
  10. package/lib/messages/add-namespace.executor.d.ts.map +1 -0
  11. package/lib/messages/add-namespace.executor.js +24 -0
  12. package/lib/messages/add-namespace.executor.js.map +1 -0
  13. package/lib/messages/connect-executor.executor.d.ts +25 -0
  14. package/lib/messages/connect-executor.executor.d.ts.map +1 -0
  15. package/lib/messages/connect-executor.executor.js +30 -0
  16. package/lib/messages/connect-executor.executor.js.map +1 -0
  17. package/lib/messages/connect-handler.executor.d.ts +25 -0
  18. package/lib/messages/connect-handler.executor.d.ts.map +1 -0
  19. package/lib/messages/connect-handler.executor.js +30 -0
  20. package/lib/messages/connect-handler.executor.js.map +1 -0
  21. package/lib/messages/connect-message.executor.d.ts +28 -0
  22. package/lib/messages/connect-message.executor.d.ts.map +1 -0
  23. package/lib/messages/connect-message.executor.js +31 -0
  24. package/lib/messages/connect-message.executor.js.map +1 -0
  25. package/lib/messages/connect.message.executor.d.ts +28 -0
  26. package/lib/messages/connect.message.executor.d.ts.map +1 -0
  27. package/lib/messages/connect.message.executor.js +31 -0
  28. package/lib/messages/connect.message.executor.js.map +1 -0
  29. package/lib/messages/disconnect-message.executor.d.ts +19 -0
  30. package/lib/messages/disconnect-message.executor.d.ts.map +1 -0
  31. package/lib/messages/disconnect-message.executor.js +25 -0
  32. package/lib/messages/disconnect-message.executor.js.map +1 -0
  33. package/lib/messages/eliminate-namespace.executor.d.ts +16 -0
  34. package/lib/messages/eliminate-namespace.executor.d.ts.map +1 -0
  35. package/lib/messages/eliminate-namespace.executor.js +22 -0
  36. package/lib/messages/eliminate-namespace.executor.js.map +1 -0
  37. package/lib/messages/index.d.ts +11 -0
  38. package/lib/messages/index.d.ts.map +1 -0
  39. package/lib/messages/index.js +24 -0
  40. package/lib/messages/index.js.map +1 -0
  41. package/lib/messages/lock-message.executor.d.ts +22 -0
  42. package/lib/messages/lock-message.executor.d.ts.map +1 -0
  43. package/lib/messages/lock-message.executor.js +26 -0
  44. package/lib/messages/lock-message.executor.js.map +1 -0
  45. package/lib/messages/remove-middleware.executor.d.ts +17 -0
  46. package/lib/messages/remove-middleware.executor.d.ts.map +1 -0
  47. package/lib/messages/remove-middleware.executor.js +22 -0
  48. package/lib/messages/remove-middleware.executor.js.map +1 -0
  49. package/lib/messages/unlock-message.executor.d.ts +21 -0
  50. package/lib/messages/unlock-message.executor.d.ts.map +1 -0
  51. package/lib/messages/unlock-message.executor.js +25 -0
  52. package/lib/messages/unlock-message.executor.js.map +1 -0
  53. package/lib/models/postboy-subscription.d.ts +1 -1
  54. package/lib/models/postboy-subscription.d.ts.map +1 -1
  55. package/lib/models/postboy-subscription.js +1 -1
  56. package/lib/models/postboy-subscription.js.map +1 -1
  57. package/lib/postboy-abstract.registrator.d.ts.map +1 -1
  58. package/lib/postboy-abstract.registrator.js +11 -5
  59. package/lib/postboy-abstract.registrator.js.map +1 -1
  60. package/lib/postboy.service.d.ts +14 -5
  61. package/lib/postboy.service.d.ts.map +1 -1
  62. package/lib/postboy.service.js +57 -27
  63. package/lib/postboy.service.js.map +1 -1
  64. package/lib/services/postboy-context.service.d.ts +1 -0
  65. package/lib/services/postboy-context.service.d.ts.map +1 -1
  66. package/lib/services/postboy-context.service.js +3 -0
  67. package/lib/services/postboy-context.service.js.map +1 -1
  68. package/lib/services/postboy-dependency.resolver.d.ts +1 -5
  69. package/lib/services/postboy-dependency.resolver.d.ts.map +1 -1
  70. package/lib/services/postboy-dependency.resolver.js +1 -4
  71. package/lib/services/postboy-dependency.resolver.js.map +1 -1
  72. package/lib/services/postboy-namespace.store.d.ts +5 -6
  73. package/lib/services/postboy-namespace.store.d.ts.map +1 -1
  74. package/lib/services/postboy-namespace.store.js +7 -7
  75. package/lib/services/postboy-namespace.store.js.map +1 -1
  76. package/package.json +2 -1
@@ -0,0 +1,17 @@
1
+ import { PostboyMiddleware } from '../models/postboy-middleware';
2
+ import { PostboyExecutor } from '../models/postboy-executor';
3
+ /**
4
+ * Represents a class responsible for removing {@link PostboyMiddleware} in execution flow.
5
+ * This class extends PostboyExecutor and operates with a void return type.
6
+ */
7
+ export declare class RemoveMiddleware extends PostboyExecutor<void> {
8
+ middleware: PostboyMiddleware;
9
+ static readonly ID = "c25c708c-53c9-498d-a28b-936fbaf68b91";
10
+ /**
11
+ * Constructs an instance of the class with the specified middleware.
12
+ *
13
+ * @param {PostboyMiddleware} middleware - The {@link PostboyMiddleware} instance to be removed.
14
+ */
15
+ constructor(middleware: PostboyMiddleware);
16
+ }
17
+ //# sourceMappingURL=remove-middleware.executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-middleware.executor.d.ts","sourceRoot":"","sources":["../../src/messages/remove-middleware.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,eAAe,CAAC,IAAI,CAAC;IAQtC,UAAU,EAAE,iBAAiB;IAPhD,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;OAIG;gBACgB,UAAU,EAAE,iBAAiB;CAGjD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoveMiddleware = void 0;
4
+ const postboy_executor_1 = require("../models/postboy-executor");
5
+ /**
6
+ * Represents a class responsible for removing {@link PostboyMiddleware} in execution flow.
7
+ * This class extends PostboyExecutor and operates with a void return type.
8
+ */
9
+ class RemoveMiddleware extends postboy_executor_1.PostboyExecutor {
10
+ /**
11
+ * Constructs an instance of the class with the specified middleware.
12
+ *
13
+ * @param {PostboyMiddleware} middleware - The {@link PostboyMiddleware} instance to be removed.
14
+ */
15
+ constructor(middleware) {
16
+ super();
17
+ this.middleware = middleware;
18
+ }
19
+ }
20
+ exports.RemoveMiddleware = RemoveMiddleware;
21
+ RemoveMiddleware.ID = 'c25c708c-53c9-498d-a28b-936fbaf68b91';
22
+ //# sourceMappingURL=remove-middleware.executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-middleware.executor.js","sourceRoot":"","sources":["../../src/messages/remove-middleware.executor.ts"],"names":[],"mappings":";;;AACA,iEAA6D;AAE7D;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,kCAAqB;IAGzD;;;;OAIG;IACH,YAAmB,UAA6B;QAC9C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAmB;IAEhD,CAAC;;AAVH,4CAWC;AAViB,mBAAE,GAAG,sCAAsC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { PostboyGenericMessage } from '../models/postboy-generic-message';
2
+ import { PostboyExecutor } from '../models/postboy-executor';
3
+ import { MessageType } from '../postboy-abstract.registrator';
4
+ /**
5
+ * A specialized executor that handles the unlocking process for messages of a specified type.
6
+ * Unlocks a previously locked message, making it available for processing again.
7
+ *
8
+ * @template T - The type parameter extending {@link PostboyGenericMessage}, representing the message type handled by the executor.
9
+ * @extends {PostboyExecutor<void>}
10
+ */
11
+ export declare class UnlockMessage<T extends PostboyGenericMessage> extends PostboyExecutor<void> {
12
+ type: MessageType<T>;
13
+ static readonly ID = "d71d25e3-90ac-4009-b972-9e6c6b05611e";
14
+ /**
15
+ * Creates an instance of the class with the specified message type.
16
+ *
17
+ * @param {MessageType<T>} type - The message type for this instance.
18
+ */
19
+ constructor(type: MessageType<T>);
20
+ }
21
+ //# sourceMappingURL=unlock-message.executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlock-message.executor.d.ts","sourceRoot":"","sources":["../../src/messages/unlock-message.executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D;;;;;;GAMG;AACH,qBAAa,aAAa,CAAC,CAAC,SAAS,qBAAqB,CAAE,SAAQ,eAAe,CAAC,IAAI,CAAC;IAQpE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IAPvC,MAAM,CAAC,QAAQ,CAAC,EAAE,0CAA0C;IAE5D;;;;OAIG;gBACgB,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;CAGxC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnlockMessage = void 0;
4
+ const postboy_executor_1 = require("../models/postboy-executor");
5
+ /**
6
+ * A specialized executor that handles the unlocking process for messages of a specified type.
7
+ * Unlocks a previously locked message, making it available for processing again.
8
+ *
9
+ * @template T - The type parameter extending {@link PostboyGenericMessage}, representing the message type handled by the executor.
10
+ * @extends {PostboyExecutor<void>}
11
+ */
12
+ class UnlockMessage extends postboy_executor_1.PostboyExecutor {
13
+ /**
14
+ * Creates an instance of the class with the specified message type.
15
+ *
16
+ * @param {MessageType<T>} type - The message type for this instance.
17
+ */
18
+ constructor(type) {
19
+ super();
20
+ this.type = type;
21
+ }
22
+ }
23
+ exports.UnlockMessage = UnlockMessage;
24
+ UnlockMessage.ID = 'd71d25e3-90ac-4009-b972-9e6c6b05611e';
25
+ //# sourceMappingURL=unlock-message.executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlock-message.executor.js","sourceRoot":"","sources":["../../src/messages/unlock-message.executor.ts"],"names":[],"mappings":";;;AACA,iEAA6D;AAG7D;;;;;;GAMG;AACH,MAAa,aAA+C,SAAQ,kCAAqB;IAGvF;;;;OAIG;IACH,YAAmB,IAAoB;QACrC,KAAK,EAAE,CAAC;QADS,SAAI,GAAJ,IAAI,CAAgB;IAEvC,CAAC;;AAVH,sCAWC;AAViB,gBAAE,GAAG,sCAAsC,CAAC"}
@@ -15,7 +15,7 @@ export declare class PostboySubscription<T> {
15
15
  * @param {Subject<T>} subscription - The source Subject that will be transformed.
16
16
  * @param {(s: Subject<T>) => Observable<T>} pipe - A function that applies a transformation to the subscription.
17
17
  */
18
- constructor(subscription: Subject<T>, pipe: (s: Subject<T>) => Observable<T>);
18
+ constructor(subscription: Subject<T>, pipe?: (s: Subject<T>) => Observable<T>);
19
19
  /**
20
20
  * Returns an observable subscription.
21
21
  *
@@ -1 +1 @@
1
- {"version":3,"file":"postboy-subscription.d.ts","sourceRoot":"","sources":["../../src/models/postboy-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE3C;;;;;;GAMG;AACH,qBAAa,mBAAmB,CAAC,CAAC;IAU9B,OAAO,CAAC,YAAY;IATtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAE9C;;;;;OAKG;gBAEO,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,EAChC,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC;IAKxC;;;;OAIG;IACI,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC;IAI3B;;;;;OAKG;IACI,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAI1B;;;;OAIG;IACI,MAAM,IAAI,IAAI;CAGtB"}
1
+ {"version":3,"file":"postboy-subscription.d.ts","sourceRoot":"","sources":["../../src/models/postboy-subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE3C;;;;;;GAMG;AACH,qBAAa,mBAAmB,CAAC,CAAC;IAU9B,OAAO,CAAC,YAAY;IATtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAE9C;;;;;OAKG;gBAEO,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,EAChC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC;IAKzC;;;;OAIG;IACI,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC;IAI3B;;;;;OAKG;IACI,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAI1B;;;;OAIG;IACI,MAAM,IAAI,IAAI;CAGtB"}
@@ -17,7 +17,7 @@ class PostboySubscription {
17
17
  */
18
18
  constructor(subscription, pipe) {
19
19
  this.subscription = subscription;
20
- this._subscription = pipe(subscription);
20
+ this._subscription = !!pipe ? pipe(subscription) : subscription.asObservable();
21
21
  }
22
22
  /**
23
23
  * Returns an observable subscription.
@@ -1 +1 @@
1
- {"version":3,"file":"postboy-subscription.js","sourceRoot":"","sources":["../../src/models/postboy-subscription.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,MAAa,mBAAmB;IAG9B;;;;;OAKG;IACH,YACU,YAAwB,EAChC,IAAsC;QAD9B,iBAAY,GAAZ,YAAY,CAAY;QAGhC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACI,GAAG;QACR,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED;;;;;OAKG;IACI,IAAI,CAAC,IAAO;QACjB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACI,MAAM;QACX,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;CACF;AA3CD,kDA2CC"}
1
+ {"version":3,"file":"postboy-subscription.js","sourceRoot":"","sources":["../../src/models/postboy-subscription.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,MAAa,mBAAmB;IAG9B;;;;;OAKG;IACH,YACU,YAAwB,EAChC,IAAuC;QAD/B,iBAAY,GAAZ,YAAY,CAAY;QAGhC,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IACjF,CAAC;IAED;;;;OAIG;IACI,GAAG;QACR,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED;;;;;OAKG;IACI,IAAI,CAAC,IAAO;QACjB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACI,MAAM;QACX,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;CACF;AA3CD,kDA2CC"}
@@ -1 +1 @@
1
- {"version":3,"file":"postboy-abstract.registrator.d.ts","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAmB,UAAU,EAAuB,OAAO,EAAE,MAAM,MAAM,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAW,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,qBAAqB,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;A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AS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,0BAA0B;IAKpH;;;;;;OAMG;IACI,aAAa,CAAC,CAAC,SAAS,qBAAqB,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;CAI3E"}
@@ -4,6 +4,10 @@ exports.PostboyAbstractRegistrator = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const postboy_generic_message_1 = require("./models/postboy-generic-message");
6
6
  const id_generator_1 = require("./utils/id.generator");
7
+ const connect_message_executor_1 = require("./messages/connect-message.executor");
8
+ const disconnect_message_executor_1 = require("./messages/disconnect-message.executor");
9
+ const connect_executor_executor_1 = require("./messages/connect-executor.executor");
10
+ const connect_handler_executor_1 = require("./messages/connect-handler.executor");
7
11
  class PostboyAbstractRegistrator {
8
12
  get namespace() {
9
13
  return this._namespace;
@@ -36,7 +40,7 @@ class PostboyAbstractRegistrator {
36
40
  down() {
37
41
  this.services.forEach((s) => !!s.down && s.down());
38
42
  this.services = [];
39
- this.ids.forEach((id) => this.postboy.unregister(id));
43
+ this.ids.forEach((id) => this.postboy.exec(new disconnect_message_executor_1.DisconnectMessage(id)));
40
44
  }
41
45
  /**
42
46
  * Records a type and its corresponding Subject<T> into the Postboy system and updates the internal identifiers.
@@ -47,7 +51,7 @@ class PostboyAbstractRegistrator {
47
51
  */
48
52
  record(type, sub) {
49
53
  this.ids.push((0, postboy_generic_message_1.checkId)(type));
50
- this.postboy.record(type, sub);
54
+ this.postboy.exec(new connect_message_executor_1.ConnectMessage(type, sub));
51
55
  return this;
52
56
  }
53
57
  /**
@@ -60,7 +64,7 @@ class PostboyAbstractRegistrator {
60
64
  */
61
65
  recordWithPipe(type, sub, pipe) {
62
66
  this.ids.push((0, postboy_generic_message_1.checkId)(type));
63
- this.postboy.recordWithPipe(type, sub, pipe);
67
+ this.postboy.exec(new connect_message_executor_1.ConnectMessage(type, sub, pipe));
64
68
  return this;
65
69
  }
66
70
  /**
@@ -71,7 +75,8 @@ class PostboyAbstractRegistrator {
71
75
  * @return void
72
76
  */
73
77
  recordExecutor(type, exec) {
74
- this.postboy.recordExecutor(type, exec);
78
+ this.ids.push((0, postboy_generic_message_1.checkId)(type));
79
+ this.postboy.exec(new connect_executor_executor_1.ConnectExecutor(type, exec));
75
80
  return this;
76
81
  }
77
82
  /**
@@ -82,7 +87,8 @@ class PostboyAbstractRegistrator {
82
87
  * @return void
83
88
  */
84
89
  recordHandler(executor, handler) {
85
- this.postboy.recordHandler(executor, handler);
90
+ this.ids.push((0, postboy_generic_message_1.checkId)(executor));
91
+ this.postboy.exec(new connect_handler_executor_1.ConnectHandler(executor, handler));
86
92
  return this;
87
93
  }
88
94
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"postboy-abstract.registrator.js","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":";;;AACA,+BAAiF;AAGjF,8EAAkF;AAElF,uDAAmD;AAInD,MAAsB,0BAA0B;IAC9C,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAKD,YACY,OAAuB,EACjC,YAA2B,IAAI;QADrB,YAAO,GAAP,OAAO,CAAgB;QAL3B,QAAG,GAAa,EAAE,CAAC;QACnB,aAAQ,GAA+B,EAAE,CAAC;QAOhD,IAAI,CAAC,UAAU,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,0BAAW,CAAC,GAAG,EAAE,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,QAAoC;QAC1D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACI,EAAE;;QACP,MAAA,IAAI,CAAC,GAAG,oDAAI,CAAC;QACb,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IAIM,I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AoB,EACpB,UAAU,GAAG,CAAC;QAEd,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,oBAAa,CAAI,UAAU,CAAC,CAAC,CAAC;QACpD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;OASG;IACI,cAAc,CAAkC,IAAoB,EAAE,OAAU;QACrF,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,sBAAe,CAAI,OAAO,CAAC,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAAkC,IAAoB;QACxE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,cAAO,EAAK,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvJD,gEAuJC"}
1
+ {"version":3,"file":"postboy-abstract.registrator.js","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":";;;AACA,+BAAiF;AAGjF,8EAAkF;AAElF,uDAAmD;AACnD,kFAAqE;AACrE,wFAA2E;AAC3E,oFAAuE;AACvE,kFAAqE;AAIrE,MAAsB,0BAA0B;IAC9C,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAKD,YACY,OAAuB,EACjC,YAA2B,IAAI;QADrB,YAAO,GAAP,OAAO,CAAgB;QAL3B,QAAG,GAAa,EAAE,CAAC;QACnB,aAAQ,GAA+B,EAAE,CAAC;QAOhD,IAAI,CAAC,UAAU,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,0BAAW,CAAC,GAAG,EAAE,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,QAAoC;QAC1D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACI,EAAE;;QACP,MAAA,IAAI,CAAC,GAAG,oDAAI,CAAC;QACb,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,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AAE,IAAI,CAAC,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,QAAmC,EACnC,OAAsC;QAEtC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAA,iCAAO,EAAC,QAAQ,CAAC,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,yCAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;OAYG;IACI,YAAY,CACjB,IAAoB,EACpB,UAAU,GAAG,CAAC;QAEd,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,oBAAa,CAAI,UAAU,CAAC,CAAC,CAAC;QACpD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;OASG;IACI,cAAc,CAAkC,IAAoB,EAAE,OAAU;QACrF,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,sBAAe,CAAI,OAAO,CAAC,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAAkC,IAAoB;QACxE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,cAAO,EAAK,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAzJD,gEAyJC"}
@@ -6,19 +6,18 @@ import { MessageType, PostboyAbstractRegistrator } from './postboy-abstract.regi
6
6
  import { PostboyExecutionHandler } from './models/postboy-execution.handler';
7
7
  import { PostboyMiddleware } from './models/postboy-middleware';
8
8
  import { PostboyDependencyResolver } from './services/postboy-dependency.resolver';
9
- import { PostboySettings } from './models/postboy.settings';
10
9
  export declare class PostboyService {
11
10
  protected locked: Set<string>;
12
11
  private middleware;
13
12
  private store;
14
- private namespaceStore?;
13
+ private namespaceStore;
15
14
  private dependencyResolver;
16
- private context;
17
- private settings;
18
- constructor(settings?: Partial<PostboySettings>, resolver?: PostboyDependencyResolver);
15
+ constructor(resolver?: PostboyDependencyResolver);
16
+ private registerInfrastructureMessages;
19
17
  /**
20
18
  * Locks a specific message type to prevent further modifications or actions.
21
19
  *
20
+ * @deprecated The method should be replaced with firing {@link LockMessage} message.
22
21
  * @param {MessageType<T>} type - The message type to be locked. It must extend from the `PostboyGenericMessage`.
23
22
  * @return {void} This method does not return a value.
24
23
  */
@@ -26,6 +25,7 @@ export declare class PostboyService {
26
25
  /**
27
26
  * Unlocks a previously locked message type by removing its ID from the locked set.
28
27
  *
28
+ * @deprecated The method should be replaced with firing {@link UnlockMessage} message.
29
29
  * @param {MessageType<T>} type - The message type to unlock, which is a generic type extending PostboyGenericMessage.
30
30
  * @return {void} This method does not return any value.
31
31
  */
@@ -33,6 +33,7 @@ export declare class PostboyService {
33
33
  /**
34
34
  * Adds a middleware to the middleware stack.
35
35
  *
36
+ * @deprecated The method should be replaced with firing {@link AddMiddleware} message.
36
37
  * @param {PostboyMiddleware} middleware - The middleware instance to be added.
37
38
  * @return {void}
38
39
  */
@@ -40,6 +41,7 @@ export declare class PostboyService {
40
41
  /**
41
42
  * Removes a middleware from the current middleware stack.
42
43
  *
44
+ * @deprecated The method should be replaced with firing {@link RemoveMiddleware} message.
43
45
  * @param {PostboyMiddleware} middleware - The middleware instance to be removed.
44
46
  * @return {void} No return value.
45
47
  */
@@ -47,6 +49,7 @@ export declare class PostboyService {
47
49
  /**
48
50
  * Unregisters a message identified by the given ID from the store.
49
51
  *
52
+ * @deprecated The method should be replaced with firing {@link DisconnectMessage} message.
50
53
  * @param {string} id - The unique identifier of the item to unregister.
51
54
  * @return {void} No value is returned.
52
55
  */
@@ -93,6 +96,7 @@ export declare class PostboyService {
93
96
  /**
94
97
  * Registers a given message type and its associated subject subscription with the system.
95
98
  *
99
+ * @deprecated The method should be replaced with firing {@link ConnectMessage} message.
96
100
  * @param type The constructor function of the message type that extends the PostboyGenericMessage.
97
101
  * @param sub The Subject instance for the provided message type, used for managing subscriptions.
98
102
  * @return {void} No return value.
@@ -101,6 +105,7 @@ export declare class PostboyService {
101
105
  /**
102
106
  * Registers a generic message type with a Subject and a transformation pipe.
103
107
  *
108
+ * @deprecated The method should be replaced with firing {@link ConnectMessage} message.
104
109
  * @param {MessageType<T>} type - The constructor of the message type being registered.
105
110
  * @param {Subject<T>} sub - The Subject instance used to handle incoming messages of the specified type.
106
111
  * @param {(s: Subject<T>) => Observable<T>} pipe - A function that applies a transformation or processing logic to the Subject and returns an Observable.
@@ -110,6 +115,7 @@ export declare class PostboyService {
110
115
  /**
111
116
  * Registers an executor for a specified message type.
112
117
  *
118
+ * @deprecated The method should be replaced with firing {@link ConnectExecutor} message.
113
119
  * @param {MessageType<E>} type - The message type for which the executor is being registered.
114
120
  * @param {(e: E) => T} exec - The executor function that will handle messages of the specified type.
115
121
  * @return {void} This method does not return any value.
@@ -118,6 +124,7 @@ export declare class PostboyService {
118
124
  /**
119
125
  * Registers a handler for a specific executor type.
120
126
  *
127
+ * @deprecated The method should be replaced with firing {@link ConnectHandler} message.
121
128
  * @param executor The constructor of the executor class that extends `PostboyExecutor<R>`.
122
129
  * @param handler An instance of `PostboyExecutionHandler<R, E>` that defines the logic for handling the executor.
123
130
  * @return void
@@ -126,6 +133,7 @@ export declare class PostboyService {
126
133
  /**
127
134
  * Adds a namespace to the namespace store.
128
135
  *
136
+ * @deprecated The method should be replaced with firing {@link AddNamespace} message.
129
137
  * @param {string} space - The name of the namespace to be added.
130
138
  * @return {PostboyAbstractRegistrator} The instance of the namespace after adding the specified namespace.
131
139
  */
@@ -133,6 +141,7 @@ export declare class PostboyService {
133
141
  /**
134
142
  * Removes the specified namespace from the namespace store.
135
143
  *
144
+ * @deprecated The method should be replaced with firing {@link EliminateNamespace} message.
136
145
  * @param {string} space - The name of the namespace to be removed.
137
146
  * @return {void} This method does not return a value.
138
147
  */
@@ -1 +1 @@
1
- {"version":3,"file":"postboy.service.d.ts","sourceRoot":"","sources":["../src/postbo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OAAO,CAAC,CAAC,CAAC,EACf,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,GACrC,IAAI;IAIP;;;;;;;OAOG;IACI,cAAc,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI;IAIrG;;;;;;;OAOG;IACI,aAAa,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAClD,QAAQ,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACnC,OAAO,EAAE,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,GACrC,IAAI;IAIP;;;;;;OAMG;IACI,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,0BAA0B;IAI9D;;;;;;OAMG;IACI,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI9C;;;;;OAKG;IACI,OAAO,IAAI,IAAI;CAKvB"}
@@ -5,19 +5,50 @@ const rxjs_1 = require("rxjs");
5
5
  const postboy_generic_message_1 = require("./models/postboy-generic-message");
6
6
  const postboy_subscription_1 = require("./models/postboy-subscription");
7
7
  const postboy_dependency_resolver_1 = require("./services/postboy-dependency.resolver");
8
- const postboy_settings_1 = require("./models/postboy.settings");
8
+ const add_namespace_executor_1 = require("./messages/add-namespace.executor");
9
+ const eliminate_namespace_executor_1 = require("./messages/eliminate-namespace.executor");
10
+ const add_middleware_executor_1 = require("./messages/add-middleware.executor");
11
+ const remove_middleware_executor_1 = require("./messages/remove-middleware.executor");
12
+ const lock_message_executor_1 = require("./messages/lock-message.executor");
13
+ const unlock_message_executor_1 = require("./messages/unlock-message.executor");
14
+ const disconnect_message_executor_1 = require("./messages/disconnect-message.executor");
15
+ const connect_message_executor_1 = require("./messages/connect-message.executor");
16
+ const connect_executor_executor_1 = require("./messages/connect-executor.executor");
17
+ const connect_handler_executor_1 = require("./messages/connect-handler.executor");
9
18
  class PostboyService {
10
- constructor(settings, resolver) {
19
+ constructor(resolver) {
11
20
  this.locked = new Set();
12
- this.settings = new postboy_settings_1.PostboySettings(settings);
13
21
  this.dependencyResolver = resolver || new postboy_dependency_resolver_1.PostboyDependencyResolver();
14
22
  this.middleware = this.dependencyResolver.getMiddlewareService();
15
23
  this.store = this.dependencyResolver.getMessageStore();
16
- this.context = this.dependencyResolver.getPostboyContextService(this.settings.metadata);
24
+ this.namespaceStore = this.dependencyResolver.getNamespaceStore();
25
+ this.registerInfrastructureMessages();
26
+ }
27
+ registerInfrastructureMessages() {
28
+ this.store.registerExecutor(disconnect_message_executor_1.DisconnectMessage.ID, (e) => this.store.unregister(e.messageId));
29
+ this.store.registerExecutor(unlock_message_executor_1.UnlockMessage.ID, (e) => this.locked.delete((0, postboy_generic_message_1.checkId)(e.type)));
30
+ this.store.registerExecutor(lock_message_executor_1.LockMessage.ID, (e) => this.locked.add((0, postboy_generic_message_1.checkId)(e.type)));
31
+ this.store.registerExecutor(add_middleware_executor_1.AddMiddleware.ID, (e) => this.middleware.addMiddleware(e.middleware));
32
+ this.store.registerExecutor(remove_middleware_executor_1.RemoveMiddleware.ID, (e) => this.middleware.removeMiddleware(e.middleware));
33
+ this.store.registerExecutor(add_namespace_executor_1.AddNamespace.ID, (e) => this.namespaceStore.addSpace(e.space, this));
34
+ this.store.registerExecutor(eliminate_namespace_executor_1.EliminateNamespace.ID, (e) => this.namespaceStore.eliminateSpace(e.space));
35
+ this.store.registerExecutor(connect_message_executor_1.ConnectMessage.ID, (e) => {
36
+ const { type, sub, pipe } = e;
37
+ this.store.registerMessage((0, postboy_generic_message_1.checkId)(type), new postboy_subscription_1.PostboySubscription(sub, pipe));
38
+ });
39
+ this.store.registerExecutor(connect_executor_executor_1.ConnectExecutor.ID, (e) => {
40
+ const { type, exec } = e;
41
+ this.store.registerExecutor((0, postboy_generic_message_1.checkId)(type), exec);
42
+ });
43
+ this.store.registerExecutor(connect_handler_executor_1.ConnectHandler.ID, (e) => {
44
+ const { executor, handler } = e;
45
+ this.store.registerExecutor((0, postboy_generic_message_1.checkId)(executor), (e) => handler.handle(e));
46
+ });
17
47
  }
18
48
  /**
19
49
  * Locks a specific message type to prevent further modifications or actions.
20
50
  *
51
+ * @deprecated The method should be replaced with firing {@link LockMessage} message.
21
52
  * @param {MessageType<T>} type - The message type to be locked. It must extend from the `PostboyGenericMessage`.
22
53
  * @return {void} This method does not return a value.
23
54
  */
@@ -27,6 +58,7 @@ class PostboyService {
27
58
  /**
28
59
  * Unlocks a previously locked message type by removing its ID from the locked set.
29
60
  *
61
+ * @deprecated The method should be replaced with firing {@link UnlockMessage} message.
30
62
  * @param {MessageType<T>} type - The message type to unlock, which is a generic type extending PostboyGenericMessage.
31
63
  * @return {void} This method does not return any value.
32
64
  */
@@ -36,6 +68,7 @@ class PostboyService {
36
68
  /**
37
69
  * Adds a middleware to the middleware stack.
38
70
  *
71
+ * @deprecated The method should be replaced with firing {@link AddMiddleware} message.
39
72
  * @param {PostboyMiddleware} middleware - The middleware instance to be added.
40
73
  * @return {void}
41
74
  */
@@ -45,6 +78,7 @@ class PostboyService {
45
78
  /**
46
79
  * Removes a middleware from the current middleware stack.
47
80
  *
81
+ * @deprecated The method should be replaced with firing {@link RemoveMiddleware} message.
48
82
  * @param {PostboyMiddleware} middleware - The middleware instance to be removed.
49
83
  * @return {void} No return value.
50
84
  */
@@ -54,6 +88,7 @@ class PostboyService {
54
88
  /**
55
89
  * Unregisters a message identified by the given ID from the store.
56
90
  *
91
+ * @deprecated The method should be replaced with firing {@link DisconnectMessage} message.
57
92
  * @param {string} id - The unique identifier of the item to unregister.
58
93
  * @return {void} No value is returned.
59
94
  */
@@ -68,12 +103,9 @@ class PostboyService {
68
103
  * @throws {Error} Throws an error if no registered event is found for the provided message ID.
69
104
  */
70
105
  fire(message) {
71
- const context = this.context.createChild(message);
72
- this.context.run(context, () => {
73
- this.middleware.manage(message);
74
- if (!this.locked.has(message.id))
75
- this.store.getMessage(message.id, message.constructor.name).fire(message);
76
- });
106
+ this.middleware.manage(message);
107
+ if (!this.locked.has(message.id))
108
+ this.store.getMessage(message.id, message.constructor.name).fire(message);
77
109
  }
78
110
  /**
79
111
  * Triggers a callback function associated with a given message.
@@ -84,15 +116,12 @@ class PostboyService {
84
116
  * @return {void} This method does not return any value.
85
117
  */
86
118
  fireCallback(message, action) {
87
- const context = this.context.createChild(message);
88
- return this.context.run(context, () => {
89
- this.middleware.manage(message);
90
- this.store.callbackFired(message);
91
- message.result.subscribe(action);
92
- if (!this.locked.has(message.id))
93
- setTimeout(() => this.store.getMessage(message.id, message.constructor.name).fire(message));
94
- return message.result;
95
- });
119
+ this.middleware.manage(message);
120
+ this.store.callbackFired(message);
121
+ message.result.subscribe(action);
122
+ if (!this.locked.has(message.id))
123
+ setTimeout(() => this.store.getMessage(message.id, message.constructor.name).fire(message));
124
+ return message.result;
96
125
  }
97
126
  /**
98
127
  * Executes the provided executor function and returns its result.
@@ -102,11 +131,8 @@ class PostboyService {
102
131
  * @throws {Error} If the specified executor is not registered.
103
132
  */
104
133
  exec(executor) {
105
- const context = this.context.createChild(executor);
106
- return this.context.run(context, () => {
107
- this.middleware.manage(executor);
108
- return this.store.getExecutor(executor.id)(executor);
109
- });
134
+ this.middleware.manage(executor);
135
+ return this.store.getExecutor(executor.id)(executor);
110
136
  }
111
137
  /**
112
138
  * Subscribes to a specific message type and returns an observable of that type.
@@ -129,6 +155,7 @@ class PostboyService {
129
155
  /**
130
156
  * Registers a given message type and its associated subject subscription with the system.
131
157
  *
158
+ * @deprecated The method should be replaced with firing {@link ConnectMessage} message.
132
159
  * @param type The constructor function of the message type that extends the PostboyGenericMessage.
133
160
  * @param sub The Subject instance for the provided message type, used for managing subscriptions.
134
161
  * @return {void} No return value.
@@ -139,6 +166,7 @@ class PostboyService {
139
166
  /**
140
167
  * Registers a generic message type with a Subject and a transformation pipe.
141
168
  *
169
+ * @deprecated The method should be replaced with firing {@link ConnectMessage} message.
142
170
  * @param {MessageType<T>} type - The constructor of the message type being registered.
143
171
  * @param {Subject<T>} sub - The Subject instance used to handle incoming messages of the specified type.
144
172
  * @param {(s: Subject<T>) => Observable<T>} pipe - A function that applies a transformation or processing logic to the Subject and returns an Observable.
@@ -150,6 +178,7 @@ class PostboyService {
150
178
  /**
151
179
  * Registers an executor for a specified message type.
152
180
  *
181
+ * @deprecated The method should be replaced with firing {@link ConnectExecutor} message.
153
182
  * @param {MessageType<E>} type - The message type for which the executor is being registered.
154
183
  * @param {(e: E) => T} exec - The executor function that will handle messages of the specified type.
155
184
  * @return {void} This method does not return any value.
@@ -160,6 +189,7 @@ class PostboyService {
160
189
  /**
161
190
  * Registers a handler for a specific executor type.
162
191
  *
192
+ * @deprecated The method should be replaced with firing {@link ConnectHandler} message.
163
193
  * @param executor The constructor of the executor class that extends `PostboyExecutor<R>`.
164
194
  * @param handler An instance of `PostboyExecutionHandler<R, E>` that defines the logic for handling the executor.
165
195
  * @return void
@@ -170,17 +200,17 @@ class PostboyService {
170
200
  /**
171
201
  * Adds a namespace to the namespace store.
172
202
  *
203
+ * @deprecated The method should be replaced with firing {@link AddNamespace} message.
173
204
  * @param {string} space - The name of the namespace to be added.
174
205
  * @return {PostboyAbstractRegistrator} The instance of the namespace after adding the specified namespace.
175
206
  */
176
207
  addNamespace(space) {
177
- if (!this.namespaceStore)
178
- this.namespaceStore = this.dependencyResolver.getNamespaceStore(this);
179
- return this.namespaceStore.addSpace(space);
208
+ return this.namespaceStore.addSpace(space, this);
180
209
  }
181
210
  /**
182
211
  * Removes the specified namespace from the namespace store.
183
212
  *
213
+ * @deprecated The method should be replaced with firing {@link EliminateNamespace} message.
184
214
  * @param {string} space - The name of the namespace to be removed.
185
215
  * @return {void} This method does not return a value.
186
216
  */
@@ -1 +1 @@
1
- {"version":3,"file":"postboy.service.js","sourceRoot":"","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context: PostboyMessageContext, action: () => T): T;
9
9
  private createRoot;
10
10
  createChild(message: PostboyMessage): PostboyMessageContext;
11
+ dispose(): void;
11
12
  }
12
13
  //# sourceMappingURL=postboy-context.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postboy-context.service.d.ts","sourceRoot":"","sources":["../../src/services/postboy-context.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,qBAAqB;IAGb,MAAM,EAAE,OAAO;IAFlC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkD;gBAEvD,MAAM,GAAE,OAAc;IAEzC,OAAO,KAAK,OAAO,GAElB;IAEM,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC;IAIjE,OAAO,CAAC,UAAU;IAUX,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,qBAAqB;CAkBnE"}
1
+ {"version":3,"file":"postboy-context.service.d.ts","sourceRoot":"","sources":["../../src/services/postboy-context.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,qBAAqB;IAGb,MAAM,EAAE,OAAO;IAFlC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkD;gBAEvD,MAAM,GAAE,OAAc;IAEzC,OAAO,KAAK,OAAO,GAElB;IAEM,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC;IAIjE,OAAO,CAAC,UAAU;IAUX,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,qBAAqB;IAmB3D,OAAO,IAAI,IAAI;CAGvB"}
@@ -42,6 +42,9 @@ class PostboyContextService {
42
42
  message.setMetadata({ correlationId: data.correlationId, causationId: data.parentMessageId, tags: data.tags });
43
43
  return data;
44
44
  }
45
+ dispose() {
46
+ this.storage.disable();
47
+ }
45
48
  }
46
49
  exports.PostboyContextService = PostboyContextService;
47
50
  //# sourceMappingURL=postboy-context.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"postboy-context.service.js","sourceRoot":"","sources":["../../src/services/postboy-context.service.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAIrD,MAAa,qBAAqB;IAGhC,YAAmB,SAAkB,IAAI;QAAtB,WAAM,GAAN,MAAM,CAAgB;QAFxB,YAAO,GAAG,IAAI,oCAAiB,EAAyB,CAAC;IAE9B,CAAC;IAE7C,IAAY,OAAO;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IACjC,CAAC;IAEM,GAAG,CAAI,OAA8B,EAAE,MAAe;QAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACpE,CAAC;IAEO,UAAU,CAAC,OAAuB;QACxC,OAAO;YACL,aAAa,EAAE,OAAO,CAAC,EAAE;YACzB,gBAAgB,EAAE,OAAO,CAAC,EAAE;YAC5B,KAAK,EAAE,CAAC;YACR,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,IAAI,EAAE,IAAI,GAAG,EAAE;SAChB,CAAC;IACJ,CAAC;IAEM,WAAW,CAAC,OAAuB;;QACxC,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,MAAM,IAAI,GAAG,MAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,IAAI,mCAAI,IAAI,GAAG,EAAE,CAAC;QAC7C,MAAA,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D,sDA6CC"}
@@ -1,8 +1,6 @@
1
1
  import { PostboyMiddlewareService } from './postboy-middleware.service';
2
2
  import { PostboyMessageStore } from './postboy-message.store';
3
3
  import { PostboyNamespaceStore } from './postboy-namespace.store';
4
- import { PostboyService } from '../postboy.service';
5
- import { PostboyContextService } from './postboy-context.service';
6
4
  export declare class PostboyDependencyResolver {
7
5
  /**
8
6
  * Retrieves an instance of the PostboyMiddlewareService.
@@ -27,10 +25,8 @@ export declare class PostboyDependencyResolver {
27
25
  * Creates and initializes a new instance of PostboyNamespaceStore using the provided PostboyService instance.
28
26
  *
29
27
  * @function getNamespaceStore
30
- * @param {PostboyService} postboy - An instance of the PostboyService used to create the namespace store.
31
28
  * @returns {PostboyNamespaceStore} A new instance of PostboyNamespaceStore associated with the given PostboyService.
32
29
  */
33
- getNamespaceStore: (postboy: PostboyService) => PostboyNamespaceStore;
34
- getPostboyContextService: (active: boolean) => PostboyContextService;
30
+ getNamespaceStore: () => PostboyNamespaceStore;
35
31
  }
36
32
  //# sourceMappingURL=postboy-dependency.resolver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postboy-dependency.resolver.d.ts","sourceRoot":"","sources":["../../src/services/postboy-dependency.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,qBAAa,yBAAyB;IACpC;;;;;;;;OAQG;IACH,oBAAoB,iCAAwC;IAC5D;;;;;;;OAOG;IACH,eAAe,4BAAmC;IAClD;;;;;;OAMG;IACH,iBAAiB,GAAI,SAAS,cAAc,2BAAwC;IACpF,wBAAwB,GAAI,QAAQ,OAAO,2BAAuC;CACnF"}
1
+ {"version":3,"file":"postboy-dependency.resolver.d.ts","sourceRoot":"","sources":["../../src/services/postboy-dependency.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,qBAAa,yBAAyB;IACpC;;;;;;;;OAQG;IACH,oBAAoB,iCAAwC;IAC5D;;;;;;;OAOG;IACH,eAAe,4BAAmC;IAClD;;;;;OAKG;IACH,iBAAiB,8BAAqC;CACvD"}