Comparing version 2.1.0 to 2.2.0
@@ -96,3 +96,11 @@ var co = require('co'); | ||
if (fn && 'function' == typeof fn.next && 'function' == typeof fn.throw) | ||
// Handle Promises | ||
if (fn && 'function' == typeof fn.then) { | ||
var p = fn; | ||
fn = function(f1) { p.then(function (res) { f1(null, res); }, f1); }; | ||
} | ||
var isNakedGenerators = Object.getPrototypeOf(fn).name === 'GeneratorFunctionPrototype'; | ||
var isGeneratorFunction = 'function' == typeof fn.next && 'function' == typeof fn.throw; | ||
if (isNakedGenerators || isGeneratorFunction) | ||
fn = co(fn); | ||
@@ -99,0 +107,0 @@ |
{ | ||
"name": "chanel", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Channel-based control-flow for parallel tasks with concurrency control", | ||
@@ -16,8 +16,9 @@ "repository": "cojs/chanel", | ||
"co": "*", | ||
"generator-supported": "~0.0.1", | ||
"to-descriptor": "^1.0.0" | ||
"generator-supported": "*", | ||
"to-descriptor": "*" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^1.7.0", | ||
"should": "^3.0.0", | ||
"co-wait": "*", | ||
"mocha": "*", | ||
"should": "*", | ||
"gnode": "*" | ||
@@ -24,0 +25,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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
39319
12
1224
0
4
4
Updatedgenerator-supported@*
Updatedto-descriptor@*