mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update catproxy.js
This commit is contained in:
parent
145e22de21
commit
5ba7476685
|
@ -32,7 +32,7 @@ function CatProxyClient(url) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
this.exec = function() {
|
||||
this.exec = function(params) {
|
||||
var args = Array.from(arguments);
|
||||
var rpc = JSONRPC2.create(env.target);
|
||||
var result;
|
||||
|
@ -49,7 +49,7 @@ function CatProxyClient(url) {
|
|||
"query": query
|
||||
}, null);
|
||||
} else {
|
||||
result = rpc.invoke(env.method, {}, null);
|
||||
result = rpc.invoke(env.method, params, null);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
@ -63,7 +63,7 @@ function create(url) {
|
|||
exports.create = create;
|
||||
exports.CatProxyClient = CatProxyClient;
|
||||
|
||||
exports.VERSIONINFO = "Caterpillar Proxy Integration (caterpillar.js) version 0.1.3";
|
||||
exports.VERSIONINFO = "Caterpillar Proxy Integration (caterpillar.js) version 0.1.4";
|
||||
exports.AUTHOR = "abuse@catswords.net";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user