@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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +18 -0
  3. package/dist/index.js +913 -7
  4. package/package.json +4 -3
  5. package/dist/parts/Assert/Assert.js +0 -1
  6. package/dist/parts/CamelCase/CamelCase.js +0 -11
  7. package/dist/parts/Character/Character.js +0 -12
  8. package/dist/parts/ChildProcessError/ChildProcessError.js +0 -21
  9. package/dist/parts/ErrorCodes/ErrorCodes.js +0 -22
  10. package/dist/parts/FirstNodeWorkerEventType/FirstNodeWorkerEventType.js +0 -3
  11. package/dist/parts/FirstWebSocketEventType/FirstWebSocketEventType.js +0 -2
  12. package/dist/parts/FormatUtilityProcessName/FormatUtilityProcessName.js +0 -5
  13. package/dist/parts/GetFirstEvent/GetFirstEvent.js +0 -23
  14. package/dist/parts/GetFirstNodeChildProcessEvent/GetFirstNodeChildProcessEvent.js +0 -41
  15. package/dist/parts/GetFirstNodeWorkerEvent/GetFirstNodeWorkerEvent.js +0 -9
  16. package/dist/parts/GetFirstUtilityProcessEvent/GetFirstUtilityProcessEvent.js +0 -42
  17. package/dist/parts/GetFirstWebSocketEvent/GetFirstWebSocketEvent.js +0 -25
  18. package/dist/parts/GetHelpfulChildProcessError/GetHelpfulChildProcessError.js +0 -119
  19. package/dist/parts/GetUtilityProcessPortData/GetUtilityProcessPortData.js +0 -10
  20. package/dist/parts/IpcChildWithElectronMessagePort/IpcChildWithElectronMessagePort.js +0 -51
  21. package/dist/parts/IpcChildWithElectronUtilityProcess/IpcChildWithElectronUtilityProcess.js +0 -45
  22. package/dist/parts/IpcChildWithNodeForkedProcess/IpcChildWithNodeForkedProcess.js +0 -46
  23. package/dist/parts/IpcChildWithWebSocket/IpcChildWithWebSocket.js +0 -59
  24. package/dist/parts/IpcError/IpcError.js +0 -20
  25. package/dist/parts/IpcParentWithElectronUtilityProcess/IpcParentWithElectronUtilityProcess.js +0 -43
  26. package/dist/parts/IpcParentWithNodeForkedProcess/IpcParentWithNodeForkedProcess.js +0 -54
  27. package/dist/parts/IpcParentWithNodeWorker/IpcParentWithNodeWorker.js +0 -49
  28. package/dist/parts/IsMessagePortMain/IsMessagePortMain.js +0 -3
  29. package/dist/parts/IsWebSocketOpen/IsWebSocketOpen.js +0 -5
  30. package/dist/parts/JoinLines/JoinLines.js +0 -5
  31. package/dist/parts/Promises/Promises.js +0 -19
  32. package/dist/parts/SplitLines/SplitLines.js +0 -5
  33. package/dist/parts/VError/VError.js +0 -1
  34. package/dist/parts/WebSocketReadyState/WebSocketReadyState.js +0 -5
  35. package/dist/parts/WebSocketSerialization/WebSocketSerialization.js +0 -7
  36. 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 * as IpcParentWithElectronUtilityProcess from '@lvce-editor/ipc/dist/parts/IpcParentWithElectronUtilityProcess/IpcParentWithElectronUtilityProcess.js'
8
+ import { IpcParentWithElectronUtilityProcess } from '@lvce-editor/ipc'
9
9
 
10
10
  const rawIpc = await IpcParentWithElectronUtilityProcess.create({
11
11
  path: '/test/utility-process.js',
@@ -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