Update caterpillar.js
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
Namhyeon Go 2024-06-26 17:18:36 +09:00 committed by GitHub
parent 27636a4a72
commit 137793cd77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,12 +35,12 @@ function Caterpillar(url) {
return; return;
} }
} }
this._do = function() { this.exec = function() {
var args = arguments; var args = arguments;
if (env.method == "relay_mysql_query") { if (env.method == "relay_mysql_query") {
var query = arguments.join(' '); var query = arguments.join(' ');
rpc._call(env.method, { rpc.invoke(env.method, {
"hostname": env.mysql_hostname, "hostname": env.mysql_hostname,
"username": env.mysql_username, "username": env.mysql_username,
"password": env.mysql_password, "password": env.mysql_password,
@ -52,7 +52,7 @@ function Caterpillar(url) {
return; return;
} }
rpc._call(env.method, {}, null); rpc.invoke(env.method, {}, null);
} }
} }
@ -62,7 +62,7 @@ function create(url) {
exports.create = create; 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.AUTHOR = "abuse@catswords.net";
exports.global = global; exports.global = global;
exports.require = global.require; exports.require = global.require;