@dbcube/core 3.2.2 → 3.2.3
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 +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -898,7 +898,20 @@ var QueryEngine = class {
|
|
|
898
898
|
}
|
|
899
899
|
this.tcpPort = await this.findAvailablePort(this.tcpPort);
|
|
900
900
|
return new Promise((resolve5, reject) => {
|
|
901
|
-
const
|
|
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()];
|
|
902
915
|
const serverProcess = spawn2(this.binary["query_engine"], serverArgs);
|
|
903
916
|
let started = false;
|
|
904
917
|
const timeout = setTimeout(() => {
|