Comparing version 0.1.3 to 0.1.4
@@ -96,2 +96,5 @@ // Generated by CoffeeScript 1.3.3 | ||
args = Array.prototype.slice.call(arguments); | ||
if (args.length === 1 && typeof args[0] === 'boolean') { | ||
args.unshift(null); | ||
} | ||
if (args[0]) { | ||
@@ -98,0 +101,0 @@ return _this._bubble('error', args); |
{ | ||
"name": "line", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Control flow like a boss", | ||
@@ -5,0 +5,0 @@ "keywords": ["ender", "flow", "control", "async"], |
@@ -123,2 +123,34 @@ // Generated by CoffeeScript 1.3.3 | ||
}, | ||
'true/false callbacks': { | ||
topic: function() { | ||
var falseFn, results, success, trueFn; | ||
results = []; | ||
success = this.success; | ||
trueFn = function(cb) { | ||
return process.nextTick(function() { | ||
return cb(true); | ||
}); | ||
}; | ||
falseFn = function(cb) { | ||
return process.nextTick(function() { | ||
return cb(false); | ||
}); | ||
}; | ||
new line.Line(null, function() { | ||
return trueFn(this.wait(function(result) { | ||
return results.push(result); | ||
})); | ||
}, function() { | ||
return falseFn(this.wait(function(result) { | ||
return results.push(result); | ||
})); | ||
}, function() { | ||
return success(results); | ||
}); | ||
}, | ||
'should not trigger errors': function(results) { | ||
equal(results[0], true); | ||
return equal(results[1], false); | ||
} | ||
}, | ||
'more nested lines': { | ||
@@ -125,0 +157,0 @@ topic: function() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
25583
418
0