@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.js CHANGED
@@ -898,20 +898,7 @@ var QueryEngine = class {
898
898
  }
899
899
  this.tcpPort = await this.findAvailablePort(this.tcpPort);
900
900
  return new Promise((resolve5, reject) => {
901
- const baseArgs = [];
902
- let skipNext = false;
903
- for (let i = 0; i < this.arguments.length; i++) {
904
- if (skipNext) {
905
- skipNext = false;
906
- continue;
907
- }
908
- if (this.arguments[i] === "--port") {
909
- skipNext = true;
910
- continue;
911
- }
912
- baseArgs.push(this.arguments[i]);
913
- }
914
- const serverArgs = [...baseArgs, "--action", "server", "--port", this.tcpPort.toString()];
901
+ const serverArgs = [...this.arguments, "--action", "server", "--tcp-port", this.tcpPort.toString()];
915
902
  const serverProcess = spawn2(this.binary["query_engine"], serverArgs);
916
903
  let started = false;
917
904
  const timeout = setTimeout(() => {