node-pty 1.2.0-beta.7 → 1.2.0-beta.9

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 (72) hide show
  1. package/binding.gyp +20 -18
  2. package/lib/unixTerminal.js +5 -2
  3. package/lib/windowsTerminal.js +1 -1
  4. package/package.json +6 -5
  5. package/prebuilds/darwin-arm64/pty.node +0 -0
  6. package/prebuilds/darwin-arm64/spawn-helper +0 -0
  7. package/prebuilds/darwin-x64/pty.node +0 -0
  8. package/prebuilds/darwin-x64/spawn-helper +0 -0
  9. package/prebuilds/linux-arm64/pty.node +0 -0
  10. package/prebuilds/linux-x64/pty.node +0 -0
  11. package/prebuilds/win32-arm64/conpty.node +0 -0
  12. package/prebuilds/win32-arm64/conpty.pdb +0 -0
  13. package/prebuilds/win32-arm64/conpty_console_list.node +0 -0
  14. package/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
  15. package/prebuilds/win32-x64/conpty.node +0 -0
  16. package/prebuilds/win32-x64/conpty.pdb +0 -0
  17. package/prebuilds/win32-x64/conpty_console_list.node +0 -0
  18. package/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
  19. package/src/unix/pty.cc +7 -5
  20. package/typings/node-pty.d.ts +4 -1
  21. package/deps/.editorconfig +0 -2
  22. package/lib/conpty_console_list_agent.js.map +0 -1
  23. package/lib/eventEmitter2.js.map +0 -1
  24. package/lib/eventEmitter2.test.js +0 -30
  25. package/lib/eventEmitter2.test.js.map +0 -1
  26. package/lib/index.js.map +0 -1
  27. package/lib/interfaces.js.map +0 -1
  28. package/lib/shared/conout.js.map +0 -1
  29. package/lib/terminal.js.map +0 -1
  30. package/lib/terminal.test.js +0 -139
  31. package/lib/terminal.test.js.map +0 -1
  32. package/lib/testUtils.test.js +0 -28
  33. package/lib/testUtils.test.js.map +0 -1
  34. package/lib/types.js.map +0 -1
  35. package/lib/unixTerminal.js.map +0 -1
  36. package/lib/unixTerminal.test.js +0 -383
  37. package/lib/unixTerminal.test.js.map +0 -1
  38. package/lib/utils.js.map +0 -1
  39. package/lib/windowsConoutConnection.js.map +0 -1
  40. package/lib/windowsPtyAgent.js.map +0 -1
  41. package/lib/windowsPtyAgent.test.js +0 -90
  42. package/lib/windowsPtyAgent.test.js.map +0 -1
  43. package/lib/windowsTerminal.js.map +0 -1
  44. package/lib/windowsTerminal.test.js +0 -218
  45. package/lib/windowsTerminal.test.js.map +0 -1
  46. package/lib/worker/conoutSocketWorker.js.map +0 -1
  47. package/scripts/gen-compile-commands.js +0 -8
  48. package/scripts/increment-version.js +0 -54
  49. package/scripts/linux/checksums.txt +0 -2
  50. package/scripts/linux/install-sysroot.js +0 -158
  51. package/scripts/linux/verify-glibc-requirements.sh +0 -36
  52. package/src/conpty_console_list_agent.ts +0 -15
  53. package/src/eventEmitter2.test.ts +0 -30
  54. package/src/eventEmitter2.ts +0 -48
  55. package/src/index.ts +0 -52
  56. package/src/interfaces.ts +0 -138
  57. package/src/native.d.ts +0 -37
  58. package/src/shared/conout.ts +0 -15
  59. package/src/terminal.test.ts +0 -119
  60. package/src/terminal.ts +0 -211
  61. package/src/testUtils.test.ts +0 -23
  62. package/src/tsconfig.json +0 -22
  63. package/src/types.ts +0 -15
  64. package/src/unixTerminal.test.ts +0 -402
  65. package/src/unixTerminal.ts +0 -388
  66. package/src/utils.ts +0 -29
  67. package/src/windowsConoutConnection.ts +0 -82
  68. package/src/windowsPtyAgent.test.ts +0 -94
  69. package/src/windowsPtyAgent.ts +0 -261
  70. package/src/windowsTerminal.test.ts +0 -229
  71. package/src/windowsTerminal.ts +0 -203
  72. package/src/worker/conoutSocketWorker.ts +0 -22
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) 2020, Microsoft Corporation (MIT License).
3
- */
4
-
5
- import { parentPort, workerData } from 'worker_threads';
6
- import { Socket, createServer } from 'net';
7
- import { ConoutWorkerMessage, IWorkerData, getWorkerPipeName } from '../shared/conout';
8
-
9
- const { conoutPipeName } = (workerData as IWorkerData);
10
-
11
- const conoutSocket = new Socket();
12
- conoutSocket.setEncoding('utf8');
13
- conoutSocket.connect(conoutPipeName, () => {
14
- const server = createServer(workerSocket => {
15
- conoutSocket.pipe(workerSocket);
16
- });
17
- server.listen(getWorkerPipeName(conoutPipeName));
18
- if (!parentPort) {
19
- throw new Error('worker_threads parentPort is null');
20
- }
21
- parentPort.postMessage(ConoutWorkerMessage.READY);
22
- });