another-ansi
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -11,3 +11,4 @@ export declare const TEXT_COLOR_CODE = 38; | ||
export declare enum CommandType { | ||
Clear = "clear" | ||
Clear = "clear", | ||
Backspace = "backspace" | ||
} | ||
@@ -14,0 +15,0 @@ export declare enum ModifierType { |
@@ -48,2 +48,3 @@ "use strict"; | ||
CommandType["Clear"] = "clear"; | ||
CommandType["Backspace"] = "backspace"; | ||
})(CommandType = exports.CommandType || (exports.CommandType = {})); | ||
@@ -203,2 +204,4 @@ var ModifierType; | ||
return "".concat(this.escapeSequence, "[2J").concat(this.escapeSequence, "[3J").concat(this.escapeSequence, "[;H"); | ||
case CommandType.Backspace: | ||
return "".concat(this.escapeSequence, "[D").concat(this.escapeSequence, "[K"); | ||
default: | ||
@@ -237,2 +240,3 @@ throw new Error('Unknown command.'); | ||
_a[CommandType.Clear] = this.command(CommandType.Clear), | ||
_a[CommandType.Backspace] = this.command(CommandType.Backspace), | ||
_a) | ||
@@ -239,0 +243,0 @@ }; |
{ | ||
"name": "another-ansi", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Another ansi library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
21911
333
1