tempest.games 0.2.98 → 0.2.100

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.
@@ -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
  });
@@ -3257,7 +3251,7 @@ var ChildSocket = class extends CustomSocket {
3257
3251
  } catch (thrown0) {
3258
3252
  if (thrown0 instanceof Error)
3259
3253
  console.error([
3260
- `\u274C Malformed data received from child process`,
3254
+ `\u274C Malformed data received from child process:`,
3261
3255
  ``,
3262
3256
  ...piece.split(`
3263
3257
  `),
@@ -3277,7 +3271,7 @@ var ChildSocket = class extends CustomSocket {
3277
3271
  } catch (thrown1) {
3278
3272
  if (thrown1 instanceof Error)
3279
3273
  console.error([
3280
- `\u274C Malformed data received from child process`,
3274
+ `\u274C Malformed data received from child process:`,
3281
3275
  ``,
3282
3276
  ...initialMaybeWellFormed.split(`
3283
3277
  `),
@@ -3310,7 +3304,7 @@ var ChildSocket = class extends CustomSocket {
3310
3304
  } catch (thrown0) {
3311
3305
  if (thrown0 instanceof Error)
3312
3306
  this.logger.error([
3313
- `\u274C Malformed log received from child process`,
3307
+ `\u274C Malformed log received from child process:`,
3314
3308
  ``,
3315
3309
  ...piece.split(`
3316
3310
  `),
@@ -3330,7 +3324,7 @@ var ChildSocket = class extends CustomSocket {
3330
3324
  } catch (thrown1) {
3331
3325
  if (thrown1 instanceof Error)
3332
3326
  this.logger.error([
3333
- `\u274C Malformed log received from child process...`,
3327
+ `\u274C Malformed log received from child process:`,
3334
3328
  ``,
3335
3329
  ...initialMaybeWellFormed.split(`
3336
3330
  `),
@@ -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
  }