node.flow
Advanced tools
Comparing version 1.2.0 to 1.2.2
# History | ||
## 1.2.2 / 2012-12-31 | ||
- [refactoring] Passing variable to error handler | ||
## 1.2.1 / 2012-12-30 | ||
- [refactoring] Catch error when first argument is an instance of Error | ||
- [update packages] should->1.2.1 | ||
## 1.2.0 / 2012-11-21 | ||
- [new feature] Add error handler | ||
## 1.1.3 / 2012-07-23 | ||
@@ -60,2 +79,2 @@ | ||
- Initial release | ||
- Initial release |
@@ -131,6 +131,11 @@ /*! | ||
_run_series : function ( args ){ | ||
if( args.length && args[ 0 ] instanceof Error ){ | ||
return this._error.apply( this, args ); | ||
} | ||
try{ | ||
this._series.shift().apply( this, args ); | ||
}catch( err ){ | ||
this._error( err ); | ||
args.unshift( err ); | ||
this._error.apply( this, args ); | ||
} | ||
@@ -137,0 +142,0 @@ }, |
{ | ||
"name" : "node.flow", | ||
"version" : "1.2.0", | ||
"version" : "1.2.2", | ||
"description" : "A deadly simple flow control package for node.js", | ||
@@ -11,3 +11,3 @@ "keywords" : [ "flow", "node.flow", "flow control", "async", "sync", "steps" ], | ||
"devDependencies": { | ||
"should": "1.0.0" | ||
"should": "1.2.1" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": { |
21642
362