@slickgrid-universal/event-pub-sub 2.4.0 → 2.6.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 (32) hide show
  1. package/dist/commonjs/basePubSub.service.js +47 -47
  2. package/dist/commonjs/eventPubSub.service.js +175 -175
  3. package/dist/commonjs/index.js +19 -19
  4. package/dist/commonjs/types/eventNamingStyle.enum.js +14 -14
  5. package/dist/commonjs/types/eventSubscription.interface.js +2 -2
  6. package/dist/commonjs/types/index.js +18 -18
  7. package/dist/esm/basePubSub.service.js +43 -43
  8. package/dist/esm/eventPubSub.service.js +171 -171
  9. package/dist/esm/index.js +3 -3
  10. package/dist/esm/types/eventNamingStyle.enum.js +11 -11
  11. package/dist/esm/types/eventSubscription.interface.js +1 -1
  12. package/dist/esm/types/index.js +2 -2
  13. package/dist/tsconfig.tsbuildinfo +1 -0
  14. package/dist/{commonjs → types}/basePubSub.service.d.ts +33 -32
  15. package/dist/types/basePubSub.service.d.ts.map +1 -0
  16. package/dist/{esm → types}/eventPubSub.service.d.ts +73 -72
  17. package/dist/types/eventPubSub.service.d.ts.map +1 -0
  18. package/dist/{esm → types}/index.d.ts +4 -3
  19. package/dist/types/index.d.ts.map +1 -0
  20. package/dist/{esm → types}/types/eventNamingStyle.enum.d.ts +11 -10
  21. package/dist/types/types/eventNamingStyle.enum.d.ts.map +1 -0
  22. package/dist/{commonjs → types}/types/eventSubscription.interface.d.ts +11 -10
  23. package/dist/types/types/eventSubscription.interface.d.ts.map +1 -0
  24. package/dist/{commonjs → types}/types/index.d.ts +3 -2
  25. package/dist/types/types/index.d.ts.map +1 -0
  26. package/package.json +8 -8
  27. package/dist/commonjs/eventPubSub.service.d.ts +0 -72
  28. package/dist/commonjs/index.d.ts +0 -3
  29. package/dist/commonjs/types/eventNamingStyle.enum.d.ts +0 -10
  30. package/dist/esm/basePubSub.service.d.ts +0 -32
  31. package/dist/esm/types/eventSubscription.interface.d.ts +0 -10
  32. package/dist/esm/types/index.d.ts +0 -2
@@ -1,44 +1,44 @@
1
- export class BasePubSubService {
2
- /**
3
- * Method to publish a message
4
- * @param event The event or channel to publish to.
5
- * @param data The data to publish on the channel.
6
- */
7
- publish(_eventName, _data, _delay) {
8
- throw new Error('BasePubSubService "publish" method must be implemented');
9
- }
10
- /**
11
- * Subscribes to a message channel or message type.
12
- * @param event The event channel or event data type.
13
- * @param callback The callback to be invoked when the specified message is published.
14
- * @return possibly a Subscription
15
- */
16
- // eslint-disable-next-line @typescript-eslint/ban-types
17
- subscribe(_eventName, _callback) {
18
- throw new Error('BasePubSubService "subscribe" method must be implemented');
19
- }
20
- /**
21
- * Subscribes to a custom event message channel or message type.
22
- * This is similar to the "subscribe" except that the callback receives an event typed as CustomEventInit and the data will be inside its "event.detail"
23
- * @param event The event channel or event data type.
24
- * @param callback The callback to be invoked when the specified message is published.
25
- * @return possibly a Subscription
26
- */
27
- // eslint-disable-next-line @typescript-eslint/ban-types
28
- subscribeEvent(_eventName, _callback) {
29
- throw new Error('BasePubSubService "subscribeEvent" method must be implemented');
30
- }
31
- /**
32
- * Unsubscribes a message name
33
- * @param event The event name
34
- * @return possibly a Subscription
35
- */
36
- unsubscribe(_eventName, _callback) {
37
- throw new Error('BasePubSubService "unsubscribe" method must be implemented');
38
- }
39
- /** Unsubscribes all subscriptions that currently exists */
40
- unsubscribeAll(_subscriptions) {
41
- throw new Error('BasePubSubService "unsubscribeAll" method must be implemented');
42
- }
43
- }
1
+ export class BasePubSubService {
2
+ /**
3
+ * Method to publish a message
4
+ * @param event The event or channel to publish to.
5
+ * @param data The data to publish on the channel.
6
+ */
7
+ publish(_eventName, _data, _delay) {
8
+ throw new Error('BasePubSubService "publish" method must be implemented');
9
+ }
10
+ /**
11
+ * Subscribes to a message channel or message type.
12
+ * @param event The event channel or event data type.
13
+ * @param callback The callback to be invoked when the specified message is published.
14
+ * @return possibly a Subscription
15
+ */
16
+ // eslint-disable-next-line @typescript-eslint/ban-types
17
+ subscribe(_eventName, _callback) {
18
+ throw new Error('BasePubSubService "subscribe" method must be implemented');
19
+ }
20
+ /**
21
+ * Subscribes to a custom event message channel or message type.
22
+ * This is similar to the "subscribe" except that the callback receives an event typed as CustomEventInit and the data will be inside its "event.detail"
23
+ * @param event The event channel or event data type.
24
+ * @param callback The callback to be invoked when the specified message is published.
25
+ * @return possibly a Subscription
26
+ */
27
+ // eslint-disable-next-line @typescript-eslint/ban-types
28
+ subscribeEvent(_eventName, _callback) {
29
+ throw new Error('BasePubSubService "subscribeEvent" method must be implemented');
30
+ }
31
+ /**
32
+ * Unsubscribes a message name
33
+ * @param event The event name
34
+ * @return possibly a Subscription
35
+ */
36
+ unsubscribe(_eventName, _callback) {
37
+ throw new Error('BasePubSubService "unsubscribe" method must be implemented');
38
+ }
39
+ /** Unsubscribes all subscriptions that currently exists */
40
+ unsubscribeAll(_subscriptions) {
41
+ throw new Error('BasePubSubService "unsubscribeAll" method must be implemented');
42
+ }
43
+ }
44
44
  //# sourceMappingURL=basePubSub.service.js.map
