asyncgo
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,19 +9,15 @@ var async = require('async'); | ||
module.exports = function() { | ||
var self = this; | ||
var self = this, show = false; | ||
// Get the arguments and method to call. | ||
var args = _.filter(_.values(arguments), function(arg) { | ||
return !!arg; | ||
}); | ||
// Get the arguments. | ||
var args = _.values(arguments); | ||
// See if we should print the command... | ||
if (typeof args[0] === 'boolean') { | ||
show = args.shift(); | ||
} | ||
// Get the method. | ||
var method = args.shift(); | ||
var show = true; | ||
// If the first argument is a boolean allow then to not display. | ||
if (typeof method==='boolean') { | ||
show = method; | ||
method = args.shift(); | ||
} | ||
// Return the async.js signature. | ||
@@ -28,0 +24,0 @@ return function(done) { |
{ | ||
"name": "asyncgo", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Provides a wrapper method for easily integrating asynchronous callbacks with Async.js.", | ||
@@ -5,0 +5,0 @@ "author": { |
2802
56