cradova 3.6.4 → 3.6.5

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -407,9 +407,11 @@ class Signal {
407
407
  });
408
408
  return;
409
409
  }
410
- if (this.pipe[eventName]) {
410
+ if (eventName in this.pipe) {
411
411
  comp.pipes.set(eventName, this.pipe[eventName]);
412
412
  comp.signals.set(eventName, this);
413
+ } else {
414
+ console.error(` ✘ Cradova err: ${String(eventName)} is not a valid event for this Signal`);
413
415
  }
414
416
  if (this.subs[eventName]?.find((cmp) => cmp.id === comp.id)) {
415
417
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cradova",
3
- "version": "3.6.4",
3
+ "version": "3.6.5",
4
4
  "description": "Build Powerful ⚡ Web Apps with Ease",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",