@dbcube/core 1.0.60 → 1.0.62

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.d.mts CHANGED
@@ -12,16 +12,14 @@ declare class Engine {
12
12
  private arguments;
13
13
  private binary;
14
14
  private timeout;
15
- private static instances;
16
15
  constructor(name: string, timeout?: number);
17
- static getInstance(name: string, timeout?: number): Engine;
18
16
  initializeBinary(): Promise<void>;
19
17
  setArguments(): any[];
20
18
  setConfig(name: string): {
21
19
  [x: string]: any;
22
20
  } | null;
23
21
  getConfig(): any;
24
- run(binary: string, args: string[]): Promise<ResponseEngine>;
22
+ run(binary: string, args: []): Promise<ResponseEngine>;
25
23
  }
26
24
 
27
25
  interface SystemInfo {
package/dist/index.d.ts CHANGED
@@ -12,16 +12,14 @@ declare class Engine {
12
12
  private arguments;
13
13
  private binary;
14
14
  private timeout;
15
- private static instances;
16
15
  constructor(name: string, timeout?: number);
17
- static getInstance(name: string, timeout?: number): Engine;
18
16
  initializeBinary(): Promise<void>;
19
17
  setArguments(): any[];
20
18
  setConfig(name: string): {
21
19
  [x: string]: any;
22
20
  } | null;
23
21
  getConfig(): any;
24
- run(binary: string, args: string[]): Promise<ResponseEngine>;
22
+ run(binary: string, args: []): Promise<ResponseEngine>;
25
23
  }
26
24
 
27
25
  interface SystemInfo {
package/dist/index.js CHANGED
@@ -127,10 +127,11 @@ var Arquitecture = class {
127
127
  import * as fs from "fs";
128
128
  import * as path from "path";
129
129
  import * as os2 from "os";
130
- import { https } from "follow-redirects";
130
+ import followRedirects from "follow-redirects";
131
131
  import * as unzipper from "unzipper";
132
132
  import ora from "ora";
133
133
  import chalk from "chalk";
134
+ var { https } = followRedirects;
134
135
  var Downloader = class {
135
136
  static mainSpinner = null;
136
137
  static currentSpinner = null;
@@ -549,28 +550,17 @@ var Config = class {
549
550
  // src/lib/Engine.ts
550
551
  import { spawn } from "child_process";
551
552
  import { createRequire } from "module";
552
- var Engine = class _Engine {
553
+ var Engine = class {
553
554
  name;
554
555
  config;
555
556
  arguments;
556
557
  binary = null;
557
558
  timeout;
558
- static instances = /* @__PURE__ */ new Map();
559
559
  constructor(name, timeout = 3e4) {
560
- if (_Engine.instances.has(name)) {
561
- return _Engine.instances.get(name);
562
- }
563
560
  this.name = name;
564
- this.timeout = timeout;
565
561
  this.config = this.setConfig(name);
566
562
  this.arguments = this.setArguments();
567
- _Engine.instances.set(name, this);
568
- }
569
- static getInstance(name, timeout = 3e4) {
570
- if (_Engine.instances.has(name)) {
571
- return _Engine.instances.get(name);
572
- }
573
- return new _Engine(name, timeout);
563
+ this.timeout = timeout;
574
564
  }
575
565
  async initializeBinary() {
576
566
  if (!this.binary) {
@@ -663,7 +653,6 @@ var Engine = class _Engine {
663
653
  };
664
654
  child.stdout.on("data", (data) => {
665
655
  stdoutBuffer += data.toString();
666
- console.log(stdoutBuffer);
667
656
  const match = stdoutBuffer.match(/PROCESS_RESPONSE:(\{.*\})/);
668
657
  if (match) {
669
658
  try {
@@ -684,7 +673,6 @@ var Engine = class _Engine {
684
673
  });
685
674
  child.stderr.on("data", (data) => {
686
675
  stderrBuffer += data.toString();
687
- console.log(stderrBuffer);
688
676
  const match = stderrBuffer.match(/PROCESS_RESPONSE:(\{.*\})/);
689
677
  if (match) {
690
678
  try {