node-pty 1.1.0-beta39 → 1.1.0-beta40
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/README.md +1 -0
- package/binding.gyp +6 -5
- package/package.json +1 -1
- package/scripts/prebuild.js +8 -7
- package/src/unix/pty.cc +3 -0
- package/prebuilds/darwin-arm64/pty.node +0 -0
- package/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/prebuilds/darwin-x64/pty.node +0 -0
- package/prebuilds/darwin-x64/spawn-helper +0 -0
- package/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/prebuilds/win32-arm64/conpty.node +0 -0
- package/prebuilds/win32-arm64/conpty.pdb +0 -0
- package/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
- package/prebuilds/win32-arm64/pty.node +0 -0
- package/prebuilds/win32-arm64/pty.pdb +0 -0
- package/prebuilds/win32-arm64/winpty-agent.exe +0 -0
- package/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
- package/prebuilds/win32-arm64/winpty.dll +0 -0
- package/prebuilds/win32-arm64/winpty.pdb +0 -0
- package/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/prebuilds/win32-x64/conpty.node +0 -0
- package/prebuilds/win32-x64/conpty.pdb +0 -0
- package/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
- package/prebuilds/win32-x64/pty.node +0 -0
- package/prebuilds/win32-x64/pty.pdb +0 -0
- package/prebuilds/win32-x64/winpty-agent.exe +0 -0
- package/prebuilds/win32-x64/winpty-agent.pdb +0 -0
- package/prebuilds/win32-x64/winpty.dll +0 -0
- package/prebuilds/win32-x64/winpty.pdb +0 -0
package/README.md
CHANGED
|
@@ -67,6 +67,7 @@ ptyProcess.write('ls\r');
|
|
|
67
67
|
- [Tess](https://tessapp.dev): Hackable, simple and rapid terminal for the new era of technology 👍
|
|
68
68
|
- [NxShell](https://nxshell.github.io/): An easy to use new terminal for Windows/Linux/MacOS platform.
|
|
69
69
|
- [OpenSumi](https://github.com/opensumi/core): A framework helps you quickly build Cloud or Desktop IDE products.
|
|
70
|
+
- [Enjoy Git](https://github.com/huangcs427/enjoy-git-release): A modern Git client featuring an intuitive user interface, built with Electron, Vue 3, and TypeScript.
|
|
70
71
|
|
|
71
72
|
Do you use node-pty in your application as well? Please open a [Pull Request](https://github.com/Tyriar/node-pty/pulls) to include it here. We would love to have it in our list.
|
|
72
73
|
|
package/binding.gyp
CHANGED
|
@@ -12,13 +12,14 @@
|
|
|
12
12
|
'VCCLCompilerTool': {
|
|
13
13
|
'AdditionalOptions': [
|
|
14
14
|
'/guard:cf',
|
|
15
|
-
'/
|
|
16
|
-
'/
|
|
15
|
+
'/sdl',
|
|
16
|
+
'/W3',
|
|
17
17
|
'/ZH:SHA_256'
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
'VCLinkerTool': {
|
|
21
21
|
'AdditionalOptions': [
|
|
22
|
+
'/DYNAMICBASE',
|
|
22
23
|
'/guard:cf'
|
|
23
24
|
]
|
|
24
25
|
}
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
'src/win/path_util.cc'
|
|
37
38
|
],
|
|
38
39
|
'libraries': [
|
|
39
|
-
'
|
|
40
|
+
'-lshlwapi'
|
|
40
41
|
],
|
|
41
42
|
},
|
|
42
43
|
{
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
'src/win/path_util.cc'
|
|
63
64
|
],
|
|
64
65
|
'libraries': [
|
|
65
|
-
'
|
|
66
|
+
'-lshlwapi'
|
|
66
67
|
],
|
|
67
68
|
}
|
|
68
69
|
]
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
'libraries': [
|
|
77
78
|
'-lutil'
|
|
78
79
|
],
|
|
79
|
-
'cflags': ['-Wall'],
|
|
80
|
+
'cflags': ['-Wall', '-O2', '-D_FORTIFY_SOURCE=2'],
|
|
80
81
|
'conditions': [
|
|
81
82
|
# http://www.gnu.org/software/gnulib/manual/html_node/forkpty.html
|
|
82
83
|
# One some systems (at least including Cygwin, Interix,
|
package/package.json
CHANGED
package/scripts/prebuild.js
CHANGED
|
@@ -14,21 +14,22 @@ const path = require('path');
|
|
|
14
14
|
* node scripts/prebuild.js
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
const PREBUILDS_ROOT = path.join(__dirname, '..', 'prebuilds');
|
|
17
18
|
const PREBUILD_DIR = path.join(__dirname, '..', 'prebuilds', `${process.platform}-${process.arch}`);
|
|
18
19
|
|
|
19
|
-
//
|
|
20
|
+
// Do not use prebuilds when npm_config_build_from_source is set
|
|
20
21
|
if (process.env.npm_config_build_from_source === 'true') {
|
|
21
22
|
console.log('\x1b[33m> Removing prebuilds and rebuilding because npm_config_build_from_source is set\x1b[0m');
|
|
22
|
-
fs.rmSync(
|
|
23
|
+
fs.rmSync(PREBUILDS_ROOT, { recursive: true, force: true });
|
|
23
24
|
process.exit(1);
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
console.log('\x1b[32m>
|
|
27
|
+
// Check whether the correct prebuilt files exist
|
|
28
|
+
console.log('\x1b[32m> Checking prebuilds...\x1b[0m');
|
|
28
29
|
if (!fs.existsSync(PREBUILD_DIR)) {
|
|
29
|
-
console.log(
|
|
30
|
-
|
|
30
|
+
console.log(`\x1b[33m> Removing prebuilds and rebuilding because directory ${PREBUILD_DIR} does not exist\x1b[0m`);
|
|
31
|
+
fs.rmSync(PREBUILDS_ROOT, { recursive: true, force: true });
|
|
31
32
|
process.exit(1);
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
+
|
|
34
35
|
process.exit(0);
|
package/src/unix/pty.cc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|