Socket
Socket
Sign inDemoInstall

cli-ux

Package Overview
Dependencies
Maintainers
3
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 2.0.9 to 2.0.10

lib/fs.d.ts

11

lib/index.js

@@ -47,4 +47,11 @@ "use strict";

return this.action.pauseAsync(() => __awaiter(this, void 0, void 0, function* () {
let response = yield this.Prompt.prompt(message);
return ['y', 'yes'].includes(response.toLowerCase());
const confirm = () => __awaiter(this, void 0, void 0, function* () {
let response = (yield this.Prompt.prompt(message)).toLowerCase();
if (['n', 'no'].includes(response))
return false;
if (['y', 'yes'].includes(response))
return true;
return confirm();
});
return confirm();
}), chalk_1.default.cyan('?'));

@@ -51,0 +58,0 @@ }

2

lib/stream.js

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

const stripAnsi = require("strip-ansi");
const fs = require("fs-extra");
const fs = require("./fs");
const moment = require("moment");

@@ -10,0 +10,0 @@ class StreamOutput {

{
"name": "cli-ux",
"description": "set of CLI output utilities",
"version": "2.0.9",
"version": "2.0.10",
"author": "Jeff Dickey",

@@ -13,3 +13,2 @@ "bugs": "https://github.com/jdxcode/cli-ux/issues",

"chalk": "^2.3.0",
"fs-extra": "^5.0.0",
"lodash": "^4.17.4",

@@ -24,3 +23,2 @@ "moment": "^2.20.0",

"@types/ansi-styles": "^2.0.30",
"@types/fs-extra": "^5.0.0",
"@types/jest": "^21.1.8",

@@ -27,0 +25,0 @@ "@types/lodash": "^4.14.91",

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