karma-json-reporter
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -8,4 +8,5 @@ /* jshint node: true */ | ||
// | ||
var JSONReporter = function (baseReporterDecorator, config, helper) { | ||
var JSONReporter = function (baseReporterDecorator, config, helper, logger) { | ||
var log = logger.create('karma-json-reporter'); | ||
baseReporterDecorator(this); | ||
@@ -20,3 +21,3 @@ | ||
var reporterConfig = config.jsonReporter || {}; | ||
var stdout = reporterConfig.stdout || true; | ||
var stdout = typeof reporterConfig.stdout !== 'undefined' ? reporterConfig.stdout : true; | ||
var outputFile = (reporterConfig.outputFile) ? helper.normalizeWinPath(path.resolve(config.basePath, reporterConfig.outputFile )) : null; | ||
@@ -49,3 +50,3 @@ | ||
JSONReporter.$inject = ['baseReporterDecorator','config','helper']; | ||
JSONReporter.$inject = ['baseReporterDecorator','config','helper','logger']; | ||
@@ -52,0 +53,0 @@ // PUBLISH DI MODULE |
{ | ||
"name": "karma-json-reporter", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "JSON reporter for Karma", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5133
43