Socket
Socket
Sign inDemoInstall

getpass

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.1.5

22

lib/index.js

@@ -40,4 +40,6 @@ /*

wtty.write(opts.prompt + ':');
rtty.resume();
rtty.setRawMode(true);
rtty.resume();
rtty.setEncoding('utf8');
rtty.setRawMode(true);

@@ -73,11 +75,14 @@ var pw = '';

function cleanup() {
rtty.removeListener('data', onData);
wtty.write('\r\n');
rtty.setRawMode(false);
wtty.end();
rtty.end();
if (rfd !== undefined)
rtty.pause();
rtty.removeListener('data', onData);
if (wfd !== undefined && wfd !== rfd) {
wtty.end();
mod_fs.closeSync(wfd);
}
if (rfd !== undefined) {
rtty.end();
mod_fs.closeSync(rfd);
if (wfd !== undefined && wfd !== rfd)
mod_fs.closeSync(wfd);
}
}

@@ -89,3 +94,4 @@ });

mod_fs.open('/dev/tty', 'r+', function (err, rttyfd) {
if (err && (err.code === 'ENOENT' || err.code === 'EACCES')) {
if ((err && (err.code === 'ENOENT' || err.code === 'EACCES')) ||
(process.version.match(/^v0[.][0-8][.]/))) {
cb(null, undefined, undefined, process.stdin,

@@ -92,0 +98,0 @@ process.stdout);

{
"name": "getpass",
"version": "0.1.4",
"version": "0.1.5",
"description": "getpass for node.js",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc