@lvce-editor/shared-process 0.25.5 → 0.25.7

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/shared-process",
3
- "version": "0.25.5",
3
+ "version": "0.25.7",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "^1.2.0",
21
- "@lvce-editor/extension-host-helper-process": "0.25.5",
22
- "@lvce-editor/ipc": "^3.1.0",
21
+ "@lvce-editor/extension-host-helper-process": "0.25.7",
22
+ "@lvce-editor/ipc": "^3.4.0",
23
23
  "@lvce-editor/json-rpc": "^1.3.0",
24
- "@lvce-editor/jsonc-parser": "^1.1.1",
24
+ "@lvce-editor/jsonc-parser": "^1.2.0",
25
25
  "@lvce-editor/pretty-error": "^1.5.0",
26
- "@lvce-editor/pty-host": "0.25.5",
26
+ "@lvce-editor/pty-host": "0.25.7",
27
27
  "@lvce-editor/verror": "^1.2.0",
28
28
  "@lvce-editor/web-socket-server": "^1.1.0",
29
29
  "debug": "^4.3.4",
@@ -1,4 +1,5 @@
1
1
  import * as IpcChildType from '../IpcChildType/IpcChildType.js'
2
+ import { IpcChildWithElectronUtilityProcess, IpcChildWithWebSocket } from '@lvce-editor/ipc'
2
3
 
3
4
  export const getModule = (method) => {
4
5
  switch (method) {
@@ -7,13 +8,13 @@ export const getModule = (method) => {
7
8
  case IpcChildType.NodeWorker:
8
9
  return import('../IpcChildWithNodeWorker/IpcChildWithNodeWorker.js')
9
10
  case IpcChildType.ElectronUtilityProcess:
10
- return import('../IpcChildWithElectronUtilityProcess/IpcChildWithElectronUtilityProcess.js')
11
+ return IpcChildWithElectronUtilityProcess
11
12
  case IpcChildType.ElectronMessagePort:
12
13
  return import('../IpcChildWithElectronMessagePort/IpcChildWithElectronMessagePort.js')
13
14
  case IpcChildType.NodeMessagePort:
14
15
  return import('../IpcChildWithNodeMessagePort/IpcChildWithNodeMessagePort.js')
15
16
  case IpcChildType.WebSocket:
16
- return import('../IpcChildWithWebSocket/IpcChildWithWebSocket.js')
17
+ return IpcChildWithWebSocket
17
18
  default:
18
19
  throw new Error('unexpected ipc type')
19
20
  }
@@ -61,11 +61,11 @@ export const getSetupName = () => {
61
61
  return 'Lvce-Setup'
62
62
  }
63
63
 
64
- export const version = '0.25.5'
64
+ export const version = '0.25.7'
65
65
 
66
- export const commit = '662e03b'
66
+ export const commit = '95efa27'
67
67
 
68
- export const date = '2024-04-05T22:04:26.000Z'
68
+ export const date = '2024-04-10T20:20:35.000Z'
69
69
 
70
70
  export const getVersion = () => {
71
71
  return version
@@ -1,8 +0,0 @@
1
- import { IpcChildWithElectronUtilityProcess } from '@lvce-editor/ipc'
2
-
3
- export const listen = IpcChildWithElectronUtilityProcess.listen
4
-
5
- export const wrap = IpcChildWithElectronUtilityProcess.wrap
6
-
7
- // @ts-ignore
8
- export const signal = IpcChildWithElectronUtilityProcess.signal
@@ -1,5 +0,0 @@
1
- import { IpcChildWithWebSocket } from '@lvce-editor/ipc'
2
-
3
- export const listen = IpcChildWithWebSocket.listen
4
-
5
- export const wrap = IpcChildWithWebSocket.wrap