Socket
Socket
Sign inDemoInstall

zig

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zig - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

4

package.json
{
"name": "zig",
"version": "0.1.1",
"version": "0.2.0",
"description": "Simple, but naughty, control flow for Node.js.",

@@ -25,4 +25,4 @@ "main": "zig.js",

"dependencies": {
"lodash": "~2.4.1"
"lodash": "4"
}
}

@@ -116,3 +116,3 @@ "use strict";

done(null,1)
},10)
},12)
})

@@ -119,0 +119,0 @@ .run(function(data,done){

@@ -34,3 +34,3 @@ /* Copyright (c) 2014-2015 Richard Rodger, MIT License */

var ifdepth = 0, active = true
var collect = 0, collector = []
var collect = 0, collected = 0, collector = []
var to

@@ -65,8 +65,11 @@

nextstep()
}
}
else if( 'run' == step.type && active ) {
var pos = collect
collect++
collector.push(null)
step.fn(data,function(err,out){
if( err ) return errhandler(err);
collector.push(out)
collected++
collector[pos] = out
check_collect()

@@ -105,5 +108,6 @@ })

if( dead ) return;
if( collector.length >= collect ) {
if( collected >= collect ) {
data = _.clone(collector)
collect = 0
collected = 0
collector = []

@@ -131,3 +135,3 @@ wait_fn()

function evalif(data,cond) {

@@ -161,3 +165,3 @@ var bool = false

}
self.wait = function( fn ) {

@@ -164,0 +168,0 @@ steps.push({

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