Socket
Socket
Sign inDemoInstall

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 9.0.1 to 9.1.0

7

CHANGELOG.md

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

## [9.1.0](https://github.com/istanbuljs/v8-to-istanbul/compare/v9.0.1...v9.1.0) (2023-02-14)
### Features
* ignore hint more now accepts more suffixes ([#203](https://github.com/istanbuljs/v8-to-istanbul/issues/203)) ([65e70d1](https://github.com/istanbuljs/v8-to-istanbul/commit/65e70d14fd9977dc987d7ae2f6085895e3bc3cdb))
## [9.0.1](https://github.com/istanbuljs/v8-to-istanbul/compare/v9.0.0...v9.0.1) (2022-06-20)

@@ -7,0 +14,0 @@

8

lib/source.js

@@ -54,3 +54,3 @@ const CovLine = require('./line')

_parseIgnore (lineStr) {
const testIgnoreNextLines = lineStr.match(/^\W*\/\* c8 ignore next (?<count>[0-9]+) *\*\/\W*$/)
const testIgnoreNextLines = lineStr.match(/^\W*\/\* c8 ignore next (?<count>[0-9]+)/)
if (testIgnoreNextLines) {

@@ -61,7 +61,7 @@ return { count: Number(testIgnoreNextLines.groups.count) }

// Check if comment is on its own line.
if (lineStr.match(/^\W*\/\* c8 ignore next *\*\/\W*$/)) {
if (lineStr.match(/^\W*\/\* c8 ignore next/)) {
return { count: 1 }
}
if (lineStr.match(/\/\* c8 ignore next \*\//)) {
if (lineStr.match(/\/\* c8 ignore next/)) {
// Won't ignore successive lines, but the current line will be ignored.

@@ -71,3 +71,3 @@ return { count: 0 }

const testIgnoreStartStop = lineStr.match(/\/\* c8 ignore (?<mode>start|stop) *\*\//)
const testIgnoreStartStop = lineStr.match(/\/\* c8 ignore (?<mode>start|stop)/)
if (testIgnoreStartStop) {

@@ -74,0 +74,0 @@ if (testIgnoreStartStop.groups.mode === 'start') return { start: true }

{
"name": "v8-to-istanbul",
"version": "9.0.1",
"version": "9.1.0",
"description": "convert from v8 coverage format to istanbul's format",

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

"devDependencies": {
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"c8": "^7.2.1",

@@ -36,0 +36,0 @@ "semver": "^7.3.2",

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