Comparing version 0.0.1 to 0.0.2
@@ -22,3 +22,5 @@ /* | ||
var self = this; | ||
if (type(callbacks) === 'function') callbacks = slice(arguments); | ||
if (!arguments.length) return this; | ||
if (type(callbacks) !== 'array') callbacks = slice(arguments); | ||
if (!callbacks.length) return this; | ||
@@ -41,3 +43,2 @@ var i = 0; | ||
})); | ||
return this; | ||
@@ -143,4 +144,4 @@ }, | ||
var flow = new Flow(); | ||
if (arguments.length) flow.then.apply(flow, arguments); | ||
flow.then.apply(flow, arguments); | ||
return flow; | ||
}; |
{ | ||
"name": "finally", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "sane flow control library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -122,2 +122,10 @@ "use strict" | ||
it('should ignore empty parallels', function() { | ||
flow().then([]).then().finally(function(err) { | ||
expect(err).to.be(undefined) | ||
}) | ||
}) | ||
}) | ||
@@ -124,0 +132,0 @@ |
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
14830
349