Skip to content

Commit ceeab57

Browse files
committed
Update: Switch to ansi-colors for better deduping
1 parent 056f7f0 commit ceeab57

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎index.js‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
varutil=require('util');
2-
varred=require('ansi-red');
3-
varcyan=require('ansi-cyan');
2+
varcolors=require('ansi-colors');
43
varextend=require('extend-shallow');
54
vardiffer=require('arr-diff');
65
varunion=require('arr-union');
@@ -139,9 +138,9 @@ PluginError.prototype.toString = function() {
139138

140139
// Format the output message
141140
functionmessage(msg,thisArg){
142-
varsig=red(thisArg.name);
141+
varsig=colors.red(thisArg.name);
143142
sig+=' in plugin ';
144-
sig+='"'+cyan(thisArg.plugin)+'"';
143+
sig+='"'+colors.cyan(thisArg.plugin)+'"';
145144
sig+='\n';
146145
sig+=msg;
147146
returnsig;

‎package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"coveralls": "npm run cover && istanbul-coveralls"
2828
},
2929
"dependencies": {
30-
"ansi-cyan": "^0.1.1",
31-
"ansi-red": "^0.1.1",
30+
"ansi-colors": "^1.0.1",
3231
"arr-diff": "^1.0.1",
3332
"arr-union": "^2.0.1",
3433
"extend-shallow": "^1.1.2"

0 commit comments

Comments
 (0)