@lvce-editor/embeds-process 2.2.0 → 3.0.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/bin/embedsProcess.js +3 -0
- package/dist/embedsProcessMain.js +1619 -0
- package/package.json +17 -50
- package/src/embedsProcessMain.js +0 -3
- package/src/parts/ApplyIncomingIpcResponse/ApplyIncomingIpcResponse.js +0 -11
- package/src/parts/Assert/Assert.js +0 -1
- package/src/parts/Callback/Callback.js +0 -1
- package/src/parts/Command/Command.js +0 -9
- package/src/parts/CommandMap/CommandMap.js +0 -27
- package/src/parts/CommandState/CommandState.js +0 -21
- package/src/parts/ElectronWebContents/ElectronWebContents.js +0 -77
- package/src/parts/ElectronWebContentsView/ElectronWebContentsView.js +0 -68
- package/src/parts/ElectronWebContentsViewIpcState/ElectronWebContentsViewIpcState.js +0 -17
- package/src/parts/ElectronWebContentsViewState/ElectronWebContentsViewState.js +0 -13
- package/src/parts/HandleElectronMessagePort/HandleElectronMessagePort.js +0 -8
- package/src/parts/HandleIncomingIpc/HandleIncomingIpc.js +0 -15
- package/src/parts/HandleIncomingIpcMessagePort/HandleIncomingIpcMessagePort.js +0 -8
- package/src/parts/HandleIpc/HandleIpc.js +0 -5
- package/src/parts/HandleIpcClosed/HandleIpcClosed.js +0 -23
- package/src/parts/HandleIpcEmbedsWorker/HandleIpcEmbedsWorker.js +0 -20
- package/src/parts/HandleIpcMainProcess/HandleIpcMainProcess.js +0 -20
- package/src/parts/HandleIpcModule/HandleIpcModule.js +0 -19
- package/src/parts/HandleIpcSharedProcess/HandleIpcSharedProcess.js +0 -21
- package/src/parts/HandleMessage/HandleMessage.js +0 -19
- package/src/parts/IpcChild/IpcChild.js +0 -15
- package/src/parts/IpcChildModule/IpcChildModule.js +0 -25
- package/src/parts/IpcChildType/IpcChildType.js +0 -20
- package/src/parts/IpcId/IpcId.js +0 -9
- package/src/parts/JsonRpc/JsonRpc.js +0 -1
- package/src/parts/Listen/Listen.js +0 -10
- package/src/parts/Main/Main.js +0 -8
- package/src/parts/MainProcessIpc/MainProcessIpc.js +0 -20
- package/src/parts/ParentIpc/ParentIpc.js +0 -20
- package/src/parts/SharedProcessIpc/SharedProcessIpc.js +0 -20
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as JsonRpc from '../JsonRpc/JsonRpc.js'
|
|
2
|
-
|
|
3
|
-
export const state = {
|
|
4
|
-
/**
|
|
5
|
-
* @type {any}
|
|
6
|
-
*/
|
|
7
|
-
ipc: undefined,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const invoke = (method, ...params) => {
|
|
11
|
-
return JsonRpc.invoke(state.ipc, method, ...params)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const send = (method, ...params) => {
|
|
15
|
-
return JsonRpc.send(state.ipc, method, ...params)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const invokeAndTransfer = (method, transfer, ...params) => {
|
|
19
|
-
return JsonRpc.invokeAndTransfer(state.ipc, transfer, method, ...params)
|
|
20
|
-
}
|