v8-to-istanbul
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [4.1.0](https://www.github.com/istanbuljs/v8-to-istanbul/compare/v4.0.1...v4.1.0) (2020-02-06) | ||
### Features | ||
* use the inline source content if available ([#85](https://www.github.com/istanbuljs/v8-to-istanbul/issues/85)) ([1a6d47f](https://www.github.com/istanbuljs/v8-to-istanbul/commit/1a6d47f1412d7c2b072fe794b6bd08bfbf4bbd55)) | ||
### [4.0.1](https://www.github.com/istanbuljs/v8-to-istanbul/compare/v4.0.0...v4.0.1) (2019-12-12) | ||
@@ -7,0 +14,0 @@ |
@@ -54,3 +54,9 @@ const assert = require('assert') | ||
let originalRawSource | ||
if (this.sources.originalSource) { | ||
// If the source map has inline source content then it should be here | ||
// so use this inline one instead of trying to read the file off disk | ||
// Not sure what it means to have an array of more than 1 here so just ignore it | ||
// since we wouldn't know how to handle it | ||
if (this.sources.sourceMap && this.sources.sourceMap.sourcemap.sourcesContent.length === 1) { | ||
originalRawSource = this.sources.sourceMap.sourcemap.sourcesContent[0] | ||
} else if (this.sources.originalSource) { | ||
originalRawSource = this.sources.originalSource | ||
@@ -57,0 +63,0 @@ } else { |
{ | ||
"name": "v8-to-istanbul", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "convert from v8 coverage format to istanbul's format", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"repository": { | ||
"url": "git@github.com:bcoe/v8-to-istanbul.git" | ||
"url": "git@github.com:istanbuljs/v8-to-istanbul.git" | ||
}, | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"@types/node": "^12.7.11", | ||
"c8": "^6.0.1", | ||
"c8": "^7.0.0", | ||
"coveralls": "3.0.9", | ||
@@ -40,0 +40,0 @@ "should": "13.2.3", |
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 repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
29849
505