node-pty 1.1.0-beta34 → 1.1.0-beta36

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 (70) hide show
  1. package/lib/windowsTerminal.test.js +2 -0
  2. package/lib/windowsTerminal.test.js.map +1 -1
  3. package/package.json +5 -2
  4. package/prebuilds/_manifest/spdx_2.2/ESRPClientLogs1009224808443.json +1 -0
  5. package/prebuilds/_manifest/spdx_2.2/bsi.cose +0 -0
  6. package/prebuilds/_manifest/spdx_2.2/bsi.json +1 -0
  7. package/prebuilds/_manifest/spdx_2.2/manifest.cat +0 -0
  8. package/prebuilds/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  9. package/prebuilds/_manifest/spdx_2.2/manifest.spdx.json +10427 -0
  10. package/prebuilds/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
  11. package/prebuilds/darwin-arm64/_manifest/spdx_2.2/ESRPClientLogs1009224301877.json +1 -0
  12. package/prebuilds/darwin-arm64/_manifest/spdx_2.2/bsi.cose +0 -0
  13. package/prebuilds/darwin-arm64/_manifest/spdx_2.2/bsi.json +1 -0
  14. package/prebuilds/darwin-arm64/_manifest/spdx_2.2/manifest.cat +0 -0
  15. package/prebuilds/darwin-arm64/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  16. package/prebuilds/darwin-arm64/_manifest/spdx_2.2/manifest.spdx.json +6426 -0
  17. package/prebuilds/darwin-arm64/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
  18. package/prebuilds/darwin-arm64/pty.node +0 -0
  19. package/prebuilds/darwin-arm64/spawn-helper +0 -0
  20. package/prebuilds/darwin-x64/_manifest/spdx_2.2/ESRPClientLogs1009224250243.json +1 -0
  21. package/prebuilds/darwin-x64/_manifest/spdx_2.2/bsi.cose +0 -0
  22. package/prebuilds/darwin-x64/_manifest/spdx_2.2/bsi.json +1 -0
  23. package/prebuilds/darwin-x64/_manifest/spdx_2.2/manifest.cat +0 -0
  24. package/prebuilds/darwin-x64/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  25. package/prebuilds/darwin-x64/_manifest/spdx_2.2/manifest.spdx.json +6426 -0
  26. package/prebuilds/darwin-x64/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
  27. package/prebuilds/darwin-x64/pty.node +0 -0
  28. package/prebuilds/darwin-x64/spawn-helper +0 -0
  29. package/prebuilds/win32-arm64/_manifest/spdx_2.2/ESRPClientLogs1009224547757.json +1 -0
  30. package/prebuilds/win32-arm64/_manifest/spdx_2.2/bsi.cose +0 -0
  31. package/prebuilds/win32-arm64/_manifest/spdx_2.2/bsi.json +1 -0
  32. package/prebuilds/win32-arm64/_manifest/spdx_2.2/manifest.cat +0 -0
  33. package/prebuilds/win32-arm64/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  34. package/prebuilds/win32-arm64/_manifest/spdx_2.2/manifest.spdx.json +6626 -0
  35. package/prebuilds/win32-arm64/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
  36. package/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
  37. package/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
  38. package/prebuilds/win32-arm64/conpty.node +0 -0
  39. package/prebuilds/win32-arm64/conpty.pdb +0 -0
  40. package/prebuilds/win32-arm64/conpty_console_list.node +0 -0
  41. package/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
  42. package/prebuilds/win32-arm64/pty.node +0 -0
  43. package/prebuilds/win32-arm64/pty.pdb +0 -0
  44. package/prebuilds/win32-arm64/winpty-agent.exe +0 -0
  45. package/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
  46. package/prebuilds/win32-arm64/winpty.dll +0 -0
  47. package/prebuilds/win32-arm64/winpty.pdb +0 -0
  48. package/prebuilds/win32-x64/_manifest/spdx_2.2/ESRPClientLogs1009224546164.json +1 -0
  49. package/prebuilds/win32-x64/_manifest/spdx_2.2/bsi.cose +0 -0
  50. package/prebuilds/win32-x64/_manifest/spdx_2.2/bsi.json +1 -0
  51. package/prebuilds/win32-x64/_manifest/spdx_2.2/manifest.cat +0 -0
  52. package/prebuilds/win32-x64/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  53. package/prebuilds/win32-x64/_manifest/spdx_2.2/manifest.spdx.json +6626 -0
  54. package/prebuilds/win32-x64/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
  55. package/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  56. package/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  57. package/prebuilds/win32-x64/conpty.node +0 -0
  58. package/prebuilds/win32-x64/conpty.pdb +0 -0
  59. package/prebuilds/win32-x64/conpty_console_list.node +0 -0
  60. package/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
  61. package/prebuilds/win32-x64/pty.node +0 -0
  62. package/prebuilds/win32-x64/pty.pdb +0 -0
  63. package/prebuilds/win32-x64/winpty-agent.exe +0 -0
  64. package/prebuilds/win32-x64/winpty-agent.pdb +0 -0
  65. package/prebuilds/win32-x64/winpty.dll +0 -0
  66. package/prebuilds/win32-x64/winpty.pdb +0 -0
  67. package/scripts/gen-compile-commands.js +8 -0
  68. package/scripts/post-install.js +1 -4
  69. package/scripts/prebuild.js +30 -0
  70. package/src/windowsTerminal.test.ts +4 -2
