@andersbakken/fisk 4.0.24 → 4.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andersbakken/fisk",
3
- "version": "4.0.24",
3
+ "version": "4.0.26",
4
4
  "description": "Fisk, a distributed compile system",
5
5
  "scripts": {
6
6
  "lint": "eslint . --ext .ts",
@@ -54279,7 +54279,7 @@ server.on("listen", (app) => {
54279
54279
  if (message && typeof message === "object") {
54280
54280
  const msg = message;
54281
54281
  if (msg.id === id) {
54282
- found.off("command", onCommand);
54282
+ found.removeListener("command", onCommand);
54283
54283
  clearTimeout(timeOut);
54284
54284
  if (req.body.json) {
54285
54285
  res.send(JSON.stringify(message, null, 4));
@@ -54293,11 +54293,11 @@ ${msg.stdout ? "stdout:\n" + msg.stdout + "\n" : ""}${msg.stderr ? "stderr:\n" +
54293
54293
  }
54294
54294
  }
54295
54295
  };
54296
- found.on("command", onCommand);
54296
+ found.addListener("command", onCommand);
54297
54297
  const timeOut = setTimeout(() => {
54298
54298
  timedOut = true;
54299
54299
  if (found) {
54300
- found.off("command", onCommand);
54300
+ found.removeListener("command", onCommand);
54301
54301
  }
54302
54302
  res.sendStatus(408);
54303
54303
  }, parseInt(req.body.timeout) || 30000);