karma-mocha-reporter
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -0,1 +1,11 @@ | ||
<a name="2.2.4"></a> | ||
## [2.2.4](https://github.com/litixsoft/karma-mocha-reporter/compare/v2.2.3...v2.2.4) (2017-08-24) | ||
### Features | ||
* use log-symbols package ([b0aac74](https://github.com/litixsoft/karma-mocha-reporter/commit/b0aac74)) | ||
<a name="2.2.3"></a> | ||
@@ -2,0 +12,0 @@ ## [2.2.3](https://github.com/litixsoft/karma-mocha-reporter/compare/v2.2.2...v2.2.3) (2017-03-20) |
15
index.js
'use strict'; | ||
var chalk = require('chalk'); | ||
var symbols = require('./symbols'); | ||
var symbols = require('log-symbols'); | ||
var stripAnsi = require('strip-ansi'); | ||
@@ -65,15 +66,15 @@ /** | ||
success: { | ||
symbol: config.mochaReporter.symbols.success || symbols.success, | ||
symbol: config.mochaReporter.symbols.success || stripAnsi(symbols.success), | ||
print: chalk[config.mochaReporter.colors.success] || chalk.green | ||
}, | ||
info: { | ||
symbol: config.mochaReporter.symbols.info || symbols.info, | ||
symbol: config.mochaReporter.symbols.info || stripAnsi(symbols.info), | ||
print: chalk[config.mochaReporter.colors.info] || chalk.grey | ||
}, | ||
warning: { | ||
symbol: config.mochaReporter.symbols.warning || symbols.warning, | ||
symbol: config.mochaReporter.symbols.warning || stripAnsi(symbols.warning), | ||
print: chalk[config.mochaReporter.colors.warning] || chalk.yellow | ||
}, | ||
error: { | ||
symbol: config.mochaReporter.symbols.error || symbols.error, | ||
symbol: config.mochaReporter.symbols.error || stripAnsi(symbols.error), | ||
print: chalk[config.mochaReporter.colors.error] || chalk.red | ||
@@ -103,3 +104,3 @@ } | ||
function getLogSymbol(color) { | ||
return chalk.enabled ? color.print(color.symbol) : chalk.stripColor(color.symbol); | ||
return chalk.enabled ? color.print(color.symbol) : stripAnsi(color.symbol); | ||
} | ||
@@ -273,3 +274,3 @@ | ||
// print skipped tests info | ||
line = colors.info.print(chalk.stripColor(line) + ' (skipped)'); | ||
line = colors.info.print(stripAnsi(line) + ' (skipped)'); | ||
} else { | ||
@@ -276,0 +277,0 @@ // set color to success or error |
{ | ||
"name": "karma-mocha-reporter", | ||
"description": "Karma reporter with mocha style logging.", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"homepage": "http://www.litixsoft.de/index.php?lang=en#modules", | ||
@@ -57,15 +57,15 @@ "author": "Litixsoft GmbH <info@litixsoft.de> (http://www.litixsoft.de)", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"chai": "^4.0.2", | ||
"grunt": "^1.0.1", | ||
"grunt-bump": "^0.8.0", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-contrib-jshint": "^1.1.0", | ||
"grunt-conventional-changelog": "^6.1.0", | ||
"grunt-karma": "^2.0.0", | ||
"grunt-shell": "^2.0.0", | ||
"jasmine-core": "^2.5.2", | ||
"grunt-shell": "^2.1.0", | ||
"jasmine-core": "^2.6.3", | ||
"karma": ">=0.13", | ||
"karma-chai": "^0.1.0", | ||
"karma-chrome-launcher": "*", | ||
"karma-detect-browsers": "^2.1.0", | ||
"karma-detect-browsers": "^2.2.5", | ||
"karma-firefox-launcher": "*", | ||
@@ -80,7 +80,9 @@ "karma-ie-launcher": "*", | ||
"load-grunt-tasks": "^3.5.2", | ||
"mocha": "^3.0.2", | ||
"phantomjs-prebuilt": "^2.1.12" | ||
"mocha": "^3.4.2", | ||
"phantomjs-prebuilt": "^2.1.14" | ||
}, | ||
"dependencies": { | ||
"chalk": "1.1.3" | ||
"chalk": "^2.1.0", | ||
"log-symbols": "^2.0.0", | ||
"strip-ansi": "^4.0.0" | ||
}, | ||
@@ -87,0 +89,0 @@ "peerDependencies": { |
39396
4
7
533
+ Addedlog-symbols@^2.0.0
+ Addedstrip-ansi@^4.0.0
+ Addedansi-regex@3.0.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedlog-symbols@2.2.0(transitive)
+ Addedstrip-ansi@4.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedchalk@1.1.3(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
Updatedchalk@^2.1.0