forked from hprose/hprose-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
37 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"author": "Ma Bingyao <[email protected]>", | ||
"name": "hprose", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Hprose is a High Performance Remote Object Service Engine. It is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware.", | ||
"keywords": [ | ||
"hprose", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* * | ||
* hprose client for JavaScript. * | ||
* * | ||
* LastModified: Apr 1, 2016 * | ||
* LastModified: Jul 4, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -982,14 +982,9 @@ | |
_invokeHandler = _invokeHandlers.reduceRight( | ||
function(next, handler) { | ||
return function(name, args, context) { | ||
try { | ||
var result = handler(name, args, context, next); | ||
if (Future.isFuture(result)) { return result; } | ||
return Future.value(result); | ||
} | ||
catch (e) { | ||
return Future.error(e); | ||
} | ||
return Future.sync(function() { | ||
return handler(name, args, context, next); | ||
}); | ||
}; | ||
}, invokeHandler); | ||
} | ||
|
@@ -998,14 +993,9 @@ | |
_batchInvokeHandler = _batchInvokeHandlers.reduceRight( | ||
function(next, handler) { | ||
return function(batches, context) { | ||
try { | ||
var result = handler(batches, context, next); | ||
if (Future.isFuture(result)) { return result; } | ||
return Future.value(result); | ||
} | ||
catch (e) { | ||
return Future.error(e); | ||
} | ||
return Future.sync(function() { | ||
return handler(batches, context, next); | ||
}); | ||
}; | ||
}, batchInvokeHandler); | ||
} | ||
|
@@ -1014,14 +1004,9 @@ | |
_beforeFilterHandler = _beforeFilterHandlers.reduceRight( | ||
function(next, handler) { | ||
return function(request, context) { | ||
try { | ||
var response = handler(request, context, next); | ||
if (Future.isFuture(response)) { return response; } | ||
return Future.value(response); | ||
} | ||
catch (e) { | ||
return Future.error(e); | ||
} | ||
return Future.sync(function() { | ||
return handler(request, context, next); | ||
}); | ||
}; | ||
}, beforeFilterHandler); | ||
} | ||
|
@@ -1030,14 +1015,9 @@ | |
_afterFilterHandler = _afterFilterHandlers.reduceRight( | ||
function(next, handler) { | ||
return function(request, context) { | ||
try { | ||
var response = handler(request, context, next); | ||
if (Future.isFuture(response)) { return response; } | ||
return Future.value(response); | ||
} | ||
catch (e) { | ||
return Future.error(e); | ||
} | ||
return Future.sync(function() { | ||
return handler(request, context, next); | ||
}); | ||
}; | ||
}, afterFilterHandler); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.