@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.cjs
CHANGED
|
@@ -943,7 +943,20 @@ var QueryEngine = class {
|
|
|
943
943
|
}
|
|
944
944
|
this.tcpPort = await this.findAvailablePort(this.tcpPort);
|
|
945
945
|
return new Promise((resolve5, reject) => {
|
|
946
|
-
const
|
|
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()];
|
|
947
960
|
const serverProcess = (0, import_child_process2.spawn)(this.binary["query_engine"], serverArgs);
|
|
948
961
|
let started = false;
|
|
949
962
|
const timeout = setTimeout(() => {
|