@lvce-editor/pty-host 4.1.0 → 4.2.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 +7 -6
- package/package.json +4 -4
package/dist/ptyHostMain.js
CHANGED
|
@@ -188,11 +188,17 @@ const string = value => {
|
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
190
|
|
|
191
|
+
const METHODS_THAT_REQUIRE_SOCKET = new Set(['Terminal.create']);
|
|
192
|
+
const requiresSocket = method => {
|
|
193
|
+
return METHODS_THAT_REQUIRE_SOCKET.has(method);
|
|
194
|
+
};
|
|
195
|
+
|
|
191
196
|
const handleElectronMessagePort = async messagePort => {
|
|
192
197
|
object(messagePort);
|
|
193
198
|
await ElectronMessagePortRpcClient.create({
|
|
194
199
|
commandMap: {},
|
|
195
|
-
messagePort
|
|
200
|
+
messagePort,
|
|
201
|
+
requiresSocket: requiresSocket
|
|
196
202
|
});
|
|
197
203
|
};
|
|
198
204
|
|
|
@@ -250,11 +256,6 @@ const handleNodeMessagePort = async messagePort => {
|
|
|
250
256
|
});
|
|
251
257
|
};
|
|
252
258
|
|
|
253
|
-
const METHODS_THAT_REQUIRE_SOCKET = new Set(['Terminal.create']);
|
|
254
|
-
const requiresSocket = method => {
|
|
255
|
-
return METHODS_THAT_REQUIRE_SOCKET.has(method);
|
|
256
|
-
};
|
|
257
|
-
|
|
258
259
|
const handleWebSocket = async (handle, request) => {
|
|
259
260
|
object(handle);
|
|
260
261
|
object(request);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/pty-host",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lvce-editor",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@lvce-editor/assert": "^1.3.0",
|
|
20
20
|
"@lvce-editor/command": "^1.2.0",
|
|
21
|
-
"@lvce-editor/ipc": "^14.
|
|
22
|
-
"@lvce-editor/json-rpc": "^
|
|
21
|
+
"@lvce-editor/ipc": "^14.2.0",
|
|
22
|
+
"@lvce-editor/json-rpc": "^6.2.0",
|
|
23
23
|
"@lvce-editor/pretty-error": "^2.0.0",
|
|
24
|
-
"@lvce-editor/rpc": "^
|
|
24
|
+
"@lvce-editor/rpc": "^4.1.0",
|
|
25
25
|
"@lvce-editor/verror": "^1.6.0",
|
|
26
26
|
"debug": "^4.4.1"
|
|
27
27
|
},
|