@lvce-editor/pty-host 1.4.0 → 2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/pty-host",
3
- "version": "1.4.0",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "src/ptyHostMain.js",
6
6
  "bin": "bin/ptyHost.js",
@@ -19,11 +19,11 @@
19
19
  "node": ">=18"
20
20
  },
21
21
  "dependencies": {
22
- "@lvce-editor/ipc": "^9.5.0",
23
- "@lvce-editor/json-rpc": "^2.1.0",
24
- "@lvce-editor/pretty-error": "^1.5.0",
22
+ "@lvce-editor/ipc": "^11.0.1",
23
+ "@lvce-editor/json-rpc": "^4.1.0",
24
+ "@lvce-editor/pretty-error": "^1.6.0",
25
25
  "@lvce-editor/verror": "^1.4.0",
26
- "debug": "^4.3.6"
26
+ "debug": "^4.3.7"
27
27
  },
28
28
  "optionalDependencies": {
29
29
  "node-pty": "^1.1.0-beta20"
@@ -48,7 +48,11 @@ class Pty extends EventTarget {
48
48
  }
49
49
  }
50
50
 
51
- // @ts-ignore
51
+ /**
52
+ *
53
+ * @param {*} param0
54
+ * @returns {any}
55
+ */
52
56
  export const create = ({ env = {}, cwd, command, args } = {}) => {
53
57
  try {
54
58
  Assert.string(cwd)
@@ -11,6 +11,7 @@ export const create = (ipc, id, cwd, command, args) => {
11
11
  Assert.array(args)
12
12
  Assert.object(ipc)
13
13
  Debug.debug(`create ${id} ${cwd}`)
14
+ // @ts-ignore
14
15
  const pty = Pty.create({ cwd, command, args })
15
16
  const handleData = (event) => {
16
17
  ipc.send({