@dbcube/core 3.2.3 → 3.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -943,20 +943,7 @@ var QueryEngine = class {
943
943
  }
944
944
  this.tcpPort = await this.findAvailablePort(this.tcpPort);
945
945
  return new Promise((resolve5, reject) => {
946
- const baseArgs = [];
947
- let skipNext = false;
948
- for (let i = 0; i < this.arguments.length; i++) {
949
- if (skipNext) {
950
- skipNext = false;
951
- continue;
952
- }
953
- if (this.arguments[i] === "--port") {
954
- skipNext = true;
955
- continue;
956
- }
957
- baseArgs.push(this.arguments[i]);
958
- }
959
- const serverArgs = [...baseArgs, "--action", "server", "--port", this.tcpPort.toString()];
946
+ const serverArgs = [...this.arguments, "--action", "server", "--tcp-port", this.tcpPort.toString()];
960
947
  const serverProcess = (0, import_child_process2.spawn)(this.binary["query_engine"], serverArgs);
961
948
  let started = false;
962
949
  const timeout = setTimeout(() => {