appolo-event-dispatcher
Advanced tools
Comparing version 6.0.7 to 6.0.8
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75
16792
17
255