Socket
Socket
Sign inDemoInstall

v8-to-istanbul

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v8-to-istanbul - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

7

CHANGELOG.md

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

8

lib/v8-to-istanbul.js

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

6

package.json
{
"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",

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