@camstack/core 0.1.11 → 0.1.12
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/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5157,7 +5157,13 @@ var SystemEventBus = class {
|
|
|
5157
5157
|
this.ringBuffer.push(event);
|
|
5158
5158
|
for (const subscriber of this.subscribers) {
|
|
5159
5159
|
if (matchesFilter(event, subscriber.filter)) {
|
|
5160
|
-
|
|
5160
|
+
queueMicrotask(() => {
|
|
5161
|
+
try {
|
|
5162
|
+
subscriber.callback(event);
|
|
5163
|
+
} catch (err) {
|
|
5164
|
+
console.error(`[EventBus] Subscriber error for ${event.category}:`, err);
|
|
5165
|
+
}
|
|
5166
|
+
});
|
|
5161
5167
|
}
|
|
5162
5168
|
}
|
|
5163
5169
|
}
|