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

istanbul-lib-source-maps

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-lib-source-maps - npm Package Compare versions

Comparing version 3.0.6 to 4.0.0-alpha.0

16

CHANGELOG.md

@@ -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 @@

13

lib/transform-utils.js

@@ -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"
}
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