@lvce-editor/ipc 2.1.0 → 3.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/README.md +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +913 -7
- package/package.json +4 -3
- package/dist/parts/Assert/Assert.js +0 -1
- package/dist/parts/CamelCase/CamelCase.js +0 -11
- package/dist/parts/Character/Character.js +0 -12
- package/dist/parts/ChildProcessError/ChildProcessError.js +0 -21
- package/dist/parts/ErrorCodes/ErrorCodes.js +0 -22
- package/dist/parts/FirstNodeWorkerEventType/FirstNodeWorkerEventType.js +0 -3
- package/dist/parts/FirstWebSocketEventType/FirstWebSocketEventType.js +0 -2
- package/dist/parts/FormatUtilityProcessName/FormatUtilityProcessName.js +0 -5
- package/dist/parts/GetFirstEvent/GetFirstEvent.js +0 -23
- package/dist/parts/GetFirstNodeChildProcessEvent/GetFirstNodeChildProcessEvent.js +0 -41
- package/dist/parts/GetFirstNodeWorkerEvent/GetFirstNodeWorkerEvent.js +0 -9
- package/dist/parts/GetFirstUtilityProcessEvent/GetFirstUtilityProcessEvent.js +0 -42
- package/dist/parts/GetFirstWebSocketEvent/GetFirstWebSocketEvent.js +0 -25
- package/dist/parts/GetHelpfulChildProcessError/GetHelpfulChildProcessError.js +0 -119
- package/dist/parts/GetUtilityProcessPortData/GetUtilityProcessPortData.js +0 -10
- package/dist/parts/IpcChildWithElectronMessagePort/IpcChildWithElectronMessagePort.js +0 -51
- package/dist/parts/IpcChildWithElectronUtilityProcess/IpcChildWithElectronUtilityProcess.js +0 -45
- package/dist/parts/IpcChildWithNodeForkedProcess/IpcChildWithNodeForkedProcess.js +0 -46
- package/dist/parts/IpcChildWithWebSocket/IpcChildWithWebSocket.js +0 -59
- package/dist/parts/IpcError/IpcError.js +0 -20
- package/dist/parts/IpcParentWithElectronUtilityProcess/IpcParentWithElectronUtilityProcess.js +0 -43
- package/dist/parts/IpcParentWithNodeForkedProcess/IpcParentWithNodeForkedProcess.js +0 -54
- package/dist/parts/IpcParentWithNodeWorker/IpcParentWithNodeWorker.js +0 -49
- package/dist/parts/IsMessagePortMain/IsMessagePortMain.js +0 -3
- package/dist/parts/IsWebSocketOpen/IsWebSocketOpen.js +0 -5
- package/dist/parts/JoinLines/JoinLines.js +0 -5
- package/dist/parts/Promises/Promises.js +0 -19
- package/dist/parts/SplitLines/SplitLines.js +0 -5
- package/dist/parts/VError/VError.js +0 -1
- package/dist/parts/WebSocketReadyState/WebSocketReadyState.js +0 -5
- package/dist/parts/WebSocketSerialization/WebSocketSerialization.js +0 -7
- package/dist/parts/WebSocketServer/WebSocketServer.js +0 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Inter Process Communiction for use in Lvce Editor.
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```js
|
|
8
|
-
import
|
|
8
|
+
import { IpcParentWithElectronUtilityProcess } from '@lvce-editor/ipc'
|
|
9
9
|
|
|
10
10
|
const rawIpc = await IpcParentWithElectronUtilityProcess.create({
|
|
11
11
|
path: '/test/utility-process.js',
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface IpcChild {
|
|
2
|
+
readonly listen: any
|
|
3
|
+
readonly wrap: any
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const IpcChildWithElectronMessagePort: IpcChild
|
|
7
|
+
export const IpcChildWithElectronUtilityProcess: IpcChild
|
|
8
|
+
export const IpcChildWithNodeForkedProcess: IpcChild
|
|
9
|
+
export const IpcChildWithWebSocket: IpcChild
|
|
10
|
+
|
|
11
|
+
interface IpcParent {
|
|
12
|
+
readonly create: any
|
|
13
|
+
readonly wrap: any
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const IpcParentWithElectronUtilityProcess: IpcParent
|
|
17
|
+
export const IpcParentWithNodeForkedProcess: IpcParent
|
|
18
|
+
export const IpcParentWithNodeWorker: IpcParent
|