Comparing version 0.1.28 to 0.1.29
@@ -433,8 +433,9 @@ 'use strict' | ||
* @param cb | ||
* @param option: option for browser EventListener | ||
* @constructor | ||
*/ | ||
On(event, cb) { | ||
On(event, cb, option) { | ||
try { | ||
if(!ConnectionEvent.allowed.includes(event)) throw `Invalid event: ${event}`; | ||
if(Util.IsBrowser()) this.eventEmitter.addEventListener(event, cb); | ||
if(Util.IsBrowser()) this.eventEmitter.addEventListener(event, cb, option); | ||
else this.eventEmitter.on(event, cb); | ||
@@ -441,0 +442,0 @@ } catch (e) { |
{ | ||
"name": "guardee", | ||
"version": "0.1.28", | ||
"version": "0.1.29", | ||
"description": "Guardee Wallet API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
74397
1875