Comparing version 2.0.9 to 2.0.10
@@ -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 @@ } |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
49494
11
18
34
1510
7
- Removedfs-extra@^5.0.0
- Removedfs-extra@5.0.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removeduniversalify@0.1.2(transitive)