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

v8-to-istanbul

Package Overview
Dependencies
Maintainers
2
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 7.1.2 to 8.0.0

11

CHANGELOG.md

@@ -5,2 +5,13 @@ # Changelog

## [8.0.0](https://www.github.com/istanbuljs/v8-to-istanbul/compare/v7.1.2...v8.0.0) (2021-06-03)
### ⚠ BREAKING CHANGES
* minimum Node version now 10.12.
### Bug Fixes
* address file URL path regression on Windows ([#146](https://www.github.com/istanbuljs/v8-to-istanbul/issues/146)) ([bb04c56](https://www.github.com/istanbuljs/v8-to-istanbul/commit/bb04c561bffe9802b7d2e7e91216aa1d9230490a))
### [7.1.2](https://www.github.com/istanbuljs/v8-to-istanbul/compare/v7.1.1...v7.1.2) (2021-05-05)

@@ -7,0 +18,0 @@

8

lib/v8-to-istanbul.js
const assert = require('assert')
const convertSourceMap = require('convert-source-map')
const { dirname, isAbsolute, join, resolve } = require('path')
const { fileURLToPath } = require('url')
const CovBranch = require('./branch')

@@ -86,3 +87,6 @@ const CovFunction = require('./function')

_resolveSource (rawSourceMap, sourcePath) {
sourcePath = sourcePath.replace(/(^file:\/\/)|(^webpack:\/\/)/, '')
if (sourcePath.startsWith('file://')) {
return fileURLToPath(sourcePath)
}
sourcePath = sourcePath.replace(/^webpack:\/\//, '')
const sourceRoot = rawSourceMap.sourcemap.sourceRoot ? rawSourceMap.sourcemap.sourceRoot.replace('file://', '') : ''

@@ -286,3 +290,3 @@ const candidatePath = join(sourceRoot, sourcePath)

function parsePath (scriptPath) {
return scriptPath.replace('file://', '')
return scriptPath.startsWith('file://') ? fileURLToPath(scriptPath) : scriptPath
}
{
"name": "v8-to-istanbul",
"version": "7.1.2",
"version": "8.0.0",
"description": "convert from v8 coverage format to istanbul's format",

@@ -10,3 +10,3 @@ "main": "index.js",

"snapshot": "TAP_SNAPSHOT=1 tap test/*.js",
"test": "c8 --reporter=html --reporter=text tap --no-coverage --no-esm test/*.js",
"test": "c8 --reporter=html --reporter=text tap --no-coverage test/*.js",
"posttest": "standard",

@@ -34,3 +34,3 @@ "coverage": "c8 report --check-coverage"

"devDependencies": {
"@types/node": "^12.7.11",
"@types/node": "^14.0.0",
"c8": "^7.2.1",

@@ -40,6 +40,6 @@ "semver": "^7.3.2",

"standard": "^16.0.0",
"tap": "^14.10.8"
"tap": "^15.0.0"
},
"engines": {
"node": ">=10.10.0"
"node": ">=10.12.0"
},

@@ -46,0 +46,0 @@ "files": [

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