Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ceeab57

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

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

index.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
var util = require('util');
2-
var red = require('ansi-red');
3-
var cyan = require('ansi-cyan');
2+
var colors = require('ansi-colors');
43
var extend = require('extend-shallow');
54
var differ = require('arr-diff');
65
var union = require('arr-union');
@@ -139,9 +138,9 @@ PluginError.prototype.toString = function() {
139138

140139
// Format the output message
141140
function message(msg, thisArg) {
142-
var sig = red(thisArg.name);
141+
var sig = 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
return sig;

package.json

+1-2
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)