@superhero/eventflow-spoke 4.4.9 → 4.5.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.
- package/index.js +0 -3
- package/manager/listeners.js +5 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -147,9 +147,6 @@ export default class Spoke
|
|
|
147
147
|
|
|
148
148
|
// subscribe to all events that are already expected to be subscribed to
|
|
149
149
|
const subscriptions = deepmerge(this.consumers.listeners, this.subscriptions.listeners)
|
|
150
|
-
|
|
151
|
-
this.log.info`subscriptions ${subscriptions}`
|
|
152
|
-
|
|
153
150
|
for(const domain in subscriptions)
|
|
154
151
|
{
|
|
155
152
|
for(const name of subscriptions[domain])
|
package/manager/listeners.js
CHANGED
|
@@ -63,9 +63,12 @@ export default class ListenersManager
|
|
|
63
63
|
throw error
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
deleteProperty : (_, domain) => this.#map.delete(domain),
|
|
67
67
|
has : (_, domain) => this.#map.has(domain),
|
|
68
|
-
|
|
68
|
+
get : (target, domain) => this.#map.get(domain)
|
|
69
|
+
?? domain in target
|
|
70
|
+
? target[domain]
|
|
71
|
+
: target.lazyload(domain)
|
|
69
72
|
})
|
|
70
73
|
}
|
|
71
74
|
|