node-pty 1.1.0-beta3 → 1.1.0-beta5

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 (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -18,12 +18,12 @@ The full API for node-pty is contained within the [TypeScript declaration file](
18
18
  ## Example Usage
19
19
 
20
20
  ```js
21
- var os = require('os');
22
- var pty = require('node-pty');
21
+ import * as os from 'node:os';
22
+ import * as pty from 'node-pty';
23
23
 
24
- var shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';
24
+ const shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';
25
25
 
26
- var ptyProcess = pty.spawn(shell, [], {
26
+ const ptyProcess = pty.spawn(shell, [], {
27
27
  name: 'xterm-color',
28
28
  cols: 80,
29
29
  rows: 30,
@@ -154,7 +154,7 @@ This error can occur due to anti-virus software intercepting winpty from creatin
154
154
 
155
155
  ## pty.js
156
156
 
157
- This project is forked from [chjj/pty.js](https://github.com/chjj/pty.js) with the primary goals being to provide better support for later Node.JS versions and Windows.
157
+ This project is forked from [chjj/pty.js](https://github.com/chjj/pty.js) with the primary goals being to provide better support for later Node.js versions and Windows.
158
158
 
159
159
  ## License
160
160
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "Microsoft Corporation"
6
6
  },
7
- "version": "1.1.0-beta3",
7
+ "version": "1.1.0-beta5",
8
8
  "license": "MIT",
9
9
  "main": "./lib/index.js",
10
10
  "types": "./typings/node-pty.d.ts",
@@ -53,6 +53,7 @@
53
53
  "cross-env": "^5.1.4",
54
54
  "eslint": "^6.8.0",
55
55
  "mocha": "10",
56
+ "node-gyp": "^9.4.0",
56
57
  "ps-list": "^6.0.0",
57
58
  "typescript": "^3.8.3"
58
59
  }