awesome-logging
Advanced tools
Comparing version 0.2.0 to 0.2.1
export * from './awesome-logger'; | ||
export * from './logger'; | ||
export * from './prompt'; |
@@ -14,2 +14,4 @@ "use strict"; | ||
__exportStar(require("./awesome-logger"), exports); | ||
__exportStar(require("./logger"), exports); | ||
__exportStar(require("./prompt"), exports); | ||
//# sourceMappingURL=index.js.map |
import { AwesomeLoggerBase } from './logger-base'; | ||
import { AwesomePromptBase } from '../prompt/models/prompt-base'; | ||
import { AwesomePromptBase } from '../prompt/prompt-base'; | ||
export declare class LoggerManager { | ||
@@ -4,0 +4,0 @@ private static _instance; |
import { AwesomePromptChoiceConfig, AwesomePromptChoiceControl } from './config/choice'; | ||
import { AwesomePromptBase } from './prompt-base'; | ||
import { AwesomePromptBase } from '../prompt-base'; | ||
export declare class AwesomeChoicePromt extends AwesomePromptBase<string> implements AwesomePromptChoiceControl { | ||
@@ -4,0 +4,0 @@ private _currentHighlightedRow; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const terminal_size_1 = require("../../utils/terminal-size"); | ||
const prompt_base_1 = require("./prompt-base"); | ||
const prompt_base_1 = require("../prompt-base"); | ||
class AwesomeChoicePromt extends prompt_base_1.AwesomePromptBase { | ||
@@ -15,0 +15,0 @@ constructor(config) { |
@@ -1,4 +0,4 @@ | ||
import { AwesomePromptBase } from '../prompt-base'; | ||
import { AwesomePromptBase } from '../../prompt-base'; | ||
export interface AwesomePromptBaseControl<T> extends AwesomePromptBase<T> { | ||
result: Promise<T>; | ||
} |
import { AwesomePromptTextConfig, AwesomePromptTextControl } from './config/text'; | ||
import { AwesomePromptBase } from './prompt-base'; | ||
import { AwesomePromptBase } from '../prompt-base'; | ||
export declare class AwesomeTextPromt extends AwesomePromptBase<string> implements AwesomePromptTextControl { | ||
@@ -4,0 +4,0 @@ private readonly _questionLogger; |
@@ -10,3 +10,3 @@ "use strict"; | ||
const ansi_utils_1 = require("../../utils/ansi-utils"); | ||
const prompt_base_1 = require("./prompt-base"); | ||
const prompt_base_1 = require("../prompt-base"); | ||
class AwesomeTextPromt extends prompt_base_1.AwesomePromptBase { | ||
@@ -13,0 +13,0 @@ constructor(config) { |
import { AwesomePromptToggleConfig, AwesomePromptToggleControl } from './config/toggle'; | ||
import { AwesomePromptBase } from './prompt-base'; | ||
import { AwesomePromptBase } from '../prompt-base'; | ||
export declare class AwesomeTogglePromt extends AwesomePromptBase<string[]> implements AwesomePromptToggleControl { | ||
@@ -4,0 +4,0 @@ private _currentHighlightedRow; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const terminal_size_1 = require("../../utils/terminal-size"); | ||
const prompt_base_1 = require("./prompt-base"); | ||
const prompt_base_1 = require("../prompt-base"); | ||
class AwesomeTogglePromt extends prompt_base_1.AwesomePromptBase { | ||
@@ -15,0 +15,0 @@ constructor(config) { |
@@ -22,3 +22,6 @@ "use strict"; | ||
} | ||
if (scrollAmount > actualRowCount - maxRowCount) { | ||
if (scrollAmount < 0) { | ||
scrollAmount = 0; | ||
} | ||
else if (scrollAmount > actualRowCount - maxRowCount) { | ||
scrollAmount = actualRowCount - maxRowCount; | ||
@@ -52,2 +55,4 @@ } | ||
while (strip_ansi_1.default(rest).length > terminal_size_1.TerminalSize.terminalWidth) { | ||
// The line length is limited to two characters less than the actual length | ||
// so that the scroll indicators can be printed, if needed | ||
const maxLengthString = slice_ansi_1.default(rest, 0, terminal_size_1.TerminalSize.terminalWidth - 2); | ||
@@ -54,0 +59,0 @@ res.push(maxLengthString); |
{ | ||
"name": "awesome-logging", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
130437
119
1886
0