tap-parser
Advanced tools
Comparing version 15.0.0 to 15.1.0
@@ -297,2 +297,7 @@ "use strict"; | ||
} | ||
if (typeof diags.duration_ms === 'number' && | ||
this.#current.time === null) { | ||
this.#current.time = diags.duration_ms; | ||
delete diags.duration_ms; | ||
} | ||
this.#current.diag = diags; | ||
@@ -299,0 +304,0 @@ // we still don't emit the result here yet, to support diags |
@@ -12,3 +12,4 @@ "use strict"; | ||
return false; | ||
line = line.replace(brace_patterns_js_1.OPEN_BRACE_EOL, '').trim(); | ||
line = line.replace(brace_patterns_js_1.OPEN_BRACE_EOL, '').trim() | ||
.replace(/^duration_ms ([0-9.]+)$/, 'time=$1ms'); | ||
const time = line.match(/^time=((?:[1-9][0-9]*|0)(?:\.[0-9]+)?)(ms|s)$/i); | ||
@@ -15,0 +16,0 @@ const t = time?.[1]; |
@@ -285,2 +285,7 @@ import { EventEmitter } from 'events'; | ||
} | ||
if (typeof diags.duration_ms === 'number' && | ||
this.#current.time === null) { | ||
this.#current.time = diags.duration_ms; | ||
delete diags.duration_ms; | ||
} | ||
this.#current.diag = diags; | ||
@@ -287,0 +292,0 @@ // we still don't emit the result here yet, to support diags |
@@ -9,3 +9,4 @@ import { OPEN_BRACE_EOL } from './brace-patterns.js'; | ||
return false; | ||
line = line.replace(OPEN_BRACE_EOL, '').trim(); | ||
line = line.replace(OPEN_BRACE_EOL, '').trim() | ||
.replace(/^duration_ms ([0-9.]+)$/, 'time=$1ms'); | ||
const time = line.match(/^time=((?:[1-9][0-9]*|0)(?:\.[0-9]+)?)(ms|s)$/i); | ||
@@ -12,0 +13,0 @@ const t = time?.[1]; |
{ | ||
"name": "tap-parser", | ||
"version": "15.0.0", | ||
"version": "15.1.0", | ||
"description": "parse the test anything protocol", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
312233
3319