@oxog/react-check 1.0.0 → 1.0.1

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/cli.js CHANGED
@@ -4686,7 +4686,7 @@ var InputHandler = class _InputHandler extends EventEmitter {
4686
4686
  emitKey(event) {
4687
4687
  this.emit("key", event);
4688
4688
  const specificEvent = `key:${event.name}`;
4689
- if (specificEvent in this.listeners) {
4689
+ if (this.listenerCount(specificEvent) > 0) {
4690
4690
  this.emit(specificEvent, event);
4691
4691
  }
4692
4692
  }