awesome-logging
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -36,9 +36,13 @@ "use strict"; | ||
changeKeyListener(listener) { | ||
var _a, _b, _c, _d; | ||
if (awesome_logger_1.AwesomeLogger.restrictedLogging) { | ||
return; | ||
} | ||
this._currentKeyListener = listener; | ||
if (!this._currentKeyListener) { | ||
process.stdin.setRawMode(false); | ||
(_b = (_a = process.stdin).setRawMode) === null || _b === void 0 ? void 0 : _b.call(_a, false); | ||
process.stdin.pause(); | ||
} | ||
else { | ||
process.stdin.setRawMode(true); | ||
(_d = (_c = process.stdin).setRawMode) === null || _d === void 0 ? void 0 : _d.call(_c, true); | ||
process.stdin.resume(); | ||
@@ -45,0 +49,0 @@ } |
{ | ||
"name": "awesome-logging", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Advanced logging messages, interactive prompts, loading animations and more in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
124208
1799