-
Notifications
You must be signed in to change notification settings - Fork 90
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
6 changed files
with
32 additions
and
72 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-html5", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"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", | ||
|
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,4 +1,4 @@ | ||
// Hprose for HTML5 v2.0.8 | ||
// Hprose for HTML5 v2.0.10 | ||
// Copyright (c) 2008-2016 http://hprose.com | ||
// Hprose is freely distributable under the MIT license. | ||
// For all details and documentation: | ||
|
@@ -3930,7 +3930,7 @@ TimeoutError.prototype.constructor = TimeoutError; | |
* * | ||
* hprose client for HTML5. * | ||
* * | ||
* LastModified: Apr 1, 2016 * | ||
* LastModified: Jul 4, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -4897,14 +4897,9 @@ TimeoutError.prototype.constructor = TimeoutError; | |
_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); | ||
} | ||
|
@@ -4913,14 +4908,9 @@ TimeoutError.prototype.constructor = TimeoutError; | |
_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); | ||
} | ||
|
@@ -4929,14 +4919,9 @@ TimeoutError.prototype.constructor = TimeoutError; | |
_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); | ||
} | ||
|
@@ -4945,14 +4930,9 @@ TimeoutError.prototype.constructor = TimeoutError; | |
_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); | ||
} | ||
|
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 HTML5. * | ||
* * | ||
* LastModified: Apr 1, 2016 * | ||
* LastModified: Jul 4, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -979,14 +979,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); | ||
} | ||
|
@@ -995,14 +990,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); | ||
} | ||
|
@@ -1011,14 +1001,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); | ||
} | ||
|
@@ -1027,14 +1012,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