Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hackdonalds/emitter

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hackdonalds/emitter - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

dist/index.d.ts

@@ -35,5 +35,5 @@ declare type EventHandler = (event?: any) => void;

*/
emit(type: string & EventNames, evt: any): void;
emit(type: string & EventNames, evt?: any): void;
}
export {};
//# sourceMappingURL=index.d.ts.map

@@ -5,3 +5,3 @@ {

"keywords": ["event", "emitter", "isomorphic", "events", "nodejs", "Javascript", "mitt", "eventemitter"],
"version": "0.5.0",
"version": "0.5.1",
"main": "dist/index.js",

@@ -8,0 +8,0 @@ "files": ["dist","README.md","src"],

@@ -49,3 +49,3 @@ type EventHandler = (event?: any) => void;

*/
emit(type: string & EventNames, evt: any) {
emit(type: string & EventNames, evt?: any) {
(this.listeners[type] || []).slice().map((handler) => { handler(evt); });

@@ -52,0 +52,0 @@ (this.listeners['*'] || []).slice().map((handler) => { handler(type, evt); });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc