esfunctional
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -359,3 +359,3 @@ 'use strict'; | ||
if (result.done) { | ||
return result.value; | ||
return result.value != null ? result.value : Promise.resolve(result.value); | ||
} else { | ||
@@ -367,3 +367,4 @@ return Promise.resolve(result.value).then(onFulfilled, onRejected); | ||
if (generatorFunc.constructor.name !== 'GeneratorFunction') { | ||
return generatorFunc(arg); | ||
let value = generatorFunc(arg); | ||
return value != null ? value : Promise.resolve(value); | ||
} | ||
@@ -370,0 +371,0 @@ |
{ | ||
"name": "esfunctional", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Next Generation EcmaScript Functional Helpers", | ||
@@ -5,0 +5,0 @@ "main": "lib/v1/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
18559
461