@youpaichris/logger 6.2.3 → 6.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -270,13 +270,13 @@ class Logger {
|
|
270
270
|
|
271
271
|
};
|
272
272
|
|
273
|
-
async input(prompt) {
|
273
|
+
async input(...prompt) {
|
274
274
|
const rl = createInterface({
|
275
275
|
input: process.stdin,
|
276
276
|
output: process.stdout
|
277
277
|
});
|
278
278
|
try {
|
279
|
-
this.
|
279
|
+
prompt.length === 0 ? this.critical("Please input:") : this.critical(...prompt);
|
280
280
|
return await new Promise(resolve => rl.question('', resolve));
|
281
281
|
} finally {
|
282
282
|
rl.close();
|