Socket
Socket
Sign inDemoInstall

@web/test-runner-core

Package Overview
Dependencies
Maintainers
6
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/test-runner-core - npm Package Compare versions

Comparing version 0.6.9 to 0.6.10

6

CHANGELOG.md
# @web/test-runner-core
## 0.6.10
### Patch Changes
- 1ebbf4a: fix deep cloning causing slow coverage measurements
## 0.6.9

@@ -4,0 +10,0 @@

9

dist/coverage/getTestCoverage.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTestCoverage = exports.coverageTypes = void 0;
const istanbul_lib_coverage_1 = require("istanbul-lib-coverage");
const clone_1 = __importDefault(require("clone"));
exports.coverageTypes = [

@@ -78,4 +74,5 @@ 'lines',

// istanbul mutates the coverage objects, which pollutes coverage in watch mode
// cloning prevents this
coverages = clone_1.default(coverages);
// cloning prevents this. JSON stringify -> parse is faster than a fancy library
// because we're only working with objects and arrays
coverages = JSON.parse(JSON.stringify(coverages));
addingMissingCoverageBranches(coverages);

@@ -82,0 +79,0 @@ for (const coverage of coverages) {

{
"name": "@web/test-runner-core",
"version": "0.6.9",
"version": "0.6.10",
"publishConfig": {

@@ -37,3 +37,2 @@ "access": "public"

"dependencies": {
"clone": "^2.1.2",
"istanbul-lib-coverage": "^3.0.0",

@@ -44,3 +43,2 @@ "picomatch": "^2.2.2",

"devDependencies": {
"@types/clone": "^0.1.30",
"@types/istanbul-lib-coverage": "^2.0.2",

@@ -47,0 +45,0 @@ "@types/uuid": "^8.0.0"

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