@lvce-editor/pty-host 5.4.0 → 6.1.0
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/ptyHostMain.js +3 -4
- package/package.json +1 -1
package/dist/ptyHostMain.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import debugModule from 'debug';
|
|
2
1
|
import { Console } from 'node:console';
|
|
3
2
|
import { createWriteStream, readFileSync } from 'node:fs';
|
|
4
3
|
import { tmpdir } from 'node:os';
|
|
@@ -1266,6 +1265,9 @@ const Auto = () => {
|
|
|
1266
1265
|
if (argv.includes('--ipc-type=node-forked-process')) {
|
|
1267
1266
|
return NodeForkedProcess;
|
|
1268
1267
|
}
|
|
1268
|
+
if (argv.includes('--ipc-type=websocket')) {
|
|
1269
|
+
return WebSocket;
|
|
1270
|
+
}
|
|
1269
1271
|
if (argv.includes('--ipc-type=electron-utility-process')) {
|
|
1270
1272
|
return ElectronUtilityProcess;
|
|
1271
1273
|
}
|
|
@@ -1315,8 +1317,6 @@ const handleWebSocket = async (handle, request) => {
|
|
|
1315
1317
|
});
|
|
1316
1318
|
};
|
|
1317
1319
|
|
|
1318
|
-
const debug = debugModule('pty-host');
|
|
1319
|
-
|
|
1320
1320
|
class DataEvent extends Event {
|
|
1321
1321
|
constructor(data) {
|
|
1322
1322
|
super('data');
|
|
@@ -1409,7 +1409,6 @@ const create = async (ipc, id, cwd, command, args) => {
|
|
|
1409
1409
|
string(command);
|
|
1410
1410
|
array(args);
|
|
1411
1411
|
object(ipc);
|
|
1412
|
-
debug(`create ${id} ${cwd}`);
|
|
1413
1412
|
// @ts-ignore
|
|
1414
1413
|
const pty = await create$1({
|
|
1415
1414
|
cwd,
|