File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 */
77
88var util = require ( 'util' ) ;
9- var chalk = require ( 'chalk' ) ;
9+ var red = require ( 'ansi-red' ) ;
10+ var cyan = require ( 'ansi-cyan' ) ;
1011var extend = require ( 'extend-shallow' ) ;
1112var differ = require ( 'arr-diff' ) ;
1213var union = require ( 'arr-union' ) ;
@@ -135,9 +136,9 @@ PluginError.prototype.toString = function () {
135136
136137// format the output message
137138function message ( msg , thisArg ) {
138- var sig = chalk . red ( thisArg . name ) ;
139+ var sig = red ( thisArg . name ) ;
139140sig += ' in plugin ' ;
140- sig += '"' + chalk . cyan ( thisArg . plugin ) + '"' ;
141+ sig += '"' + cyan ( thisArg . plugin ) + '"' ;
141142sig += '\n' ;
142143sig += msg ;
143144return sig ;
Original file line number Diff line number Diff line change 11{
22"name" : " plugin-error" ,
33"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 " ,
55"homepage" : " https://github.com/jonschlinkert/plugin-error" ,
66"author" : {
77"name" : " Jon Schlinkert" ,
1414"bugs" : {
1515"url" : " https://github.com/jonschlinkert/plugin-error/issues"
1616 },
17- "license" : {
18- "type" : " MIT" ,
19- "url" : " https://github.com/jonschlinkert/plugin-error/blob/master/LICENSE"
20- },
17+ "license" : " MIT" ,
2118"files" : [
2219" index.js"
2320 ],
2926"test" : " mocha"
3027 },
3128"dependencies" : {
29+ "ansi-cyan" : " ^0.1.1" ,
30+ "ansi-red" : " ^0.1.1" ,
3231"arr-diff" : " ^1.0.1" ,
3332"arr-union" : " ^2.0.1" ,
34- "chalk" : " ^1.0.0" ,
3533"extend-shallow" : " ^1.1.2"
3634 },
3735"devDependencies" : {
3836"mocha" : " *" ,
3937"should" : " *"
40- }
38+ },
39+ "keywords" : [
40+ " error" ,
41+ " plugin"
42+ ]
4143}
You can’t perform that action at this time.
0 commit comments