istanbul-lib-coverage
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -49,2 +49,9 @@ # Change Log | ||
### [3.0.2](https://www.github.com/istanbuljs/istanbuljs/compare/istanbul-lib-coverage-v3.0.1...istanbul-lib-coverage-v3.0.2) (2021-10-11) | ||
### Bug Fixes | ||
* handle merging '0' indexed coverage with '1' indexed coverage ([5dac2bc](https://www.github.com/istanbuljs/istanbuljs/commit/5dac2bcf28d6f27dbb720be72c2b692153418ab5)), closes [#632](https://www.github.com/istanbuljs/istanbuljs/issues/632) | ||
### [3.0.1](https://www.github.com/istanbuljs/istanbuljs/compare/istanbul-lib-coverage-v3.0.0...istanbul-lib-coverage-v3.0.1) (2021-09-23) | ||
@@ -51,0 +58,0 @@ |
@@ -47,10 +47,9 @@ /* | ||
const mergeProp = (aHits, aMap, bHits, bMap, itemKey = keyFromLoc) => { | ||
const aItems = Object.values(aHits).reduce((items, itemHits, i) => { | ||
const item = aMap[i]; | ||
items[itemKey(item)] = [itemHits, item]; | ||
return items; | ||
}, {}); | ||
Object.values(bHits).forEach((bItemHits, i) => { | ||
const bItem = bMap[i]; | ||
const aItems = {}; | ||
for (const [key, itemHits] of Object.entries(aHits)) { | ||
const item = aMap[key]; | ||
aItems[itemKey(item)] = [itemHits, item]; | ||
} | ||
for (const [key, bItemHits] of Object.entries(bHits)) { | ||
const bItem = bMap[key]; | ||
const k = itemKey(bItem); | ||
@@ -72,4 +71,3 @@ | ||
} | ||
}); | ||
} | ||
const hits = {}; | ||
@@ -76,0 +74,0 @@ const map = {}; |
{ | ||
"name": "istanbul-lib-coverage", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Data library for istanbul coverage objects", | ||
@@ -5,0 +5,0 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
27344
0