@cadenza.io/core 3.16.1 → 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 CHANGED
@@ -1353,7 +1353,7 @@ var SignalBroker = class _SignalBroker {
1353
1353
  "Register signal",
1354
1354
  (ctx) => {
1355
1355
  const { signalName } = ctx;
1356
- if (this.signalObservers.has(signalName)) {
1356
+ if (!this.signalObservers.has(signalName)) {
1357
1357
  this.addSignal(signalName);
1358
1358
  }
1359
1359
  this.signalObservers.get(signalName).registered = true;
@@ -1482,7 +1482,7 @@ var SignalBroker = class _SignalBroker {
1482
1482
  * @return {void} Does not return a value.
1483
1483
  */
1484
1484
  squash(signal, context, options = { squash: true }) {
1485
- let { squashId, delayMs } = options;
1485
+ let { squashId, delayMs = 500 } = options;
1486
1486
  if (!squashId) {
1487
1487
  squashId = signal;
1488
1488
  }
@@ -1493,7 +1493,7 @@ var SignalBroker = class _SignalBroker {
1493
1493
  this.emit(signal, this.squashedContexts.get(squashId));
1494
1494
  this.squashedEmitters.delete(squashId);
1495
1495
  this.squashedContexts.delete(squashId);
1496
- }, delayMs ?? 300)
1496
+ }, delayMs ?? 500)
1497
1497
  );
1498
1498
  this.squashedContexts.set(squashId, context);
1499
1499
  } else {