Skip to content

Commit 6d608cc

Browse files
committed
refactor: set ansi function name
1 parent 0765837 commit 6d608cc

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

lib/ansi.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ const ansiStyle = ansi =>
135135
else {
136136
this.#isEnabled = parseEnabled( enabled );
137137

138-
return makeCallable( this, "applyStyle" );
138+
return makeCallable( this, "applyStyle", {
139+
"name": "ansi",
140+
} );
139141
}
140142
}
141143

@@ -181,7 +183,10 @@ const ansiStyle = ansi =>
181183
"off": off + this.#off,
182184
enabled,
183185
} ),
184-
"applyStyle"
186+
"applyStyle",
187+
{
188+
"name": "ansi",
189+
}
185190
);
186191
}
187192

@@ -190,7 +195,9 @@ const ansiStyle = ansi =>
190195
this.#on = this.#on + on;
191196
this.#off = off + this.#off;
192197

193-
return makeCallable( this, "applyStyle" );
198+
return makeCallable( this, "applyStyle", {
199+
"name": "ansi",
200+
} );
194201
}
195202
}
196203
};
@@ -393,7 +400,10 @@ export class Ansi {
393400
off,
394401
enabled,
395402
} ),
396-
"applyStyle"
403+
"applyStyle",
404+
{
405+
"name": "ansi",
406+
}
397407
);
398408
}
399409

0 commit comments

Comments
 (0)