Comparing version 3.0.30 to 3.0.31
@@ -97,3 +97,7 @@ /*global Map Promise Set*/ | ||
s.events.delete(promise) | ||
return sig.value === undefined ? results : sig.value | ||
return sig.value === undefined | ||
? results.length < 2 | ||
? results[0] | ||
: results | ||
: sig.value | ||
}) | ||
@@ -100,0 +104,0 @@ .catch(function(err) { |
{ | ||
"name": "dot-event", | ||
"version": "3.0.30", | ||
"version": "3.0.31", | ||
"description": "Powerful event emitter", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -59,3 +59,3 @@ # dot-event | ||
dot.on(async () => "value") | ||
dot().then(result => /* [ "value" ] */) | ||
dot().then(result => /* "value" */) | ||
``` | ||
@@ -186,2 +186,3 @@ | ||
| ad | Google Publisher Tag | https://github.com/dot-event/ad#readme | | ||
| alias | Argument aliases | https://github.com/dot-event/alias#readme | | ||
| arg | CLI and URL argument | https://github.com/dot-event/arg#readme | | ||
@@ -188,0 +189,0 @@ | controller | DOM controller | https://github.com/dot-event/controller#readme | |
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
16542
377
194