Socket
Socket
Sign inDemoInstall

cli-ux

Package Overview
Dependencies
Maintainers
7
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-ux - npm Package Compare versions

Comparing version 4.9.2 to 4.9.3

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [4.9.3](https://github.com/oclif/cli-ux/compare/v4.9.2...v4.9.3) (2018-10-29)
### Bug Fixes
* clear prompt timeout ([#60](https://github.com/oclif/cli-ux/issues/60)) ([5cc36aa](https://github.com/oclif/cli-ux/commit/5cc36aa))
## [4.9.2](https://github.com/oclif/cli-ux/compare/v4.9.1...v4.9.2) (2018-10-29)

@@ -2,0 +9,0 @@

16

lib/prompt.js

@@ -87,2 +87,10 @@ "use strict";

return new Promise((resolve, reject) => {
let timer;
if (options.timeout) {
timer = setTimeout(() => {
process.stdin.pause();
reject(new Error('Prompt timeout'));
}, options.timeout);
timer.unref();
}
process.stdin.setEncoding('utf8');

@@ -92,2 +100,4 @@ process.stderr.write(options.prompt);

process.stdin.once('data', data => {
if (timer)
clearTimeout(timer);
process.stdin.pause();

@@ -102,9 +112,3 @@ data = data.trim();

});
if (options.timeout) {
setTimeout(() => {
process.stdin.pause();
reject(new Error('Prompt timeout'));
}, options.timeout).unref();
}
});
}
{
"name": "cli-ux",
"description": "cli IO utilities",
"version": "4.9.2",
"version": "4.9.3",
"author": "Jeff Dickey @jdxcode",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/cli-ux/issues",

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