Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chanel

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chanel - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

test/generators-functions-test.js

10

lib/proto.js

@@ -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 @@

11

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc