Skip to content

Commit 87d1c36

Browse files
committed
Add missing chalk dependency
1 parent 22081a9 commit 87d1c36

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@
3838
"files": [
3939
"test/**/*.spec.js"
4040
]
41+
},
42+
"dependencies": {
43+
"chalk": "^1.1.3"
4144
}
4245
}

src/debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const stripAnsi = require('strip-ansi');
3+
44
const chalk = require('chalk');
55

66
class Debugger {
@@ -57,7 +57,7 @@ class Debugger {
5757

5858
captureConsole (args, method, color) {
5959
if (this.capturing) {
60-
this.capturedMessages.push(stripAnsi(args.join(' ').trim()));
60+
this.capturedMessages.push(chalk.stripColor(args.join(' ').trim()));
6161
} else {
6262
method.apply(console, this.colorize(args, color));
6363
}

0 commit comments

Comments
 (0)