v8-to-istanbul
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -5,2 +5,11 @@ # Changelog | ||
### [3.2.1](https://github.com/bcoe/v8-to-istanbul/compare/v3.2.0...v3.2.1) (2019-06-23) | ||
### Bug Fixes | ||
* logic for handling sourceRoot did not take into account process.cwd() ([#39](https://github.com/bcoe/v8-to-istanbul/issues/39)) ([6ed9524](https://github.com/bcoe/v8-to-istanbul/commit/6ed9524)) | ||
## [3.2.0](https://github.com/bcoe/v8-to-istanbul/compare/v3.1.3...v3.2.0) (2019-06-23) | ||
@@ -7,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
const { relativeTo } = require('./pathutils') | ||
const { isAbsolute, relativeTo } = require('./pathutils') | ||
const assert = require('assert') | ||
@@ -43,3 +43,5 @@ const convertSourceMap = require('convert-source-map') | ||
} else { | ||
if (rawSourceMap.sourcemap.sourceRoot) { | ||
if (rawSourceMap.sourcemap.sourceRoot && isAbsolute(rawSourceMap.sourcemap.sourceRoot)) { | ||
// TODO: we should also make source-root work with relative paths, but this needs | ||
// to be combined with the relativeTo logic which takes into account process.cwd(). | ||
this.path = join(rawSourceMap.sourcemap.sourceRoot, rawSourceMap.sourcemap.sources[0]) | ||
@@ -46,0 +48,0 @@ } else { |
{ | ||
"name": "v8-to-istanbul", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "convert from v8 coverage format to istanbul's format", | ||
@@ -8,2 +8,3 @@ "main": "index.js", | ||
"scripts": { | ||
"fix": "standard --fix", | ||
"snapshot": "TAP_SNAPSHOT=1 tap test/*.js", | ||
@@ -10,0 +11,0 @@ "test": "c8 --reporter=html --reporter=text tap --no-coverage --no-esm test/*.js", |
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
93418
3764