Commit 8d3594e 1 parent 6ebdac3 commit 8d3594e Copy full SHA for 8d3594e
File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
var util = require ( 'util' ) ;
9
- var chalk = require ( 'chalk' ) ;
9
+ var red = require ( 'ansi-red' ) ;
10
+ var cyan = require ( 'ansi-cyan' ) ;
10
11
var extend = require ( 'extend-shallow' ) ;
11
12
var differ = require ( 'arr-diff' ) ;
12
13
var union = require ( 'arr-union' ) ;
@@ -135,9 +136,9 @@ PluginError.prototype.toString = function () {
135
136
136
137
// format the output message
137
138
function message ( msg , thisArg ) {
138
- var sig = chalk . red ( thisArg . name ) ;
139
+ var sig = red ( thisArg . name ) ;
139
140
sig += ' in plugin ' ;
140
- sig += '"' + chalk . cyan ( thisArg . plugin ) + '"' ;
141
+ sig += '"' + cyan ( thisArg . plugin ) + '"' ;
141
142
sig += '\n' ;
142
143
sig += msg ;
143
144
return sig ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " plugin-error" ,
3
3
"description" : " Error handling for vinyl plugins. Just an abstraction of what's in gulp-util with minor changes." ,
4
- "version" : " 0.1.1 " ,
4
+ "version" : " 0.1.2 " ,
5
5
"homepage" : " https://github.com/jonschlinkert/plugin-error" ,
6
6
"author" : {
7
7
"name" : " Jon Schlinkert" ,
14
14
"bugs" : {
15
15
"url" : " https://github.com/jonschlinkert/plugin-error/issues"
16
16
},
17
- "license" : {
18
- "type" : " MIT" ,
19
- "url" : " https://github.com/jonschlinkert/plugin-error/blob/master/LICENSE"
20
- },
17
+ "license" : " MIT" ,
21
18
"files" : [
22
19
" index.js"
23
20
],
29
26
"test" : " mocha"
30
27
},
31
28
"dependencies" : {
29
+ "ansi-cyan" : " ^0.1.1" ,
30
+ "ansi-red" : " ^0.1.1" ,
32
31
"arr-diff" : " ^1.0.1" ,
33
32
"arr-union" : " ^2.0.1" ,
34
- "chalk" : " ^1.0.0" ,
35
33
"extend-shallow" : " ^1.1.2"
36
34
},
37
35
"devDependencies" : {
38
36
"mocha" : " *" ,
39
37
"should" : " *"
40
- }
38
+ },
39
+ "keywords" : [
40
+ " error" ,
41
+ " plugin"
42
+ ]
41
43
}
You can’t perform that action at this time.
0 commit comments