dom-event-utils
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "dom-event-utils", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Very small library that makes working with DOM event emitters API a little easier to work with", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "build": "tsc", |
@@ -45,4 +45,8 @@ export type Callback = (...args: any[]) => void | ||
once(target, eventName, (...args) => { | ||
fn.apply(null, args); | ||
resolve(); | ||
const ret = fn.apply(null, args); | ||
if (ret && ret.then) { | ||
return ret.then(resolve); | ||
} else { | ||
resolve(); | ||
} | ||
}); | ||
@@ -49,0 +53,0 @@ }, timeout); |
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
11197
183