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

coveralls

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coveralls - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

12

lib/convertLcovToCoveralls.js
var TRAVIS_JOB_ID = process.env.TRAVIS_JOB_ID || 'unknown';
var fs = require('fs');
var lcovParse = require('./parser');
var path = require('path');

@@ -14,4 +15,4 @@ var detailsToCoverage = function(length, details){

var convertLcovFileObject = function(file, filepath){
var path = filepath + "/" + file.file;
var source = fs.readFileSync(path, 'utf8');
var fullpath = path.join(filepath, file.file);
var source = fs.readFileSync(fullpath, 'utf8');
var lines = source.split("\n");

@@ -27,9 +28,4 @@ var coverage = detailsToCoverage(lines.length, file.lines.details);

if (filepath[0] !== '/'){
filepath = process.cwd() + '/' + filepath;
filepath = path.join(process.cwd(), filepath);
}
console.log("now: ", filepath);
if (filepath[filepath.length - 1] !== '/'){
filepath = filepath + '/';
}
console.log("abs: ", filepath);
var parsed = lcovParse(input);

@@ -36,0 +32,0 @@ var postJson = {

@@ -5,3 +5,3 @@ {

"keywords" : ["coverage", "coveralls"],
"version": "2.0.1",
"version": "2.0.2",
"bugs": {

@@ -8,0 +8,0 @@ "url": "https://github.com/cainus/node-coveralls/issues"

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