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

istanbul

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

14

lib/report/html.js

@@ -141,2 +141,6 @@ /*

function title(str) {
return ' title="' + str + '" ';
}
function annotateLines(fileCoverage, structuredText) {

@@ -167,3 +171,3 @@ var lineStats = fileCoverage.l;

endLine = meta.end.line,
openSpan = lt + 'span class="cstat-' + type + '"' + gt,
openSpan = lt + 'span class="cstat-no"' + title('statement not covered') + gt,
closeSpan = lt + '/span' + gt,

@@ -199,3 +203,3 @@ text;

endLine = meta.loc.end.line,
openSpan = lt + 'span class="fstat-' + type + '"' + gt,
openSpan = lt + 'span class="fstat-no"' + title('function not covered') + gt,
closeSpan = lt + '/span' + gt,

@@ -248,3 +252,3 @@ text;

endLine = meta.end.line;
openSpan = lt + 'span class="branch-' + i + ' cbranch-' + type + '"' + gt;
openSpan = lt + 'span class="branch-' + i + ' cbranch-no"' + title('branch not covered') + gt;
closeSpan = lt + '/span' + gt;

@@ -259,3 +263,5 @@

if (branchMeta[branchName].type === 'if') { // and 'if' is a special case since the else branch might not be visible, being non-existent
text.insertAt(startCol, lt + 'span class="missing-if-branch"' + gt + (i === 0 ? 'I' : 'E') + lt + '/span' + gt, true, false);
text.insertAt(startCol, lt + 'span class="missing-if-branch"' +
title((i === 0 ? 'if' : 'else') + ' path not taken"') + gt +
(i === 0 ? 'I' : 'E') + lt + '/span' + gt, true, false);
} else {

@@ -262,0 +268,0 @@ text.wrap(startCol,

@@ -102,3 +102,2 @@ <!doctype html>

margin-right: 10px;
margin-left: -30px;
position: relative;

@@ -105,0 +104,0 @@ padding: 0 4px;

{
"name": "istanbul",
"version": "0.1.3",
"version": "0.1.4",
"description": "Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale",

@@ -5,0 +5,0 @@ "keywords": "coverage,code coverage, JS code coverage, JS coverage",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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