Skip to content

Commit

Permalink
Update to v2.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Jul 3, 2016
1 parent 276461c commit e4530a7
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 72 deletions.
2 changes: 1 addition & 1 deletion bower.json
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",
Expand Down
48 changes: 14 additions & 34 deletions dist/hprose-html5.js
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:
Expand Down Expand Up @@ -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]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/hprose-html5.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "hprose-html5",
"filename": "hprose-html5.js",
"version": "2.0.9",
"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. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.",
"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.",
"homepage": "https://github.com/andot/hprose",
"keywords": [
"hprose",
Expand Down
46 changes: 13 additions & 33 deletions src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* hprose client for HTML5. *
* *
* LastModified: Apr 1, 2016 *
* LastModified: Jul 4, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/CopyRight.js
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:
Expand Down

0 comments on commit e4530a7

Please sign in to comment.