@bob-kit/client 0.0.8 → 0.0.10

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/daemon.js CHANGED
@@ -15,7 +15,6 @@ export class Daemon {
15
15
  windowsHide: true,
16
16
  });
17
17
  this.process.unref();
18
- // Lectura de stdout
19
18
  this.process.stdout?.setEncoding("utf8");
20
19
  this.process.stdout?.on("data", (data) => {
21
20
  this.buffer += data;
@@ -28,14 +27,8 @@ export class Daemon {
28
27
  resolve(response);
29
28
  }
30
29
  });
31
- this.process.on("exit", () => {
32
- this.buffer = "";
33
- this.queue = [];
34
- this.destroyStreams();
35
- });
36
- process.on("exit", () => this.close());
37
- process.on("SIGINT", () => this.close());
38
- process.on("SIGTERM", () => this.close());
30
+ this.process.on("exit", () => this.destroyStreams());
31
+ process.once("beforeExit", () => this.close());
39
32
  }
40
33
  async query(message) {
41
34
  if (!this.process || !this.process.stdin) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bob-kit/client",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "",
package/dist/motor.exe DELETED
Binary file