@lvce-editor/pty-host 0.17.8 → 0.17.10
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": "0.17.
|
|
3
|
+
"version": "0.17.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@lvce-editor/pretty-error": "^1.1.0",
|
|
20
|
+
"@lvce-editor/verror": "^1.0.1",
|
|
20
21
|
"debug": "^4.3.4",
|
|
21
|
-
"verror": "^1.10.1",
|
|
22
22
|
"ws": "^8.13.0"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawn } from 'node-pty'
|
|
2
|
-
import VError from '
|
|
2
|
+
import { VError } from '../VError/VError.js'
|
|
3
3
|
import * as Assert from '../Assert/Assert.js'
|
|
4
4
|
|
|
5
5
|
export const create = ({ env = {}, cwd, command, args } = {}) => {
|
|
@@ -15,7 +15,6 @@ export const create = ({ env = {}, cwd, command, args } = {}) => {
|
|
|
15
15
|
})
|
|
16
16
|
return pty
|
|
17
17
|
} catch (error) {
|
|
18
|
-
// @ts-ignore
|
|
19
18
|
throw new VError(error, `Failed to create terminal`)
|
|
20
19
|
}
|
|
21
20
|
}
|
|
@@ -30,7 +29,6 @@ export const write = (pty, data) => {
|
|
|
30
29
|
Assert.object(pty)
|
|
31
30
|
pty.write(data)
|
|
32
31
|
} catch (error) {
|
|
33
|
-
// @ts-ignore
|
|
34
32
|
throw new VError(error, `Failed to write data to terminal`)
|
|
35
33
|
}
|
|
36
34
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@lvce-editor/verror'
|