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.
Files changed (33) hide show
  1. package/README.md +1 -0
  2. package/binding.gyp +6 -5
  3. package/package.json +1 -1
  4. package/scripts/prebuild.js +8 -7
  5. package/src/unix/pty.cc +3 -0
  6. package/prebuilds/darwin-arm64/pty.node +0 -0
  7. package/prebuilds/darwin-arm64/spawn-helper +0 -0
  8. package/prebuilds/darwin-x64/pty.node +0 -0
  9. package/prebuilds/darwin-x64/spawn-helper +0 -0
  10. package/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
  11. package/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
  12. package/prebuilds/win32-arm64/conpty.node +0 -0
  13. package/prebuilds/win32-arm64/conpty.pdb +0 -0
  14. package/prebuilds/win32-arm64/conpty_console_list.node +0 -0
  15. package/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
  16. package/prebuilds/win32-arm64/pty.node +0 -0
  17. package/prebuilds/win32-arm64/pty.pdb +0 -0
  18. package/prebuilds/win32-arm64/winpty-agent.exe +0 -0
  19. package/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
  20. package/prebuilds/win32-arm64/winpty.dll +0 -0
  21. package/prebuilds/win32-arm64/winpty.pdb +0 -0
  22. package/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  23. package/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  24. package/prebuilds/win32-x64/conpty.node +0 -0
  25. package/prebuilds/win32-x64/conpty.pdb +0 -0
  26. package/prebuilds/win32-x64/conpty_console_list.node +0 -0
  27. package/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
  28. package/prebuilds/win32-x64/pty.node +0 -0
  29. package/prebuilds/win32-x64/pty.pdb +0 -0
  30. package/prebuilds/win32-x64/winpty-agent.exe +0 -0
  31. package/prebuilds/win32-x64/winpty-agent.pdb +0 -0
  32. package/prebuilds/win32-x64/winpty.dll +0 -0
  33. 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
- '/w34244',
16
- '/we4267',
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
- 'shlwapi.lib'
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
- 'shlwapi.lib'
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
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "Microsoft Corporation"
6
6
  },
7
- "version": "1.1.0-beta39",
7
+ "version": "1.1.0-beta40",
8
8
  "license": "MIT",
9
9
  "main": "./lib/index.js",
10
10
  "types": "./typings/node-pty.d.ts",
@@ -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
- // Skip copying prebuilds when npm_config_build_from_source is set
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(PREBUILD_DIR, { recursive: true });
23
+ fs.rmSync(PREBUILDS_ROOT, { recursive: true, force: true });
23
24
  process.exit(1);
24
25
  }
25
26
 
26
- /* Copy prebuild files to build/Release */
27
- console.log('\x1b[32m> Copying prebuilds to release folder...\x1b[0m');
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(` SKIPPED Prebuild directory ${PREBUILD_DIR} does not exist`);
30
- // Exit with 1 to fall back on node-gyp building the native modules
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
- // Exit with 0 to skip node-gyp building from source
34
+
34
35
  process.exit(0);
package/src/unix/pty.cc CHANGED
@@ -42,6 +42,9 @@
42
42
  #elif defined(__FreeBSD__)
43
43
  #include <libutil.h>
44
44
  #include <termios.h>
45
+ #elif defined(__OpenBSD__)
46
+ #include <util.h>
47
+ #include <termios.h>
45
48
  #endif
46
49
 
47
50
  /* Some platforms name VWERASE and VDISCARD differently */
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