v8-to-istanbul
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -5,2 +5,10 @@ # Changelog | ||
### [4.1.3](https://www.github.com/istanbuljs/v8-to-istanbul/compare/v4.1.2...v4.1.3) (2020-03-27) | ||
### Bug Fixes | ||
* handle sourcemap `sources` emtpy edge case ([#94](https://www.github.com/istanbuljs/v8-to-istanbul/issues/94)) ([628af48](https://www.github.com/istanbuljs/v8-to-istanbul/commit/628af48e2f7ab279c52f4355c0ccb92ac16b2c1a)) | ||
* v8 coverage ranges that fall on \n characters cause exceptions ([#96](https://www.github.com/istanbuljs/v8-to-istanbul/issues/96)) ([c5731a3](https://www.github.com/istanbuljs/v8-to-istanbul/commit/c5731a3b2fe4dccfae9ee581a5bf7a6e362f5cb8)) | ||
### [4.1.2](https://www.github.com/istanbuljs/v8-to-istanbul/compare/v4.1.1...v4.1.2) (2020-02-09) | ||
@@ -7,0 +15,0 @@ |
@@ -59,3 +59,3 @@ const CovLine = require('./line') | ||
lines[0].line, | ||
startCol - lines[0].startCol | ||
Math.max(0, startCol - lines[0].startCol) | ||
) | ||
@@ -62,0 +62,0 @@ let end = originalEndPositionFor( |
@@ -76,3 +76,3 @@ const assert = require('assert') | ||
const sourceRoot = rawSourceMap.sourcemap.sourceRoot ? rawSourceMap.sourcemap.sourceRoot.replace('file://', '') : '' | ||
const sourcePath = rawSourceMap.sourcemap.sources[0].replace('file://', '') | ||
const sourcePath = rawSourceMap.sourcemap.sources.length >= 1 ? rawSourceMap.sourcemap.sources[0].replace('file://', '') : rawSourceMap.sourcemap.file | ||
const candidatePath = join(sourceRoot, sourcePath) | ||
@@ -79,0 +79,0 @@ |
{ | ||
"name": "v8-to-istanbul", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "convert from v8 coverage format to istanbul's format", | ||
@@ -35,3 +35,3 @@ "main": "index.js", | ||
"c8": "^7.0.0", | ||
"coveralls": "3.0.9", | ||
"coveralls": "3.0.11", | ||
"should": "13.2.3", | ||
@@ -38,0 +38,0 @@ "standard": "^14.3.1", |
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
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
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
31252
0