@dbcube/core 1.0.61 → 1.0.63
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 +2 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +2 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -594,28 +594,17 @@ var Config = class {
|
|
|
594
594
|
// src/lib/Engine.ts
|
|
595
595
|
var import_child_process = require("child_process");
|
|
596
596
|
var import_module = require("module");
|
|
597
|
-
var Engine = class
|
|
597
|
+
var Engine = class {
|
|
598
598
|
name;
|
|
599
599
|
config;
|
|
600
600
|
arguments;
|
|
601
601
|
binary = null;
|
|
602
602
|
timeout;
|
|
603
|
-
static instances = /* @__PURE__ */ new Map();
|
|
604
603
|
constructor(name, timeout = 3e4) {
|
|
605
|
-
if (_Engine.instances.has(name)) {
|
|
606
|
-
return _Engine.instances.get(name);
|
|
607
|
-
}
|
|
608
604
|
this.name = name;
|
|
609
|
-
this.timeout = timeout;
|
|
610
605
|
this.config = this.setConfig(name);
|
|
611
606
|
this.arguments = this.setArguments();
|
|
612
|
-
|
|
613
|
-
}
|
|
614
|
-
static getInstance(name, timeout = 3e4) {
|
|
615
|
-
if (_Engine.instances.has(name)) {
|
|
616
|
-
return _Engine.instances.get(name);
|
|
617
|
-
}
|
|
618
|
-
return new _Engine(name, timeout);
|
|
607
|
+
this.timeout = timeout;
|
|
619
608
|
}
|
|
620
609
|
async initializeBinary() {
|
|
621
610
|
if (!this.binary) {
|