appolo-event-dispatcher
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -18,3 +18,3 @@ "use strict"; | ||
once(fn, scope, options = {}) { | ||
this._dispatcher.once(this.EVENT_NAME, fn, scope, Object.assign(Object.assign({}, options), this._opts)); | ||
return this._dispatcher.once(this.EVENT_NAME, fn, scope, Object.assign(Object.assign({}, options), this._opts)); | ||
} | ||
@@ -21,0 +21,0 @@ iterator(event, options) { |
@@ -28,3 +28,3 @@ "use strict"; | ||
public once(fn?: (payload: T) => any, scope?: any, options: { timeout?: number } = {}): Promise<any> | void { | ||
this._dispatcher.once(this.EVENT_NAME, fn, scope, {...options, ...this._opts}); | ||
return this._dispatcher.once(this.EVENT_NAME, fn, scope, {...options, ...this._opts}); | ||
} | ||
@@ -31,0 +31,0 @@ |
@@ -23,3 +23,3 @@ { | ||
"main": "./index.js", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"license": "MIT", | ||
@@ -35,10 +35,9 @@ "repository": { | ||
"tslib": "^1.11.1", | ||
"@types/bluebird": "^3.5.27", | ||
"@types/chai": "^4.2.1", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^13.9.1", | ||
"@types/chai": "^4.2.11", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.11.0", | ||
"chai": "^4.2.0", | ||
"mocha": "^6.2.0", | ||
"typescript": "^3.6.2" | ||
"mocha": "^7.1.1", | ||
"typescript": "^3.8.3" | ||
} | ||
} |
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
7
51199