@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 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])
@@ -63,9 +63,12 @@ export default class ListenersManager
63
63
  throw error
64
64
  }
65
65
  },
66
- get : (target, domain) => this.#map.get(domain) ?? target.lazyload(domain),
66
+ deleteProperty : (_, domain) => this.#map.delete(domain),
67
67
  has : (_, domain) => this.#map.has(domain),
68
- deleteProperty : (_, domain) => this.#map.delete(domain)
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/eventflow-spoke",
3
- "version": "4.4.9",
3
+ "version": "4.5.0",
4
4
  "description": "Eventflow spoke is the client component in the eventflow ecosystem.",
5
5
  "keywords": [
6
6
  "eventflow",