v8-to-istanbul
Advanced tools
Comparing version 9.0.1 to 9.1.0
@@ -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 @@ |
@@ -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", |
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
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
44946