@lvce-editor/extension-host-helper-process 0.25.7 → 0.25.9
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": "@lvce-editor/extension-host-helper-process",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@lvce-editor/assert": "^1.2.0",
|
|
20
|
-
"@lvce-editor/ipc": "^3.
|
|
20
|
+
"@lvce-editor/ipc": "^3.6.0",
|
|
21
21
|
"@lvce-editor/json-rpc": "^1.3.0",
|
|
22
22
|
"@lvce-editor/pretty-error": "^1.5.0",
|
|
23
23
|
"@lvce-editor/verror": "^1.2.0",
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IpcChildWithElectronMessagePort,
|
|
3
|
+
IpcChildWithElectronUtilityProcess,
|
|
4
|
+
IpcChildWithNodeForkedProcess,
|
|
5
|
+
IpcChildWithWebSocket,
|
|
6
|
+
} from '@lvce-editor/ipc'
|
|
1
7
|
import * as IpcChildType from '../IpcChildType/IpcChildType.js'
|
|
2
8
|
|
|
3
9
|
export const getModule = (method) => {
|
|
4
10
|
switch (method) {
|
|
5
|
-
case IpcChildType.MessagePort:
|
|
6
|
-
return import('../IpcChildWithMessagePort/IpcChildWithMessagePort.js')
|
|
7
11
|
case IpcChildType.WebSocket:
|
|
8
|
-
return
|
|
9
|
-
case IpcChildType.Parent:
|
|
10
|
-
return import('../IpcChildWithParent/IpcChildWithParent.js')
|
|
12
|
+
return IpcChildWithWebSocket
|
|
11
13
|
case IpcChildType.NodeForkedProcess:
|
|
12
|
-
return
|
|
14
|
+
return IpcChildWithNodeForkedProcess
|
|
13
15
|
case IpcChildType.ElectronMessagePort:
|
|
14
|
-
return
|
|
16
|
+
return IpcChildWithElectronMessagePort
|
|
15
17
|
case IpcChildType.ElectronUtilityProcess:
|
|
16
|
-
return
|
|
18
|
+
return IpcChildWithElectronUtilityProcess
|
|
17
19
|
case IpcChildType.ElectronUtilityProcessMessagePort:
|
|
18
20
|
return import('../IpcChildWithElectronUtilityProcessMessagePort/IpcChildWithElectronUtilityProcessMessagePort.js')
|
|
19
21
|
default:
|