Socket
Socket
Sign inDemoInstall

node-pty

Package Overview
Dependencies
Maintainers
3
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pty - npm Package Compare versions

Comparing version 0.9.0-beta28 to 0.9.0-beta29

3

lib/unixTerminal.js

@@ -234,2 +234,5 @@ "use strict";

UnixTerminal.prototype.resize = function (cols, rows) {
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
throw new Error('resizing must be done using positive cols and rows');
}
pty.resize(this._fd, cols, rows);

@@ -236,0 +239,0 @@ this._cols = cols;

2

lib/windowsTerminal.js

@@ -126,3 +126,3 @@ "use strict";

var _this = this;
if (cols <= 0 || rows <= 0) {
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
throw new Error('resizing must be done using positive cols and rows');

@@ -129,0 +129,0 @@ }

@@ -7,3 +7,3 @@ {

},
"version": "0.9.0-beta28",
"version": "0.9.0-beta29",
"license": "MIT",

@@ -10,0 +10,0 @@ "main": "./lib/index.js",

@@ -260,2 +260,5 @@ /**

public resize(cols: number, rows: number): void {
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
throw new Error('resizing must be done using positive cols and rows');
}
pty.resize(this._fd, cols, rows);

@@ -262,0 +265,0 @@ this._cols = cols;

@@ -145,3 +145,3 @@ /**

public resize(cols: number, rows: number): void {
if (cols <= 0 || rows <= 0) {
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
throw new Error('resizing must be done using positive cols and rows');

@@ -148,0 +148,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc