@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.mjs
CHANGED
|
@@ -1935,7 +1935,13 @@ var SystemEventBus = class {
|
|
|
1935
1935
|
this.ringBuffer.push(event);
|
|
1936
1936
|
for (const subscriber of this.subscribers) {
|
|
1937
1937
|
if (matchesFilter(event, subscriber.filter)) {
|
|
1938
|
-
|
|
1938
|
+
queueMicrotask(() => {
|
|
1939
|
+
try {
|
|
1940
|
+
subscriber.callback(event);
|
|
1941
|
+
} catch (err) {
|
|
1942
|
+
console.error(`[EventBus] Subscriber error for ${event.category}:`, err);
|
|
1943
|
+
}
|
|
1944
|
+
});
|
|
1939
1945
|
}
|
|
1940
1946
|
}
|
|
1941
1947
|
}
|