Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

istanbul-reports

Package Overview
Dependencies
Maintainers
4
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-reports - npm Package Compare versions

Comparing version 3.0.0-alpha.4 to 3.0.0-alpha.5

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.0.0-alpha.5](https://github.com/istanbuljs/istanbuljs/compare/istanbul-reports@3.0.0-alpha.4...istanbul-reports@3.0.0-alpha.5) (2019-11-22)
### Features
* Add support for projectRoot option ([#492](https://github.com/istanbuljs/istanbuljs/issues/492)) ([177fd45](https://github.com/istanbuljs/istanbuljs/commit/177fd45ebd7e505e79120995d937d40f965bad79))
# [3.0.0-alpha.4](https://github.com/istanbuljs/istanbuljs/compare/istanbul-reports@3.0.0-alpha.3...istanbul-reports@3.0.0-alpha.4) (2019-11-18)

@@ -8,0 +19,0 @@

5

lib/lcov/index.js

@@ -11,6 +11,5 @@ 'use strict';

class LcovReport extends ReportBase {
constructor() {
constructor(opts) {
super();
this.lcov = new LcovOnlyReport({ file: 'lcov.info' });
this.lcov = new LcovOnlyReport({ file: 'lcov.info', ...opts });
this.html = new HtmlReport({ subdir: 'lcov-report' });

@@ -17,0 +16,0 @@ }

6

lib/lcovonly/index.js

@@ -12,2 +12,3 @@ /*

this.file = opts.file || 'lcov.info';
this.projectRoot = opts.projectRoot || process.cwd();
this.contentWriter = null;

@@ -29,5 +30,6 @@ }

const summary = node.getCoverageSummary();
const path = require('path');
writer.println('TN:'); //no test name
writer.println('SF:' + fc.path);
writer.println('TN:'); //no test nam
writer.println('SF:' + path.relative(this.projectRoot, fc.path));

@@ -34,0 +36,0 @@ Object.values(functionMap).forEach(meta => {

{
"name": "istanbul-reports",
"version": "3.0.0-alpha.4",
"version": "3.0.0-alpha.5",
"description": "istanbul reports",

@@ -60,3 +60,3 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",

},
"gitHead": "c69ce0cce10c1fb394b55ef0169e44e70f14ad24"
"gitHead": "bf0141b44a174626f4a3769a19b86a6c14d95a7b"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc