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.0.0-candidate.0 to 7.0.0-candidate.1

6

lib/source.js

@@ -209,6 +209,6 @@ const CovLine = require('./line')

// Not required since Node 13, see: https://github.com/nodejs/node/pull/27375
const isPrerNode13 = /^v1[0-2]\./u.test(process.version)
// Not required since Node 12, see: https://github.com/nodejs/node/pull/27375
const isPreNode12 = /^v1[0-1]\./u.test(process.version)
function getShebangLength (source) {
if (isPrerNode13 && source.indexOf('#!') === 0) {
if (isPreNode12 && source.indexOf('#!') === 0) {
const match = source.match(/(?<shebang>#!.*)/)

@@ -215,0 +215,0 @@ if (match) {

@@ -37,5 +37,2 @@ const assert = require('assert')

this.sourceTranspiled = undefined
// Indicate that this report was generated with placeholder data from
// running --all:
this.all = false
}

@@ -111,7 +108,6 @@

line.count = 0
this.all = true
return true
}
return startCol < line.endCol && endCol >= line.startCol
return startCol <= line.endCol && endCol >= line.startCol
})

@@ -231,3 +227,2 @@ const startLineInstance = lines[0]

path: resolvedPath,
all: this.all,
...this._statementsToIstanbul(source, path),

@@ -234,0 +229,0 @@ ...this._branchesToIstanbul(source, path),

{
"name": "v8-to-istanbul",
"version": "7.0.0-candidate.0",
"version": "7.0.0-candidate.1",
"description": "convert from v8 coverage format to istanbul's format",

@@ -5,0 +5,0 @@ "main": "index.js",

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