@lvce-editor/shared-process 0.15.20 → 0.15.21

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.15.20",
3
+ "version": "0.15.21",
4
4
  "description": "Utility package for @lvce-editor/server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,9 +17,9 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@babel/code-frame": "^7.21.4",
20
- "@lvce-editor/extension-host": "0.15.20",
21
- "@lvce-editor/extension-host-helper-process": "0.15.20",
22
- "@lvce-editor/pty-host": "0.15.20",
20
+ "@lvce-editor/extension-host": "0.15.21",
21
+ "@lvce-editor/extension-host-helper-process": "0.15.21",
22
+ "@lvce-editor/pty-host": "0.15.21",
23
23
  "debug": "^4.3.4",
24
24
  "execa": "^7.1.1",
25
25
  "exit-hook": "^3.2.0",
@@ -2,4 +2,4 @@ export const Error = 1
2
2
 
3
3
  export const ExpectedError = 128
4
4
 
5
- export const Sucess = 0
5
+ export const Success = 0
@@ -1,2 +1,3 @@
1
1
  export const SIGUSR1 = 'SIGUSR1'
2
2
  export const SIGTERM = 'SIGTERM'
3
+ export const SIGINT = 'SIGINT'
@@ -1,5 +1,6 @@
1
1
  import * as Command from './parts/Command/Command.js'
2
2
  import * as ErrorHandling from './parts/ErrorHandling/ErrorHandling.js'
3
+ import * as ExitCode from './parts/ExitCode/ExitCode.js'
3
4
  import * as Module from './parts/Module/Module.js'
4
5
  import * as ParentIpc from './parts/ParentIpc/ParentIpc.js'
5
6
  import * as Process from './parts/Process/Process.js'
@@ -10,6 +11,7 @@ import * as Signal from './parts/Signal/Signal.js'
10
11
 
11
12
  const handleDisconnect = () => {
12
13
  console.info('[shared process] disconnected')
14
+ Process.exit(ExitCode.Success)
13
15
  }
14
16
 
15
17
  // const handleBeforeExit = () => {
@@ -18,6 +20,7 @@ const handleDisconnect = () => {
18
20
 
19
21
  const handleSigTerm = () => {
20
22
  console.info('[shared-process] sigterm')
23
+ Process.exit(ExitCode.Success)
21
24
  }
22
25
 
23
26
  const knownCliArgs = ['install', 'list', 'link', 'unlink']