promiser.js
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "promiser.js", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Creates a native ES6 Promise from a function which takes a node style Error-First callback.", | ||
@@ -5,0 +5,0 @@ "main": "promiser.js", |
@@ -11,3 +11,7 @@ const createPromise = (fttc, context) => { | ||
} else { | ||
resolve(res); | ||
if (res.length > 1) { | ||
resolve(res); | ||
} else { | ||
resolve(res[0]); | ||
} | ||
} | ||
@@ -14,0 +18,0 @@ })); |
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
13788
54