promise-thunk
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "promise-thunk", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Promise and thunk", | ||
@@ -5,0 +5,0 @@ "main": "promise-thunk.js", |
@@ -372,4 +372,6 @@ // promise-thunk.js | ||
res[i] = val; if (--n === 0) resolve(res); } | ||
function error(err) { | ||
if (n > 0) reject(err); n = 0; } | ||
if (p instanceof PromiseThunk || isPromise(p)) | ||
return p.then(complete, reject); | ||
return p.then(complete, error); | ||
complete(p); | ||
@@ -376,0 +378,0 @@ }); // promises.forEach |
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
20519
404