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

@hedia/test

Package Overview
Dependencies
Maintainers
13
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hedia/test - npm Package Compare versions

Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3

2

package.json
{
"name": "@hedia/test",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"description": "Custom Test Reporters",

@@ -5,0 +5,0 @@ "type": "module",

@@ -26,14 +26,12 @@ import { attr, element, render } from "@hedia/html";

const uncoveredLines = file.lines
.filter((line) => line.count === 0)
.map((line) => line.line);
for (const line of file.lines) {
const entry = sourceMap?.findOrigin(line.line, 1);
for (const lineNumber of uncoveredLines) {
const entry = sourceMap.findOrigin(lineNumber, 1);
if (entry) {
originalFiles[entry.fileName] =
originalFiles[entry.fileName] || new Set();
const originalFile = (originalFiles[entry.fileName] =
originalFiles[entry.fileName] || new Map());
originalFiles[entry.fileName].add(entry.lineNumber);
const count = (originalFile.get(entry.lineNumber) || 0) + line.count;
originalFiles[entry.fileName].set(entry.lineNumber, count);
}

@@ -51,7 +49,7 @@ }

attr("path", fileName),
...Array.from(lines).map((line) =>
...Array.from(lines).map(([number, count]) =>
element(
"lineToCover",
attr("lineNumber", line.toString()),
attr("covered", "false")
attr("lineNumber", number.toString()),
attr("covered", count ? "true" : "false")
)

@@ -58,0 +56,0 @@ )

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