istanbul-reports
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.0.1](https://github.com/istanbuljs/istanbuljs/compare/istanbul-reports@3.0.0...istanbul-reports@3.0.1) (2020-03-26) | ||
### Bug Fixes | ||
* cobertura should escape invalid characters ([#534](https://github.com/istanbuljs/istanbuljs/issues/534)) ([4fd5114](https://github.com/istanbuljs/istanbuljs/commit/4fd5114a0926d20e4e1e3055323c44281f0af6cd)) | ||
# [3.0.0](https://github.com/istanbuljs/istanbuljs/compare/istanbul-reports@3.0.0-alpha.6...istanbul-reports@3.0.0) (2019-12-20) | ||
@@ -8,0 +19,0 @@ |
@@ -7,2 +7,3 @@ 'use strict'; | ||
const path = require('path'); | ||
const { escape } = require('html-escaper'); | ||
const { ReportBase } = require('istanbul-lib-report'); | ||
@@ -63,3 +64,3 @@ | ||
this.xml.openTag('package', { | ||
name: asJavaPackage(node), | ||
name: escape(asJavaPackage(node)), | ||
'line-rate': metrics.lines.pct / 100.0, | ||
@@ -85,3 +86,3 @@ 'branch-rate': metrics.branches.pct / 100.0 | ||
this.xml.openTag('class', { | ||
name: asClassName(node), | ||
name: escape(asClassName(node)), | ||
filename: path.relative(this.projectRoot, fileCoverage.path), | ||
@@ -97,3 +98,3 @@ 'line-rate': metrics.lines.pct / 100.0, | ||
this.xml.openTag('method', { | ||
name, | ||
name: escape(name), | ||
hits, | ||
@@ -100,0 +101,0 @@ signature: '()V' //fake out a no-args void return |
{ | ||
"name": "istanbul-reports", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "istanbul reports", | ||
@@ -60,3 +60,3 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", | ||
}, | ||
"gitHead": "5319df684b508ff6fb19fe8b9a6147a3c5924e4b" | ||
"gitHead": "df24342395030dc2a40a7ceb0476a9897f3492a3" | ||
} |
Sorry, the diff of this file is too big to display
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
284384