Skip to content

Commit

Permalink
Update to v2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Jul 3, 2016
1 parent 9194df8 commit dd99a74
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 43 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",
"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",
Expand Down
4 changes: 2 additions & 2 deletions dist/hprose.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hprose.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example/hprose.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hprose",
"filename": "hprose.js",
"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. 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.",
"homepage": "https://github.com/hprose",
"keywords": [
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 JavaScript. *
* *
* LastModified: Apr 1, 2016 *
* LastModified: Jul 4, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
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 JavaScript v2.0.3
// Hprose for JavaScript v2.0.5
// Copyright (c) 2008-2016 http://hprose.com
// Hprose is freely distributable under the MIT license.
// For all details and documentation:
Expand Down
14 changes: 14 additions & 0 deletions test/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ module.exports = function (grunt) {
}, {
browserName: 'android',
version: '5.1'
}, {
browserName: 'iphone',
version: '9.3'
}, {
browserName: 'iphone',
version: '9.2'
Expand Down Expand Up @@ -53,6 +56,9 @@ module.exports = function (grunt) {
}, {
browserName: 'iphone',
version: '5.1'
}, {
browserName: 'ipad',
version: '9.3'
}, {
browserName: 'ipad',
version: '9.2'
Expand Down Expand Up @@ -301,6 +307,14 @@ module.exports = function (grunt) {
browserName: 'internet explorer',
platform: 'Windows XP',
version: '6.0'
}, {
browserName: 'opera',
platform: 'Linux',
version: '12.12'
}, {
browserName: 'opera',
platform: 'Windows 7',
version: '12.12'
}, {
browserName: 'opera',
platform: 'Windows 7',
Expand Down
4 changes: 2 additions & 2 deletions test/hprose.js

Large diffs are not rendered by default.

0 comments on commit dd99a74

Please sign in to comment.