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

kgo

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kgo - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "kgo",
"version": "2.0.0",
"version": "2.0.1",
"description": "Flow control the super easy way",

@@ -5,0 +5,0 @@ "main": "kgo.js",

@@ -105,3 +105,3 @@ var ignoreDependency = /^\!.+/;

if(noMoreTasks){
if(noMoreTasks && Object.keys(results).length === emitter._taskCount){
emitter._complete = true;

@@ -115,4 +115,7 @@ emitter.emit('complete');

emitter._taskCount = Object.keys(results).length;
for(var key in tasks){
todo[key] = tasks[key];
emitter._taskCount += todo[key].names.length;
}

@@ -119,0 +122,0 @@

@@ -230,2 +230,33 @@ var test = require('grape'),

});
});
test('complete', function(t){
t.plan(3);
var a,b,c;
kgo
(function(done){
setTimeout(function(){
a = 1;
done();
},100);
})
(function(done){
setTimeout(function(){
b = 2;
done();
},100);
})
(function(done){
setTimeout(function(){
c = 3;
done();
},100);
})
.on('complete', function(){
t.equal(a,1);
t.equal(b,2);
t.equal(c,3);
});
});
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