@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
|
@@ -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.
|
|
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.
|
|
54296
|
+
found.addListener("command", onCommand);
|
|
54297
54297
|
const timeOut = setTimeout(() => {
|
|
54298
54298
|
timedOut = true;
|
|
54299
54299
|
if (found) {
|
|
54300
|
-
found.
|
|
54300
|
+
found.removeListener("command", onCommand);
|
|
54301
54301
|
}
|
|
54302
54302
|
res.sendStatus(408);
|
|
54303
54303
|
}, parseInt(req.body.timeout) || 30000);
|