@tapjs/processinfo
Advanced tools
Comparing version 2.5.2 to 2.5.3
@@ -14,2 +14,11 @@ "use strict"; | ||
const line_lengths_js_1 = require("./line-lengths.js"); | ||
// this can throw in some cases in node 19 | ||
/* c8 ignore start */ | ||
const findSourceMapSafe = (s) => { | ||
try { | ||
return (0, module_1.findSourceMap)(s); | ||
} | ||
catch { } | ||
}; | ||
/* c8 ignore stop */ | ||
exports.SESSION = undefined; | ||
@@ -104,3 +113,3 @@ // NB: coverage exclusion is in addition to processinfo | ||
// attach a tapmock search param, which is in node's internal key. | ||
const s = (0, module_1.findSourceMap)(String(obj.url)); | ||
const s = findSourceMapSafe(String(obj.url)); | ||
if (!fileCovered(f, s?.payload, processInfo.files)) { | ||
@@ -107,0 +116,0 @@ return false; |
@@ -11,2 +11,11 @@ // start tracking coverage, unless disabled explicltly | ||
import { getLineLengths } from './line-lengths.js'; | ||
// this can throw in some cases in node 19 | ||
/* c8 ignore start */ | ||
const findSourceMapSafe = (s) => { | ||
try { | ||
return findSourceMap(s); | ||
} | ||
catch { } | ||
}; | ||
/* c8 ignore stop */ | ||
export let SESSION = undefined; | ||
@@ -100,3 +109,3 @@ // NB: coverage exclusion is in addition to processinfo | ||
// attach a tapmock search param, which is in node's internal key. | ||
const s = findSourceMap(String(obj.url)); | ||
const s = findSourceMapSafe(String(obj.url)); | ||
if (!fileCovered(f, s?.payload, processInfo.files)) { | ||
@@ -103,0 +112,0 @@ return false; |
{ | ||
"name": "@tapjs/processinfo", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"main": "./dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/cjs/index.d.ts", |
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
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
345055
2738