@@ -1,172 +1,172 @@
1
- import { titleCase, toKebabCase } from '@slickgrid-universal/utils';
2
- import { EventNamingStyle, } from './types';
3
- export class EventPubSubService {
4
- get elementSource() {
5
- return this._elementSource;
6
- }
7
- set elementSource(element) {
8
- this._elementSource = element;
9
- }
10
- get subscribedEvents() {
11
- return this._subscribedEvents;
12
- }
13
- get subscribedEventNames() {
14
- return this._subscribedEvents.map((pubSubEvent) => pubSubEvent.name);
15
- }
16
- constructor(elementSource) {
17
- this._subscribedEvents = [];
18
- this.eventNamingStyle = EventNamingStyle.camelCase;
19
- // use the provided element
20
- // or create a "phantom DOM node" (a div element that is never rendered) to set up a custom event dispatching
21
- this._elementSource = elementSource || document.createElement('div');
22
- }
23
- dispose() {
24
- var _a;
25
- this.unsubscribeAll();
26
- this._subscribedEvents = [];
27
- clearTimeout(this._timer);
28
- (_a = this._elementSource) === null || _a === void 0 ? void 0 : _a.remove();
29
- this._elementSource = null;
30
- }
31
- /**
32
- * Dispatch of Custom Event, which by default will bubble up & is cancelable
33
- * @param {String} eventName - event name to dispatch
34
- * @param {*} data - optional data to include in the dispatching
35
- * @param {Boolean} isBubbling - is the event bubbling up?
36
- * @param {Boolean} isCancelable - is the event cancellable?
37
- * @returns {Boolean} returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
38
- */
39
- dispatchCustomEvent(eventName, data, isBubbling = true, isCancelable = true) {
40
- var _a;
41
- const eventInit = { bubbles: isBubbling, cancelable: isCancelable };
42
- if (data) {
43
- eventInit.detail = data;
44
- }
45
- return (_a = this._elementSource) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new CustomEvent(eventName, eventInit));
46
- }
47
- /**
48
- * Get the event name by the convention defined, it could be: all lower case, camelCase, PascalCase or kebab-case
49
- * @param {String} inputEventName - name of the event
50
- * @param {String} eventNamePrefix - prefix to use in the event name
51
- * @returns {String} - output event name
52
- */
53
- getEventNameByNamingConvention(inputEventName, eventNamePrefix) {
54
- let outputEventName = '';
55
- switch (this.eventNamingStyle) {
56
- case EventNamingStyle.camelCase:
57
- outputEventName = (eventNamePrefix !== '') ? `${eventNamePrefix}${titleCase(inputEventName)}` : inputEventName;
58
- break;
59
- case EventNamingStyle.kebabCase:
60
- outputEventName = (eventNamePrefix !== '') ? `${eventNamePrefix}-${toKebabCase(inputEventName)}` : toKebabCase(inputEventName);
61
- break;
62
- case EventNamingStyle.lowerCase:
63
- outputEventName = `${eventNamePrefix}${inputEventName}`.toLowerCase();
64
- break;
65
- case EventNamingStyle.lowerCaseWithoutOnPrefix:
66
- outputEventName = `${eventNamePrefix}${inputEventName.replace(/^on/, '')}`.toLowerCase();
67
- break;
68
- }
69
- return outputEventName;
70
- }
71
- /**
72
- * Method to publish a message via a dispatchEvent.
73
- * Return is a Boolean (from the event dispatch) unless a delay is provided if so we'll return the dispatched event in a Promise with a delayed cycle
74
- * The delay is rarely use and is only used when we want to make sure that certain events have the time to execute
75
- * and we do this because most framework require a cycle before the binding is processed and binding a spinner end up showing too late
76
- * for example this is used for the following events: onBeforeFilterClear, onBeforeFilterChange, onBeforeToggleTreeCollapse, onBeforeSortChange
77
- * @param {String} event - The event or channel to publish to.
78
- * @param {*} data - The data to publish on the channel.
79
- * @param {Number} delay - optional argument to delay the publish event
80
- * @returns {Boolean | Promise} - return type will be a Boolean unless a `delay` is provided then a `Promise<Boolean>` will be returned
81
- */
82
- publish(eventName, data, delay) {
83
- const eventNameByConvention = this.getEventNameByNamingConvention(eventName, '');
84
- if (delay) {
85
- return new Promise(resolve => {
86
- this._timer = setTimeout(() => resolve(this.dispatchCustomEvent(eventNameByConvention, data, true, true)), delay);
87
- });
88
- }
89
- else {
90
- return this.dispatchCustomEvent(eventNameByConvention, data, true, true);
91
- }
92
- }
93
- /**
94
- * Subscribes to a message channel or message type.
95
- * @param event The event channel or event data type.
96
- * @param callback The callback to be invoked when the specified message is published.
97
- * @return possibly a Subscription
98
- */
99
- subscribe(eventName, callback) {
100
- const eventNameByConvention = this.getEventNameByNamingConvention(eventName, '');
101
- // the event listener will return the data in the "event.detail", so we need to return its content to the final callback
102
- // basically we substitute the "data" with "event.detail" so that the user ends up with only the "data" result
103
- this._elementSource.addEventListener(eventNameByConvention, (event) => callback.call(null, event.detail));
104
- this._subscribedEvents.push({ name: eventNameByConvention, listener: callback });
105
- // return a subscription that we can unsubscribe
106
- return {
107
- unsubscribe: () => this.unsubscribe(eventNameByConvention, callback)
108
- };
109
- }
110
- /**
111
- * Subscribes to a custom event message channel or message type.
112
- * This is similar to the "subscribe" except that the callback receives an event typed as CustomEventInit and the data will be inside its "event.detail"
113
- * @param event The event channel or event data type.
114
- * @param callback The callback to be invoked when the specified message is published.
115
- * @return possibly a Subscription
116
- */
117
- subscribeEvent(eventName, listener) {
118
- const eventNameByConvention = this.getEventNameByNamingConvention(eventName, '');
119
- this._elementSource.addEventListener(eventNameByConvention, listener);
120
- this._subscribedEvents.push({ name: eventNameByConvention, listener });
121
- // return a subscription that we can unsubscribe
122
- return {
123
- unsubscribe: () => this.unsubscribe(eventNameByConvention, listener)
124
- };
125
- }
126
- /**
127
- * Unsubscribes a message name
128
- * @param {String} event - the event name
129
- * @param {*} listener - event listener callback
130
- * @param {Boolean} shouldRemoveFromEventList - should we also remove the event from the subscriptions array?
131
- * @return possibly a Subscription
132
- */
133
- unsubscribe(eventName, listener, shouldRemoveFromEventList = true) {
134
- const eventNameByConvention = this.getEventNameByNamingConvention(eventName, '');
135
- this._elementSource.removeEventListener(eventNameByConvention, listener);
136
- if (shouldRemoveFromEventList) {
137
- this.removeSubscribedEventWhenFound(eventName, listener);
138
- }
139
- }
140
- /** Unsubscribes all subscriptions/events that currently exists */
141
- unsubscribeAll(subscriptions) {
142
- if (Array.isArray(subscriptions)) {
143
- let subscription;
144
- do {
145
- subscription = subscriptions.pop();
146
- if (subscription === null || subscription === void 0 ? void 0 : subscription.dispose) {
147
- subscription.dispose();
148
- }
149
- else if (subscription === null || subscription === void 0 ? void 0 : subscription.unsubscribe) {
150
- subscription.unsubscribe();
151
- }
152
- } while (subscription);
153
- }
154
- else {
155
- let pubSubEvent = this._subscribedEvents.pop();
156
- while (pubSubEvent) {
157
- this.unsubscribe(pubSubEvent.name, pubSubEvent.listener, false);
158
- pubSubEvent = this._subscribedEvents.pop();
159
- }
160
- }
161
- }
162
- // --
163
- // protected functions
164
- // --------------------
165
- removeSubscribedEventWhenFound(eventName, listener) {
166
- const eventIdx = this._subscribedEvents.findIndex(evt => evt.name === eventName && evt.listener === listener);
167
- if (eventIdx >= 0) {
168
- this._subscribedEvents.splice(eventIdx, 1);
169
- }
170
- }
171
- }
1
+ import { titleCase, toKebabCase } from '@slickgrid-universal/utils';
2
+ import { EventNamingStyle, } from './types';
3
+ export class EventPubSubService {
4
+ get elementSource() {
5
+ return this._elementSource;
6
+ }
7
+ set elementSource(element) {
8
+ this._elementSource = element;
9
+ }
10
+ get subscribedEvents() {
11
+ return this._subscribedEvents;
12
+ }
13
+ get subscribedEventNames() {
14
+ return this._subscribedEvents.map((pubSubEvent) => pubSubEvent.name);
15
+ }
16
+ constructor(elementSource) {
17
+ this._subscribedEvents = [];
18
+ this.eventNamingStyle = EventNamingStyle.camelCase;
19
+ // use the provided element
20
+ // or create a "phantom DOM node" (a div element that is never rendered) to set up a custom event dispatching
21
+ this._elementSource = elementSource || document.createElement('div');
22
+ }
23
+ dispose() {
24
+ var _a;
25
+ this.unsubscribeAll();
26
+ this._subscribedEvents = [];
27
+ clearTimeout(this._timer);
28
+ (_a = this._elementSource) === null || _a === void 0 ? void 0 : _a.remove();
29
+ this._elementSource = null;
30
+ }
31
+ /**
32
+ * Dispatch of Custom Event, which by default will bubble up & is cancelable
33
+ * @param {String} eventName - event name to dispatch
34
+ * @param {*} data - optional data to include in the dispatching
35
+ * @param {Boolean} isBubbling - is the event bubbling up?
36
+ * @param {Boolean} isCancelable - is the event cancellable?
37
+ * @returns {Boolean} returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
38
+ */
39
+ dispatchCustomEvent(eventName, data, isBubbling = true, isCancelable = true) {
40
+ var _a;
41
+ const eventInit = { bubbles: isBubbling, cancelable: isCancelable };
42
+ if (data) {
43
+ eventInit.detail = data;
44
+ }
45
+ return (_a = this._elementSource) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new CustomEvent(eventName, eventInit));
46
+ }
47
+ /**
48
+ * Get the event name by the convention defined, it could be: all lower case, camelCase, PascalCase or kebab-case
49
+ * @param {String} inputEventName - name of the event
50
+ * @param {String} eventNamePrefix - prefix to use in the event name
51
+ * @returns {String} - output event name
52
+ */
53
+ getEventNameByNamingConvention(inputEventName, eventNamePrefix) {
54
+ let outputEventName = '';
55
+ switch (this.eventNamingStyle) {
56
+ case EventNamingStyle.camelCase:
57
+ outputEventName = (eventNamePrefix !== '') ? `${eventNamePrefix}${titleCase(inputEventName)}` : inputEventName;
58
+ break;
59
+ case EventNamingStyle.kebabCase:
60
+ outputEventName = (eventNamePrefix !== '') ? `${eventNamePrefix}-${toKebabCase(inputEventName)}` : toKebabCase(inputEventName);
61
+ break;
62
+ case EventNamingStyle.lowerCase:
63
+ outputEventName = `${eventNamePrefix}${inputEventName}`.toLowerCase();
64
+ break;
65
+ case EventNamingStyle.lowerCaseWithoutOnPrefix:
66
+ outputEventName = `${eventNamePrefix}${inputEventName.replace(/^on/, '')}`.toLowerCase();
67
+ break;
68
+ }
69
+ return outputEventName;
70
+ }
71
+ /**
72
+ * Method to publish a message via a dispatchEvent.
73
+ * Return is a Boolean (from the event dispatch) unless a delay is provided if so we'll return the dispatched event in a Promise with a delayed cycle
74
+ * The delay is rarely use and is only used when we want to make sure that certain events have the time to execute
75
+ * and we do this because most framework require a cycle before the binding is processed and binding a spinner end up showing too late
76
+ * for example this is used for the following events: onBeforeFilterClear, onBeforeFilterChange, onBeforeToggleTreeCollapse, onBeforeSortChange
77
+ * @param {String} event - The event or channel to publish to.
78
+ * @param {*} data - The data to publish on the channel.
79
+ * @param {Number} delay - optional argument to delay the publish event
80
+ * @returns {Boolean | Promise} - return type will be a Boolean unless a `delay` is provided then a `Promise<Boolean>` will be returned
81
+ */
82
+ publish(eventName, data, delay) {
83
+ const eventNameByConvention = this.getEventNameByNamingConvention(eventName, '');
84
+ if (delay) {
85
+ return new Promise(resolve => {
86
+ this._timer = setTimeout(() => resolve(this.dispatchCustomEvent(eventNameByConvention, data, true, true)), delay);
87
+ });
88
+ }
89
+ else {
90
+ return this.dispatchCustomEvent(eventNameByConvention, data, true, true);
91
+ }
92
+ }
93
+ /**
94
+ * Subscribes to a message channel or message type.
95
+ * @param event The event channel or event data type.
96
+ * @param callback The callback to be invoked when the specified message is published.
97
+ * @return possibly a Subscription
98
+ */
99
+ subscribe(eventName, callback) {
100
+ const eventNameByConvention = this.getEventNameByNamingConvention(eventName, '');
101
+ // the event listener will return the data in the "event.detail", so we need to return its content to the final callback
102
+ // basically we substitute the "data" with "event.detail" so that the user ends up with only the "data" result
103
+ this._elementSource.addEventListener(eventNameByConvention, (event) => callback.call(null, event.detail));
104
+ this._subscribedEvents.push({ name: eventNameByConvention, listener: callback });
105
+ // return a subscription that we can unsubscribe
106
+ return {
107
+ unsubscribe: () => this.unsubscribe(eventNameByConvention, callback)
108
+ };
109
+ }
110
+ /**
111
+ * Subscribes to a custom event message channel or message type.
112
+ * This is similar to the "subscribe" except that the callback receives an event typed as CustomEventInit and the data will be inside its "event.detail"
113
+ * @param event The event channel or event data type.
114
+ * @param callback The callback to be invoked when the specified message is published.
115
+ * @return possibly a Subscription
116
+ */
117
+ subscribeEvent(eventName, listener) {
118
+ const eventNameByConvention = this.getEventNameByNamingConvention(eventName, '');
119
+ this._elementSource.addEventListener(eventNameByConvention, listener);
120
+ this._subscribedEvents.push({ name: eventNameByConvention, listener });
121
+ // return a subscription that we can unsubscribe
122
+ return {
123
+ unsubscribe: () => this.unsubscribe(eventNameByConvention, listener)
124
+ };
125
+ }
126
+ /**
127
+ * Unsubscribes a message name
128
+ * @param {String} event - the event name
129
+ * @param {*} listener - event listener callback
130
+ * @param {Boolean} shouldRemoveFromEventList - should we also remove the event from the subscriptions array?
131
+ * @return possibly a Subscription
132
+ */
133
+ unsubscribe(eventName, listener, shouldRemoveFromEventList = true) {
134
+ const eventNameByConvention = this.getEventNameByNamingConvention(eventName, '');
135
+ this._elementSource.removeEventListener(eventNameByConvention, listener);
136
+ if (shouldRemoveFromEventList) {
137
+ this.removeSubscribedEventWhenFound(eventName, listener);
138
+ }
139
+ }
140
+ /** Unsubscribes all subscriptions/events that currently exists */
141
+ unsubscribeAll(subscriptions) {
142
+ if (Array.isArray(subscriptions)) {
143
+ let subscription;
144
+ do {
145
+ subscription = subscriptions.pop();
146
+ if (subscription === null || subscription === void 0 ? void 0 : subscription.dispose) {
147
+ subscription.dispose();
148
+ }
149
+ else if (subscription === null || subscription === void 0 ? void 0 : subscription.unsubscribe) {
150
+ subscription.unsubscribe();
151
+ }
152
+ } while (subscription);
153
+ }
154
+ else {
155
+ let pubSubEvent = this._subscribedEvents.pop();
156
+ while (pubSubEvent) {
157
+ this.unsubscribe(pubSubEvent.name, pubSubEvent.listener, false);
158
+ pubSubEvent = this._subscribedEvents.pop();
159
+ }
160
+ }
161
+ }
162
+ // --
163
+ // protected functions
164
+ // --------------------
165
+ removeSubscribedEventWhenFound(eventName, listener) {
166
+ const eventIdx = this._subscribedEvents.findIndex(evt => evt.name === eventName && evt.listener === listener);
167
+ if (eventIdx >= 0) {
168
+ this._subscribedEvents.splice(eventIdx, 1);
169
+ }
170
+ }
171
+ }
172
172
  //# sourceMappingURL=eventPubSub.service.js.map
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from './basePubSub.service';
2
- export * from './eventPubSub.service';
3
- export * from './types';
1
+ export * from './basePubSub.service';
2
+ export * from './eventPubSub.service';
3
+ export * from './types';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,12 @@
1
- export var EventNamingStyle;
2
- (function (EventNamingStyle) {
3
- /** Event name showing in Camel Case, so "onValidationError" would stay as "onValidationError" */
4
- EventNamingStyle["camelCase"] = "camelCase";
5
- /** Event name showing in Kebab Case, so "onValidationError" would become "on-validation-error" */
6
- EventNamingStyle["kebabCase"] = "kebabCase";
7
- /** Event name showing all in lowercase, so "onValidationError" would become "onvalidationerror" */
8
- EventNamingStyle["lowerCase"] = "lowerCase";
9
- /** Event name showing all in lowercase but without the "on" prefix, so "onValidationError" would become "validationerror" */
10
- EventNamingStyle["lowerCaseWithoutOnPrefix"] = "lowerCaseWithoutOnPrefix";
11
- })(EventNamingStyle || (EventNamingStyle = {}));
1
+ export var EventNamingStyle;
2
+ (function (EventNamingStyle) {
3
+ /** Event name showing in Camel Case, so "onValidationError" would stay as "onValidationError" */
4
+ EventNamingStyle["camelCase"] = "camelCase";
5
+ /** Event name showing in Kebab Case, so "onValidationError" would become "on-validation-error" */
6
+ EventNamingStyle["kebabCase"] = "kebabCase";
7
+ /** Event name showing all in lowercase, so "onValidationError" would become "onvalidationerror" */
8
+ EventNamingStyle["lowerCase"] = "lowerCase";
9
+ /** Event name showing all in lowercase but without the "on" prefix, so "onValidationError" would become "validationerror" */
10
+ EventNamingStyle["lowerCaseWithoutOnPrefix"] = "lowerCaseWithoutOnPrefix";
11
+ })(EventNamingStyle || (EventNamingStyle = {}));
12
12
  //# sourceMappingURL=eventNamingStyle.enum.js.map
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=eventSubscription.interface.js.map
@@ -1,3 +1,3 @@
1
- export * from './eventNamingStyle.enum';
2
- export * from './eventSubscription.interface';
1
+ export * from './eventNamingStyle.enum';
2
+ export * from './eventSubscription.interface';
3
3
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.0.0-dev.20230223/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/types/eventnamingstyle.enum.ts","../src/types/eventsubscription.interface.ts","../src/types/index.ts","../src/basepubsub.service.ts","../../utils/dist/types/utils.d.ts","../../utils/dist/types/index.d.ts","../src/eventpubsub.service.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@18.14.1/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@types+yargs-parser@21.0.0/node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/.pnpm/@types+yargs@17.0.10/node_modules/@types/yargs/index.d.ts","../../../node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.4/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/.pnpm/@sinclair+typebox@0.25.21/node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/.pnpm/@jest+schemas@29.4.3/node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/.pnpm/@jest+types@29.4.3/node_modules/@jest/types/build/index.d.ts","../../../node_modules/.pnpm/@types+stack-utils@2.0.1/node_modules/@types/stack-utils/index.d.ts","../../../node_modules/.pnpm/jest-message-util@29.4.3/node_modules/jest-message-util/build/index.d.ts","../../../node_modules/.pnpm/@jest+console@29.4.3/node_modules/@jest/console/build/index.d.ts","../../../node_modules/.pnpm/@types+graceful-fs@4.1.5/node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/.pnpm/jest-haste-map@29.4.3/node_modules/jest-haste-map/build/index.d.ts","../../../node_modules/.pnpm/jest-resolve@29.4.3/node_modules/jest-resolve/build/index.d.ts","../../../node_modules/.pnpm/collect-v8-coverage@1.0.1/node_modules/collect-v8-coverage/index.d.ts","../../../node_modules/.pnpm/@jest+test-result@29.4.3/node_modules/@jest/test-result/build/index.d.ts","../../../node_modules/.pnpm/@jest+reporters@29.4.3/node_modules/@jest/reporters/build/index.d.ts","../../../node_modules/.pnpm/jest-changed-files@29.4.3/node_modules/jest-changed-files/build/index.d.ts","../../../node_modules/.pnpm/emittery@0.13.1/node_modules/emittery/index.d.ts","../../../node_modules/.pnpm/jest-watcher@29.4.3/node_modules/jest-watcher/build/index.d.ts","../../../node_modules/.pnpm/jest-runner@29.4.3/node_modules/jest-runner/build/index.d.ts","../../../node_modules/.pnpm/@jest+core@29.4.3_ts-node@10.9.1/node_modules/@jest/core/build/index.d.ts","../../../node_modules/.pnpm/jest-cli@29.4.3_ujxcenvse5zlxdro6vjdmkgl3a/node_modules/jest-cli/build/index.d.ts","../../../node_modules/.pnpm/jest@29.4.3_ujxcenvse5zlxdro6vjdmkgl3a/node_modules/jest/build/index.d.ts","../../../node_modules/.pnpm/jest-extended@3.2.4_jest@29.4.3/node_modules/jest-extended/types/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"95f22ce5f9dbcfc757ff850e7326a1ba1bc69806f1e70f48caefa824819d6f4f","affectsGlobalScope":true},{"version":"c4daa7918c267d474e0d269925f655f78fc52a7e2e6c12c7f6a00edd60ca3fe4","signature":"9ab9f34f15c13915347496839012509429a40a6f2f1bac0758177ff0426f9deb"},{"version":"843c8ac23a2d77142ea46b0717183d19dfb551df57d1f0493435a12d57e12d88","signature":"c7fb83efb86b29016744244e65b37430afdd948e025d00aaf0e404dc08a65e02"},{"version":"7359af9355ad1e1b0674a7622278117a79321338a54ca7ad68ace208728c28b3","signature":"ecf48ae99219ac5723531c2bbd689543492177865da1b84575a248241889cc81"},{"version":"4eff48a4d51e98529f36ff0c933014d75e5859275f3f6522d347870c5e7a8fa0","signature":"461cb61a732d32dcc9f1c0a99108b3c6fef2fccb5b75243be0f563bb69b5c585"},"953d4a00bbe1400ecb9d733d1d28cb049f3c990672b5cc0ff34ea29a711f9f28","7bb6dfa42f1353cfcd5a8dd77a509471436b3068e1a947deb309b39cc3c011ab",{"version":"544c8a3e59ba932ffb6804311eaf15ba579e3e90eb674fecd673628739df04db","signature":"e96757dfab7ed1b53c0f8955ce7bc450c81634bb81b572a0ac6c3826bbdb1e81"},{"version":"773bb44d86c3830f9467799342da3454f81206d9a4db5372205693e9d5bc9385","signature":"c6c4036f010aad1e50296d75513cdb65c6af6d9a9f2912569c43e4645072dbfc"},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true},"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f",{"version":"17a1140b90821c2c8d7064c9fc7598797c385714e6aa88b85e30b1159af8dc9b","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","dab86d9604fe40854ef3c0a6f9e8948873dc3509213418e5e457f410fd11200f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"2c45b35f4850881ab132f80d3cb51e8a359a4d8fafdc5ff2401d260dc27862f4","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","09326ae5f7e3d49be5cd9ea00eb814770e71870a438faa2efd8bdd9b4db21320",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"ff07a9a03c65732ccc59b3c65bc584173da093bd563a6565411c01f5703bd3cb","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ed2a670a77a1b80653c5bde2d813b0ab2e92872cc9b2b611ce11050b95139be6","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","105b9a2234dcb06ae922f2cd8297201136d416503ff7d16c72bfc8791e9895c1","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","6cffc933aac260d5ac5d45a00b35454c98edbb6c0e80b964871b268cc199a871","43883cf3635bb1846cbdc6c363787b76227677388c74f7313e3f0edb380840fa","88dc553591ac933378f3b4a2711623d9fd2fb43d5e73617a8ced49061daf5a9a","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","6fa5d56af71f07dc276aae3f6f30807a9cccf758517fb39742af72e963553d80","253b95673c4e01189af13e855c76a7f7c24197f4179954521bf2a50db5cfe643","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","24e095a1c10c69209becca78540530d82e45429062595a6c9c8296fcbfe4857d","f380ae8164792d9690a74f6b567b9e43d5323b580f074e50f68f983c0d073b5b","0fd641a3b3e3ec89058051a284135a3f30b94a325fb809c4e4159ec5495b5cdc","a573e489ebefb1582a6164013d1f1b843ae0088a68e9a829738ad0f8466e040a","10ef818a2a33fc987778be894fa34210ec986e66d440dd5cc6f657e9dda4fd76","e6abd59914a314cc1a102335ea44603495c70bef843e6de6306b543c3372623b","6ab1224e0149cc983d5da72ff3540bc0cad8ee7b23cf2a3da136f77f76d01763","e059fb0805a29ea3976d703a6f082c1493ac5583ca8011e8c5b86d0a23667d0d","16fbf548a0337a83d30552e990b6832fd24bbc47042a8c491e1dc93029b4222f","0c4c7303956a4726568c801dcd81e9fbce32fbf74565f735bbcf46ba66417769","b91eb5533c4dc4775c728f08afccaaf8cce3d98cf556a56cad22a305a3f027e8","9249c34e7282d17a2749677c3521ea625f73c2b48792af08fa9c5e09abc6a882",{"version":"81defd88d24375881fb6da0577fa5570f29fb462019439e01a0e7b948fd57c5c","affectsGlobalScope":true}],"root":[[45,48],51,52],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDeclarationOnly":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"importHelpers":true,"module":99,"noEmitOnError":true,"noImplicitReturns":true,"outDir":"./types","preserveConstEnums":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[60,99,106,115,117],[99,115,123,124,125,127,128],[99,106,115,123],[99,113],[99,109,115,118,120,121,122],[99,106,108,109,110,112,114],[99],[70,99,106],[99,109],[99,111],[53,99],[56,99],[57,62,90,99],[58,69,70,77,87,98,99],[58,59,69,77,99],[60,99],[61,62,70,78,99],[62,87,95,99],[63,65,69,77,99],[64,99],[65,66,99],[69,99],[67,69,99],[69,70,71,87,98,99],[69,70,71,84,87,90,99],[99,103],[65,72,77,87,98,99],[69,70,72,73,77,87,95,98,99],[72,74,87,95,98,99],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[69,75,99],[76,98,99],[65,69,77,87,99],[78,99],[79,99],[56,80,99],[81,97,99,103],[82,99],[83,99],[69,84,85,99],[84,86,99,101],[57,69,87,88,89,90,99],[57,87,89,99],[87,88,99],[90,99],[91,99],[69,93,94,99],[93,94,99],[62,77,87,95,99],[96,99],[77,97,99],[57,72,83,98,99],[62,99],[87,99,100],[99,101],[99,102],[57,62,69,71,80,87,98,99,101,103],[87,99,104],[99,107],[75,99,106],[99,106,115,119],[99,115,116],[99,120],[99,115,123,127],[99,106,115,123,126],[99,115,129,130],[47,99],[47,48,50,99],[47,48,51,99],[45,46,99],[49,99],[47],[47,48],[47,48,51],[45,46]],"referencedMap":[[118,1],[129,2],[124,3],[114,4],[123,5],[115,6],[113,7],[119,8],[109,7],[111,9],[112,10],[53,11],[54,11],[56,12],[57,13],[58,14],[59,15],[60,16],[61,17],[62,18],[63,19],[64,20],[65,21],[66,21],[68,22],[67,23],[69,22],[70,24],[71,25],[55,26],[105,7],[72,27],[73,28],[74,29],[106,30],[75,31],[76,32],[77,33],[78,34],[79,35],[80,36],[81,37],[82,38],[83,39],[84,40],[85,40],[86,41],[87,42],[89,43],[88,44],[90,45],[91,46],[92,7],[93,47],[94,48],[95,49],[96,50],[97,51],[98,52],[99,53],[100,54],[101,55],[102,56],[103,57],[104,58],[116,7],[107,7],[108,59],[110,7],[122,60],[126,7],[125,7],[130,7],[132,7],[120,61],[117,62],[121,63],[128,64],[127,65],[131,66],[43,7],[44,7],[8,7],[10,7],[9,7],[2,7],[11,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[3,7],[4,7],[22,7],[19,7],[20,7],[21,7],[23,7],[24,7],[25,7],[5,7],[26,7],[27,7],[28,7],[29,7],[6,7],[33,7],[30,7],[31,7],[32,7],[34,7],[7,7],[35,7],[40,7],[41,7],[36,7],[37,7],[38,7],[39,7],[1,7],[42,7],[48,67],[51,68],[52,69],[45,7],[46,7],[47,70],[50,71],[49,7]],"exportedModulesMap":[[118,1],[129,2],[124,3],[114,4],[123,5],[115,6],[113,7],[119,8],[109,7],[111,9],[112,10],[53,11],[54,11],[56,12],[57,13],[58,14],[59,15],[60,16],[61,17],[62,18],[63,19],[64,20],[65,21],[66,21],[68,22],[67,23],[69,22],[70,24],[71,25],[55,26],[105,7],[72,27],[73,28],[74,29],[106,30],[75,31],[76,32],[77,33],[78,34],[79,35],[80,36],[81,37],[82,38],[83,39],[84,40],[85,40],[86,41],[87,42],[89,43],[88,44],[90,45],[91,46],[92,7],[93,47],[94,48],[95,49],[96,50],[97,51],[98,52],[99,53],[100,54],[101,55],[102,56],[103,57],[104,58],[116,7],[107,7],[108,59],[110,7],[122,60],[126,7],[125,7],[130,7],[132,7],[120,61],[117,62],[121,63],[128,64],[127,65],[131,66],[43,7],[44,7],[8,7],[10,7],[9,7],[2,7],[11,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[3,7],[4,7],[22,7],[19,7],[20,7],[21,7],[23,7],[24,7],[25,7],[5,7],[26,7],[27,7],[28,7],[29,7],[6,7],[33,7],[30,7],[31,7],[32,7],[34,7],[7,7],[35,7],[40,7],[41,7],[36,7],[37,7],[38,7],[39,7],[1,7],[42,7],[48,72],[51,73],[52,74],[47,75],[50,71],[49,7]],"semanticDiagnosticsPerFile":[118,129,124,114,123,115,113,119,109,111,112,53,54,56,57,58,59,60,61,62,63,64,65,66,68,67,69,70,71,55,105,72,73,74,106,75,76,77,78,79,80,81,82,83,84,85,86,87,89,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,116,107,108,110,122,126,125,130,132,120,117,121,128,127,131,43,44,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,48,51,52,45,46,47,50,49],"latestChangedDtsFile":"./types/index.d.ts"},"version":"5.0.0-dev.20230223"}
@@ -1,32 +1,33 @@
1
- import { EventSubscription } from './types';
2
- export declare abstract class BasePubSubService {
3
- /**
4
- * Method to publish a message
5
- * @param event The event or channel to publish to.
6
- * @param data The data to publish on the channel.
7
- */
8
- publish<T = any>(_eventName: string | any, _data?: T, _delay?: number): void | boolean | Promise<boolean>;
9
- /**
10
- * Subscribes to a message channel or message type.
11
- * @param event The event channel or event data type.
12
- * @param callback The callback to be invoked when the specified message is published.
13
- * @return possibly a Subscription
14
- */
15
- subscribe<T = any>(_eventName: string | Function, _callback: (data: T) => void): EventSubscription | any;
16
- /**
17
- * Subscribes to a custom event message channel or message type.
18
- * This is similar to the "subscribe" except that the callback receives an event typed as CustomEventInit and the data will be inside its "event.detail"
19
- * @param event The event channel or event data type.
20
- * @param callback The callback to be invoked when the specified message is published.
21
- * @return possibly a Subscription
22
- */
23
- subscribeEvent?<T = any>(_eventName: string | Function, _callback: (event: CustomEventInit<T>) => void): EventSubscription | any;
24
- /**
25
- * Unsubscribes a message name
26
- * @param event The event name
27
- * @return possibly a Subscription
28
- */
29
- unsubscribe(_eventName: string, _callback: (event: CustomEventInit) => void): void;
30
- /** Unsubscribes all subscriptions that currently exists */
31
- unsubscribeAll(_subscriptions?: EventSubscription[]): void;
32
- }
1
+ import { EventSubscription } from './types';
2
+ export declare abstract class BasePubSubService {
3
+ /**
4
+ * Method to publish a message
5
+ * @param event The event or channel to publish to.
6
+ * @param data The data to publish on the channel.
7
+ */
8
+ publish<T = any>(_eventName: string | any, _data?: T, _delay?: number): void | boolean | Promise<boolean>;
9
+ /**
10
+ * Subscribes to a message channel or message type.
11
+ * @param event The event channel or event data type.
12
+ * @param callback The callback to be invoked when the specified message is published.
13
+ * @return possibly a Subscription
14
+ */
15
+ subscribe<T = any>(_eventName: string | Function, _callback: (data: T) => void): EventSubscription | any;
16
+ /**
17
+ * Subscribes to a custom event message channel or message type.
18
+ * This is similar to the "subscribe" except that the callback receives an event typed as CustomEventInit and the data will be inside its "event.detail"
19
+ * @param event The event channel or event data type.
20
+ * @param callback The callback to be invoked when the specified message is published.
21
+ * @return possibly a Subscription
22
+ */
23
+ subscribeEvent?<T = any>(_eventName: string | Function, _callback: (event: CustomEventInit<T>) => void): EventSubscription | any;
24
+ /**
25
+ * Unsubscribes a message name
26
+ * @param event The event name
27
+ * @return possibly a Subscription
28
+ */
29
+ unsubscribe(_eventName: string, _callback: (event: CustomEventInit) => void): void;
30
+ /** Unsubscribes all subscriptions that currently exists */
31
+ unsubscribeAll(_subscriptions?: EventSubscription[]): void;
32
+ }
33
+ //# sourceMappingURL=basePubSub.service.d.ts.map