@lvce-editor/shared-process 0.17.12 → 0.17.13

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,31 +1,31 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.17.12",
3
+ "version": "0.17.13",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@babel/code-frame": "^7.22.13",
8
- "@lvce-editor/extension-host": "0.17.12",
9
- "@lvce-editor/extension-host-helper-process": "0.17.12",
8
+ "@lvce-editor/extension-host": "0.17.13",
9
+ "@lvce-editor/extension-host-helper-process": "0.17.13",
10
10
  "@lvce-editor/pretty-error": "^1.1.1",
11
- "@lvce-editor/pty-host": "0.17.12",
12
- "@lvce-editor/verror": "^1.1.0",
11
+ "@lvce-editor/pty-host": "0.17.13",
12
+ "@lvce-editor/verror": "^1.1.1",
13
13
  "debug": "^4.3.4",
14
14
  "execa": "^8.0.1",
15
- "exit-hook": "^3.2.0",
15
+ "exit-hook": "^4.0.0",
16
16
  "got": "^13.0.0",
17
17
  "is-object": "^1.0.2",
18
18
  "lines-and-columns": "^2.0.3",
19
- "p-queue": "^7.4.0",
20
- "parse-json": "^7.0.0",
19
+ "p-queue": "^7.4.1",
20
+ "parse-json": "^7.1.0",
21
21
  "tar-fs": "^3.0.4",
22
- "ws": "^8.13.0",
22
+ "ws": "^8.14.1",
23
23
  "xdg-basedir": "^5.1.0"
24
24
  },
25
25
  "optionalDependencies": {
26
26
  "extract-zip": "^2.0.1",
27
27
  "open": "^9.1.0",
28
- "symlink-dir": "^5.1.1",
28
+ "symlink-dir": "^5.2.0",
29
29
  "tail": "^2.2.6",
30
30
  "tmp-promise": "^3.0.3",
31
31
  "trash": "^8.1.1",
@@ -4,6 +4,11 @@ export const listen = async ({ method, ...params }) => {
4
4
  const module = await IpcChildModule.getModule(method)
5
5
  // @ts-ignore
6
6
  const rawIpc = await module.listen(params)
7
+ // @ts-ignore
8
+ if (module.signal) {
9
+ // @ts-ignore
10
+ module.signal(rawIpc)
11
+ }
7
12
  const ipc = module.wrap(rawIpc)
8
13
  return ipc
9
14
  }
@@ -6,10 +6,13 @@ export const listen = () => {
6
6
  if (!parentPort) {
7
7
  throw new Error('parent port must be defined')
8
8
  }
9
- parentPort.postMessage('ready')
10
9
  return parentPort
11
10
  }
12
11
 
12
+ export const signal = (parentPort) => {
13
+ parentPort.postMessage('ready')
14
+ }
15
+
13
16
  const getActualData = (event) => {
14
17
  const { data, ports } = event
15
18
  if (ports.length === 0) {
@@ -2,10 +2,13 @@ export const listen = async () => {
2
2
  if (!process.send) {
3
3
  throw new Error('process.send must be defined')
4
4
  }
5
- process.send('ready')
6
5
  return process
7
6
  }
8
7
 
8
+ export const signal = (process) => {
9
+ process.send('ready')
10
+ }
11
+
9
12
  const getActualData = (message, handle) => {
10
13
  if (handle) {
11
14
  return {
@@ -5,10 +5,13 @@ export const listen = async () => {
5
5
  if (!parentPort) {
6
6
  throw new Error('parentPort is required')
7
7
  }
8
- parentPort.postMessage('ready')
9
8
  return parentPort
10
9
  }
11
10
 
11
+ export const signal = (parentPort) => {
12
+ parentPort.postMessage('ready')
13
+ }
14
+
12
15
  const getActualData = (message) => {
13
16
  return message
14
17
  }
@@ -175,11 +175,11 @@ export const getSetupName = () => {
175
175
  return 'Lvce-Setup'
176
176
  }
177
177
 
178
- export const version = '0.17.12'
178
+ export const version = '0.17.13'
179
179
 
180
- export const commit = 'bed87a8'
180
+ export const commit = '6416d96'
181
181
 
182
- export const date = '2023-08-30T17:39:34.000Z'
182
+ export const date = '2023-09-15T16:13:11.000Z'
183
183
 
184
184
  export const getVersion = () => {
185
185
  return version