tempest.games 0.2.98 → 0.2.99
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/CHANGELOG.md +7 -0
- package/bin/backend.bun.js +87 -89
- package/bin/backend.worker.game.bun.js +4 -6
- package/bin/backend.worker.tribunal.bun.js +87 -89
- package/bin/frontend.bun.js +87 -89
- package/bin/setup-db.bun.js +52 -52
- package/package.json +7 -7
|
@@ -3213,12 +3213,6 @@ var ChildSocket = class extends CustomSocket {
|
|
|
3213
3213
|
constructor(proc, key, logger) {
|
|
3214
3214
|
super((event, ...args) => {
|
|
3215
3215
|
const stringifiedEvent = JSON.stringify([event, ...args]) + `\x03`;
|
|
3216
|
-
const errorHandler = (err) => {
|
|
3217
|
-
if (err.code === `EPIPE`)
|
|
3218
|
-
console.error(`EPIPE error during write`, this.proc.stdin);
|
|
3219
|
-
this.proc.stdin.removeListener(`error`, errorHandler);
|
|
3220
|
-
};
|
|
3221
|
-
this.proc.stdin.once(`error`, errorHandler);
|
|
3222
3216
|
this.proc.stdin.write(stringifiedEvent);
|
|
3223
3217
|
return this;
|
|
3224
3218
|
});
|
|
@@ -3344,6 +3338,10 @@ var ChildSocket = class extends CustomSocket {
|
|
|
3344
3338
|
++idx;
|
|
3345
3339
|
}
|
|
3346
3340
|
});
|
|
3341
|
+
this.proc.stdin.once(`error`, (err) => {
|
|
3342
|
+
if (err.code === `EPIPE`)
|
|
3343
|
+
console.error(`EPIPE error during write`, this.proc.stdin);
|
|
3344
|
+
});
|
|
3347
3345
|
if (proc.pid)
|
|
3348
3346
|
this.id = proc.pid.toString();
|
|
3349
3347
|
}
|