Skip to content

Commit e4530a7

Browse files
committed
Update to v2.0.10
1 parent 276461c commit e4530a7

File tree

6 files changed

+32
-72
lines changed

6 files changed

+32
-72
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Ma Bingyao <andot@hprose.com>",
33
"name": "hprose-html5",
4-
"version": "2.0.9",
4+
"version": "2.0.10",
55
"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.",
66
"keywords": [
77
"hprose",

dist/hprose-html5.js

Lines changed: 14 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Hprose for HTML5 v2.0.8
1+
// Hprose for HTML5 v2.0.10
22
// Copyright (c) 2008-2016 http://hprose.com
33
// Hprose is freely distributable under the MIT license.
44
// For all details and documentation:
@@ -3930,7 +3930,7 @@ TimeoutError.prototype.constructor = TimeoutError;
39303930
* *
39313931
* hprose client for HTML5. *
39323932
* *
3933-
* LastModified: Apr 1, 2016 *
3933+
* LastModified: Jul 4, 2016 *
39343934
* Author: Ma Bingyao <andot@hprose.com> *
39353935
* *
39363936
\**********************************************************/
@@ -4897,14 +4897,9 @@ TimeoutError.prototype.constructor = TimeoutError;
48974897
_invokeHandler = _invokeHandlers.reduceRight(
48984898
function(next, handler) {
48994899
return function(name, args, context) {
4900-
try {
4901-
var result = handler(name, args, context, next);
4902-
if (Future.isFuture(result)) { return result; }
4903-
return Future.value(result);
4904-
}
4905-
catch (e) {
4906-
return Future.error(e);
4907-
}
4900+
return Future.sync(function() {
4901+
return handler(name, args, context, next);
4902+
});
49084903
};
49094904
}, invokeHandler);
49104905
}
@@ -4913,14 +4908,9 @@ TimeoutError.prototype.constructor = TimeoutError;
49134908
_batchInvokeHandler = _batchInvokeHandlers.reduceRight(
49144909
function(next, handler) {
49154910
return function(batches, context) {
4916-
try {
4917-
var result = handler(batches, context, next);
4918-
if (Future.isFuture(result)) { return result; }
4919-
return Future.value(result);
4920-
}
4921-
catch (e) {
4922-
return Future.error(e);
4923-
}
4911+
return Future.sync(function() {
4912+
return handler(batches, context, next);
4913+
});
49244914
};
49254915
}, batchInvokeHandler);
49264916
}
@@ -4929,14 +4919,9 @@ TimeoutError.prototype.constructor = TimeoutError;
49294919
_beforeFilterHandler = _beforeFilterHandlers.reduceRight(
49304920
function(next, handler) {
49314921
return function(request, context) {
4932-
try {
4933-
var response = handler(request, context, next);
4934-
if (Future.isFuture(response)) { return response; }
4935-
return Future.value(response);
4936-
}
4937-
catch (e) {
4938-
return Future.error(e);
4939-
}
4922+
return Future.sync(function() {
4923+
return handler(request, context, next);
4924+
});
49404925
};
49414926
}, beforeFilterHandler);
49424927
}
@@ -4945,14 +4930,9 @@ TimeoutError.prototype.constructor = TimeoutError;
49454930
_afterFilterHandler = _afterFilterHandlers.reduceRight(
49464931
function(next, handler) {
49474932
return function(request, context) {
4948-
try {
4949-
var response = handler(request, context, next);
4950-
if (Future.isFuture(response)) { return response; }
4951-
return Future.value(response);
4952-
}
4953-
catch (e) {
4954-
return Future.error(e);
4955-
}
4933+
return Future.sync(function() {
4934+
return handler(request, context, next);
4935+
});
49564936
};
49574937
}, afterFilterHandler);
49584938
}

dist/hprose-html5.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "hprose-html5",
33
"filename": "hprose-html5.js",
4-
"version": "2.0.9",
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. 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.",
4+
"version": "2.0.10",
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.",
66
"homepage": "https://github.com/andot/hprose",
77
"keywords": [
88
"hprose",

src/Client.js

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* *
1313
* hprose client for HTML5. *
1414
* *
15-
* LastModified: Apr 1, 2016 *
15+
* LastModified: Jul 4, 2016 *
1616
* Author: Ma Bingyao <andot@hprose.com> *
1717
* *
1818
\**********************************************************/
@@ -979,14 +979,9 @@
979979
_invokeHandler = _invokeHandlers.reduceRight(
980980
function(next, handler) {
981981
return function(name, args, context) {
982-
try {
983-
var result = handler(name, args, context, next);
984-
if (Future.isFuture(result)) { return result; }
985-
return Future.value(result);
986-
}
987-
catch (e) {
988-
return Future.error(e);
989-
}
982+
return Future.sync(function() {
983+
return handler(name, args, context, next);
984+
});
990985
};
991986
}, invokeHandler);
992987
}
@@ -995,14 +990,9 @@
995990
_batchInvokeHandler = _batchInvokeHandlers.reduceRight(
996991
function(next, handler) {
997992
return function(batches, context) {
998-
try {
999-
var result = handler(batches, context, next);
1000-
if (Future.isFuture(result)) { return result; }
1001-
return Future.value(result);
1002-
}
1003-
catch (e) {
1004-
return Future.error(e);
1005-
}
993+
return Future.sync(function() {
994+
return handler(batches, context, next);
995+
});
1006996
};
1007997
}, batchInvokeHandler);
1008998
}
@@ -1011,14 +1001,9 @@
10111001
_beforeFilterHandler = _beforeFilterHandlers.reduceRight(
10121002
function(next, handler) {
10131003
return function(request, context) {
1014-
try {
1015-
var response = handler(request, context, next);
1016-
if (Future.isFuture(response)) { return response; }
1017-
return Future.value(response);
1018-
}
1019-
catch (e) {
1020-
return Future.error(e);
1021-
}
1004+
return Future.sync(function() {
1005+
return handler(request, context, next);
1006+
});
10221007
};
10231008
}, beforeFilterHandler);
10241009
}
@@ -1027,14 +1012,9 @@
10271012
_afterFilterHandler = _afterFilterHandlers.reduceRight(
10281013
function(next, handler) {
10291014
return function(request, context) {
1030-
try {
1031-
var response = handler(request, context, next);
1032-
if (Future.isFuture(response)) { return response; }
1033-
return Future.value(response);
1034-
}
1035-
catch (e) {
1036-
return Future.error(e);
1037-
}
1015+
return Future.sync(function() {
1016+
return handler(request, context, next);
1017+
});
10381018
};
10391019
}, afterFilterHandler);
10401020
}

src/CopyRight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Hprose for HTML5 v2.0.8
1+
// Hprose for HTML5 v2.0.10
22
// Copyright (c) 2008-2016 http://hprose.com
33
// Hprose is freely distributable under the MIT license.
44
// For all details and documentation:

0 commit comments

Comments
 (0)