inferred-types 0.51.2 → 0.51.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs
CHANGED
|
@@ -4976,7 +4976,7 @@ var cssColor = (color, v1, v2, v3, opacity) => {
|
|
|
4976
4976
|
|
|
4977
4977
|
// src/runtime/errors/KindError.ts
|
|
4978
4978
|
var import_lite = require("error-stack-parser-es/lite");
|
|
4979
|
-
var
|
|
4979
|
+
var import_pathe = require("pathe");
|
|
4980
4980
|
var IGNORABLES = [
|
|
4981
4981
|
"@vitest/runner",
|
|
4982
4982
|
"node:"
|
|
@@ -4986,7 +4986,7 @@ function kindError(kind, baseContext = {}) {
|
|
|
4986
4986
|
const err = new Error(msg);
|
|
4987
4987
|
const stackTrace = (0, import_lite.parse)(err).filter((i) => !IGNORABLES.some((has) => i.file && i.file.includes(has))).map((i) => ({
|
|
4988
4988
|
...i,
|
|
4989
|
-
file: i.file ? (0,
|
|
4989
|
+
file: i.file ? (0, import_pathe.relative)(process.cwd(), i.file) : void 0
|
|
4990
4990
|
}));
|
|
4991
4991
|
err.name = toPascalCase(kind);
|
|
4992
4992
|
err.kind = toKebabCase(kind);
|
package/dist/index.js
CHANGED
|
@@ -4374,7 +4374,7 @@ var cssColor = (color, v1, v2, v3, opacity) => {
|
|
|
4374
4374
|
|
|
4375
4375
|
// src/runtime/errors/KindError.ts
|
|
4376
4376
|
import { parse } from "error-stack-parser-es/lite";
|
|
4377
|
-
import { relative } from "
|
|
4377
|
+
import { relative } from "pathe";
|
|
4378
4378
|
var IGNORABLES = [
|
|
4379
4379
|
"@vitest/runner",
|
|
4380
4380
|
"node:"
|