Update catproxy.js

This commit is contained in:
Namhyeon Go 2024-07-04 14:52:48 +09:00 committed by GitHub
parent 145e22de21
commit 5ba7476685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ function CatProxyClient(url) {
return; return;
} }
} }
this.exec = function() { this.exec = function(params) {
var args = Array.from(arguments); var args = Array.from(arguments);
var rpc = JSONRPC2.create(env.target); var rpc = JSONRPC2.create(env.target);
var result; var result;
@ -49,7 +49,7 @@ function CatProxyClient(url) {
"query": query "query": query
}, null); }, null);
} else { } else {
result = rpc.invoke(env.method, {}, null); result = rpc.invoke(env.method, params, null);
} }
return result; return result;
@ -63,7 +63,7 @@ function create(url) {
exports.create = create; exports.create = create;
exports.CatProxyClient = CatProxyClient; 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.AUTHOR = "abuse@catswords.net";
exports.global = global; exports.global = global;
exports.require = global.require; exports.require = global.require;