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

appolo-event-dispatcher

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appolo-event-dispatcher - npm Package Compare versions

Comparing version 6.0.7 to 6.0.8

3

index.js

@@ -5,4 +5,3 @@ "use strict";

exports.EventDispatcher = eventDispatcher_1.EventDispatcher;
var hooksDispatcher_1 = require("./lib/hooksDispatcher");
exports.HooksDispatcher = hooksDispatcher_1.HooksDispatcher;
exports.CallbacksSymbol = eventDispatcher_1.CallbacksSymbol;
//# sourceMappingURL=index.js.map

@@ -1,4 +0,6 @@

export {EventDispatcher} from './lib/eventDispatcher'
export {EventDispatcher, CallbacksSymbol} from './lib/eventDispatcher'
export {IEventDispatcher} from './lib/IEventDispatcher'
export {HooksDispatcher} from './lib/hooksDispatcher'
export {IEventOptions} from './lib/IEventOptions'

@@ -5,5 +5,2 @@ export interface IEventOptions {

export interface IEventHook extends IEventOptions{
parallel?: boolean
}

@@ -10,0 +7,0 @@ export interface ICallback {

@@ -23,3 +23,3 @@ {

"main": "./index.js",
"version": "6.0.7",
"version": "6.0.8",
"license": "MIT",

@@ -26,0 +26,0 @@ "repository": {

@@ -32,2 +32,3 @@ # Appolo Event Dispatcher

//or with promise
let value = await eventHandler.once("test");

@@ -49,3 +50,3 @@

#### `once(event,[callback],[scope])`
add an event listener will be called only once if callback passed a promise will be returned
add an event listener will be called only once if no callback passed a promise will be returned
- `event` - event name.

@@ -71,4 +72,7 @@ - `callback` - callback function that will triggered on event name.

#### `hasListener(event,callback,[scope]):boolean`
return true if listener exists
## License
MIT

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