@lvce-editor/shared-process 0.22.5 → 0.22.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.22.5",
3
+ "version": "0.22.7",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lvce-editor/assert": "^1.2.0",
21
- "@lvce-editor/extension-host-helper-process": "0.22.5",
21
+ "@lvce-editor/extension-host-helper-process": "0.22.7",
22
22
  "@lvce-editor/json-rpc": "^1.0.0",
23
23
  "@lvce-editor/jsonc-parser": "^1.1.0",
24
- "@lvce-editor/pretty-error": "^1.4.0",
25
- "@lvce-editor/pty-host": "0.22.5",
24
+ "@lvce-editor/pretty-error": "^1.4.1",
25
+ "@lvce-editor/pty-host": "0.22.7",
26
26
  "@lvce-editor/verror": "^1.1.2",
27
27
  "@lvce-editor/web-socket-server": "^1.1.0",
28
28
  "debug": "^4.3.4",
@@ -35,6 +35,9 @@ export const wrap = (webSocket) => {
35
35
  }
36
36
  webSocket.on('message', wrappedListener)
37
37
  break
38
+ case 'close':
39
+ webSocket.on('close', listener)
40
+ break
38
41
  default:
39
42
  throw new Error('unknown event listener type')
40
43
  }
@@ -61,11 +61,11 @@ export const getSetupName = () => {
61
61
  return 'Lvce-Setup'
62
62
  }
63
63
 
64
- export const version = '0.22.5'
64
+ export const version = '0.22.7'
65
65
 
66
- export const commit = '0aec9db'
66
+ export const commit = '5861e23'
67
67
 
68
- export const date = '2024-01-21T12:41:48.000Z'
68
+ export const date = '2024-01-28T15:06:28.000Z'
69
69
 
70
70
  export const getVersion = () => {
71
71
  return version
@@ -1,5 +1,9 @@
1
+ import { existsSync } from 'node:fs'
1
2
  import * as ParentIpc from '../ParentIpc/ParentIpc.js'
2
3
 
3
4
  export const trash = async (path) => {
5
+ if (!existsSync(path)) {
6
+ return
7
+ }
4
8
  await ParentIpc.invoke('Trash.trash', path)
5
9
  }