@@ -0,0 +1 @@
1
+ 25a431a78a43976dac9dfe19739ff55fe73f6ae048e2fea8d8883b8b7b7f72fe
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) 2025, Microsoft Corporation (MIT License).
3
+ */
4
+
5
+ const { execSync } = require('child_process');
6
+
7
+ console.log(`\x1b[32m> Generating compile_commands.json...\x1b[0m`);
8
+ execSync('npx --offline node-gyp configure -- -f compile_commands_json');
@@ -1,6 +1,5 @@
1
1
  //@ts-check
2
2
 
3
- const { execSync } = require('child_process');
4
3
  const fs = require('fs');
5
4
  const os = require('os');
6
5
  const path = require('path');
@@ -24,6 +23,7 @@ const CONPTY_SUPPORTED_ARCH = ['x64', 'arm64'];
24
23
 
25
24
  console.log('\x1b[32m> Cleaning release folder...\x1b[0m');
26
25
 
26
+ /** @param {string} folder */
27
27
  function cleanFolderRecursive(folder) {
28
28
  var files = [];
29
29
  if (fs.existsSync(folder)) {
@@ -77,7 +77,4 @@ if (os.platform() !== 'win32') {
77
77
  }
78
78
  }
79
79
 
80
- console.log(`\x1b[32m> Generating compile_commands.json...\x1b[0m`);
81
- execSync('npx node-gyp configure -- -f compile_commands_json');
82
-
83
80
  process.exit(0);
@@ -0,0 +1,30 @@
1
+ //@ts-check
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ /**
7
+ * This script copies the prebuilt binaries from the prebuild directory
8
+ * for the current platform and architecture to the build/Release directory.
9
+ *
10
+ * Usage:
11
+ * node scripts/prebuild.js
12
+ */
13
+
14
+ // Skip copying prebuilds when npm_config_build_from_source is set
15
+ if (process.env.npm_config_build_from_source === 'true') {
16
+ console.log('\x1b[33m> Skipping prebuild copy because npm_config_build_from_source is set\x1b[0m');
17
+ process.exit(1);
18
+ }
19
+
20
+ const PREBUILD_DIR = path.join(__dirname, '..', 'prebuilds', `${process.platform}-${process.arch}`);
21
+ const RELEASE_DIR = path.join(__dirname, '../build/Release');
22
+
23
+ /* Copy prebuild files to build/Release */
24
+ console.log('\x1b[32m> Copying prebuilds to release folder...\x1b[0m');
25
+ if (!fs.existsSync(PREBUILD_DIR)) {
26
+ console.log(` SKIPPED Prebuild directory ${PREBUILD_DIR} does not exist`);
27
+ // Exit with 1 to fall back on node-gyp building the native modules
28
+ process.exit(1);
29
+ }
30
+ fs.cpSync(PREBUILD_DIR, RELEASE_DIR, { recursive: true });
@@ -127,7 +127,8 @@ if (process.platform === 'win32') {
127
127
  });
128
128
 
129
129
  describe('resize', () => {
130
- it('should throw a non-native exception when resizing an invalid value', (done) => {
130
+ it('should throw a non-native exception when resizing an invalid value', function(done) {
131
+ this.timeout(20000);
131
132
  const term = new WindowsTerminal('cmd.exe', [], { useConpty, useConptyDll });
132
133
  assert.throws(() => term.resize(-1, -1));
133
134
  assert.throws(() => term.resize(0, 0));
@@ -137,7 +138,8 @@ if (process.platform === 'win32') {
137
138
  });
138
139
  term.kill();
139
140
  });
140
- it('should throw a non-native exception when resizing a killed terminal', (done) => {
141
+ it('should throw a non-native exception when resizing a killed terminal', function(done) {
142
+ this.timeout(20000);
141
143
  const term = new WindowsTerminal('cmd.exe', [], { useConpty, useConptyDll });
142
144
  (<any>term)._defer(() => {
143
145
  term.once('exit', () => {