Skip to content

Commit

Permalink
Just made some more methods private
Browse files Browse the repository at this point in the history
  • Loading branch information
drudru committed Feb 10, 2019
1 parent c285080 commit 6f5a1b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ansi_up.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interface TextPacket {

class AnsiUp
{
VERSION = "4.0.1";
VERSION = "4.0.2";

//
// *** SEE README ON GITHUB FOR PUBLIC API ***
Expand Down Expand Up @@ -190,13 +190,13 @@ class AnsiUp
});
}

append_buffer(txt:string) {
private append_buffer(txt:string) {

var str = this._buffer + txt;
this._buffer = str;
}

get_next_packet():TextPacket {
private get_next_packet():TextPacket {

var pkt =
{
Expand Down Expand Up @@ -619,7 +619,7 @@ class AnsiUp
}
}

transform_to_html(fragment:TextWithAttr):string {
private transform_to_html(fragment:TextWithAttr):string {
let txt = fragment.text;

if (txt.length === 0)
Expand Down
6 changes: 3 additions & 3 deletions dist/ansi_up.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ export default class AnsiUp {
url_whitelist: {};
private setup_palettes;
private escape_txt_for_html;
append_buffer(txt: string): void;
get_next_packet(): TextPacket;
private append_buffer;
private get_next_packet;
ansi_to_html(txt: string): string;
private with_state;
private process_ansi;
transform_to_html(fragment: TextWithAttr): string;
private transform_to_html;
private process_hyperlink;
}
declare function rgx(tmplObj: any, ...subst: any[]): RegExp;
Expand Down
Loading

0 comments on commit 6f5a1b8

Please sign in to comment.