mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update caterpillar.js
This commit is contained in:
parent
27636a4a72
commit
137793cd77
|
@ -35,12 +35,12 @@ function Caterpillar(url) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
this._do = function() {
|
||||
this.exec = function() {
|
||||
var args = arguments;
|
||||
|
||||
if (env.method == "relay_mysql_query") {
|
||||
var query = arguments.join(' ');
|
||||
rpc._call(env.method, {
|
||||
rpc.invoke(env.method, {
|
||||
"hostname": env.mysql_hostname,
|
||||
"username": env.mysql_username,
|
||||
"password": env.mysql_password,
|
||||
|
@ -52,7 +52,7 @@ function Caterpillar(url) {
|
|||
return;
|
||||
}
|
||||
|
||||
rpc._call(env.method, {}, null);
|
||||
rpc.invoke(env.method, {}, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ function create(url) {
|
|||
|
||||
exports.create = create;
|
||||
|
||||
exports.VERSIONINFO = "Caterpillar Proxy Integration (caterpillar.js) version 0.1";
|
||||
exports.VERSIONINFO = "Caterpillar Proxy Integration (caterpillar.js) version 0.1.1";
|
||||
exports.AUTHOR = "abuse@catswords.net";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user