@vitest/utils
Advanced tools
Comparing version 2.0.0-beta.12 to 2.0.0-beta.13
@@ -107,2 +107,3 @@ import { ParsedStack, ErrorWithDiff } from './types.js'; | ||
getSourceMap?: (file: string) => unknown; | ||
getFileName?: (id: string) => string; | ||
frameFilter?: (error: Error, frame: ParsedStack) => boolean | void; | ||
@@ -109,0 +110,0 @@ } |
@@ -892,2 +892,5 @@ import { notNullish, isPrimitive } from './helpers.js'; | ||
var _a; | ||
if (options.getFileName) { | ||
stack2.file = options.getFileName(stack2.file); | ||
} | ||
const map = (_a = options.getSourceMap) == null ? void 0 : _a.call(options, stack2.file); | ||
@@ -894,0 +897,0 @@ if (!map || typeof map !== "object" || !map.version) { |
{ | ||
"name": "@vitest/utils", | ||
"type": "module", | ||
"version": "2.0.0-beta.12", | ||
"version": "2.0.0-beta.13", | ||
"description": "Shared Vitest utility functions", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
157287
4543