pty-manager 1.2.9 → 1.2.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/pty-worker.js +1 -6
- package/package.json +1 -1
package/dist/pty-worker.js
CHANGED
|
@@ -1245,12 +1245,7 @@ async function handleSpawn(id, config) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
function handleSend(id, data) {
|
|
1247
1247
|
try {
|
|
1248
|
-
|
|
1249
|
-
if (!attachment) {
|
|
1250
|
-
ack("send", id, false, `Session ${id} not found or not attached`);
|
|
1251
|
-
return;
|
|
1252
|
-
}
|
|
1253
|
-
attachment.write(data);
|
|
1248
|
+
manager.send(id, data);
|
|
1254
1249
|
ack("send", id, true);
|
|
1255
1250
|
} catch (err) {
|
|
1256
1251
|
ack("send", id, false, err instanceof Error ? err.message : String(err));
|
package/package.json
CHANGED