istanbul-lib-source-maps
Advanced tools
Comparing version 3.0.6 to 4.0.0-alpha.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [4.0.0-alpha.0](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-source-maps@3.0.6...istanbul-lib-source-maps@4.0.0-alpha.0) (2019-06-19) | ||
### Features | ||
* Update dependencies, require Node.js 8 ([#401](https://github.com/istanbuljs/istanbuljs/issues/401)) ([bf3a539](https://github.com/istanbuljs/istanbuljs/commit/bf3a539)) | ||
### BREAKING CHANGES | ||
* Node.js 8 is now required | ||
## [3.0.6](https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-source-maps@3.0.5...istanbul-lib-source-maps@3.0.6) (2019-04-24) | ||
@@ -8,0 +24,0 @@ |
@@ -12,10 +12,11 @@ /* | ||
function getOutput(cache) { | ||
return Object.keys(cache).reduce((output, key) => { | ||
const item = cache[key]; | ||
return Object.assign(output, { | ||
[item.file]: item.mappedCoverage | ||
}); | ||
}, {}); | ||
return Object.values(cache).reduce( | ||
(output, { file, mappedCoverage }) => ({ | ||
...output, | ||
[file]: mappedCoverage | ||
}), | ||
{} | ||
); | ||
} | ||
module.exports = { getUniqueKey, getOutput }; |
@@ -22,4 +22,3 @@ /* | ||
Object.keys(fc.statementMap).forEach(s => { | ||
const loc = fc.statementMap[s]; | ||
Object.entries(fc.statementMap).forEach(([s, loc]) => { | ||
const hits = fc.s[s]; | ||
@@ -35,4 +34,3 @@ const mapping = getMapping(sourceMap, loc, fc.path); | ||
Object.keys(fc.fnMap).forEach(f => { | ||
const fnMeta = fc.fnMap[f]; | ||
Object.entries(fc.fnMap).forEach(([f, fnMeta]) => { | ||
const hits = fc.f[f]; | ||
@@ -58,4 +56,3 @@ const mapping = getMapping(sourceMap, fnMeta.decl, fc.path); | ||
Object.keys(fc.branchMap).forEach(b => { | ||
const branchMeta = fc.branchMap[b]; | ||
Object.entries(fc.branchMap).forEach(([b, branchMeta]) => { | ||
const hits = fc.b[b]; | ||
@@ -62,0 +59,0 @@ const locs = []; |
{ | ||
"name": "istanbul-lib-source-maps", | ||
"version": "3.0.6", | ||
"version": "4.0.0-alpha.0", | ||
"description": "Source maps support for istanbul", | ||
@@ -12,8 +12,8 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "nyc --nycrc-path=../../monorepo-per-package-nycrc.json mocha" | ||
}, | ||
"dependencies": { | ||
"debug": "^4.1.1", | ||
"istanbul-lib-coverage": "^2.0.5", | ||
"make-dir": "^2.1.0", | ||
"istanbul-lib-coverage": "^3.0.0-alpha.0", | ||
"make-dir": "^3.0.0", | ||
"rimraf": "^2.6.3", | ||
@@ -23,3 +23,6 @@ "source-map": "^0.6.1" | ||
"devDependencies": { | ||
"ts-node": "^8.1.0" | ||
"chai": "^4.2.0", | ||
"mocha": "^6.1.4", | ||
"nyc": "^14.1.1", | ||
"ts-node": "^8.3.0" | ||
}, | ||
@@ -43,5 +46,5 @@ "license": "BSD-3-Clause", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
"gitHead": "90e60cc47833bb780680f916488ca24f0be36ca2" | ||
"gitHead": "2e885073a9398806c9b8763dd39418398182ca34" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31744
4
659
1
+ Addedistanbul-lib-coverage@3.2.2(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedsemver@6.3.1(transitive)
- Removedistanbul-lib-coverage@2.0.5(transitive)
- Removedmake-dir@2.1.0(transitive)
- Removedpify@4.0.1(transitive)
- Removedsemver@5.7.2(transitive)
Updatedmake-dir@^3.0.0