@cadenza.io/core 3.16.2 → 3.16.3
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1445,7 +1445,7 @@ var SignalBroker = class _SignalBroker {
|
|
|
1445
1445
|
* @return {void} Does not return a value.
|
|
1446
1446
|
*/
|
|
1447
1447
|
squash(signal, context, options = { squash: true }) {
|
|
1448
|
-
let { squashId, delayMs } = options;
|
|
1448
|
+
let { squashId, delayMs = 500 } = options;
|
|
1449
1449
|
if (!squashId) {
|
|
1450
1450
|
squashId = signal;
|
|
1451
1451
|
}
|
|
@@ -1456,7 +1456,7 @@ var SignalBroker = class _SignalBroker {
|
|
|
1456
1456
|
this.emit(signal, this.squashedContexts.get(squashId));
|
|
1457
1457
|
this.squashedEmitters.delete(squashId);
|
|
1458
1458
|
this.squashedContexts.delete(squashId);
|
|
1459
|
-
}, delayMs ??
|
|
1459
|
+
}, delayMs ?? 500)
|
|
1460
1460
|
);
|
|
1461
1461
|
this.squashedContexts.set(squashId, context);
|
|
1462
1462
|
} else {
|