@mastra/evals 0.10.4 → 0.10.5
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/{chunk-CVPOREIE.cjs → chunk-IS3BZTWE.cjs} +1 -8
- package/dist/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +2 -8
- package/dist/{dist-JZSK5R7V.cjs → dist-HYT46G4X.cjs} +111 -85
- package/dist/{dist-7QQQSBD7.js → dist-M6SH7RKY.js} +101 -75
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
- /package/dist/{magic-string.es-5UDOWOAZ.js → magic-string.es-2DLRP5BO.js} +0 -0
- /package/dist/{magic-string.es-IL2775P6.cjs → magic-string.es-WF7K5PCM.cjs} +0 -0
|
@@ -6,13 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var
|
|
10
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
11
|
-
}) : x)(function(x) {
|
|
12
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
13
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
-
});
|
|
15
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
16
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
11
|
};
|
|
18
12
|
var __export = (target, all) => {
|
|
@@ -38,5 +32,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
32
|
|
|
39
33
|
exports.__commonJS = __commonJS;
|
|
40
34
|
exports.__export = __export;
|
|
41
|
-
exports.__require = __require;
|
|
42
35
|
exports.__toESM = __toESM;
|
|
@@ -4,13 +4,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var
|
|
8
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
-
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
-
});
|
|
13
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
14
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
9
|
};
|
|
16
10
|
var __export = (target, all) => {
|
|
@@ -34,4 +28,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
28
|
mod
|
|
35
29
|
));
|
|
36
30
|
|
|
37
|
-
export { __commonJS, __export,
|
|
31
|
+
export { __commonJS, __export, __toESM };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIS3BZTWE_cjs = require('./chunk-IS3BZTWE.cjs');
|
|
4
4
|
var tty = require('tty');
|
|
5
5
|
|
|
6
6
|
// ../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
|
|
7
|
-
var require_js_tokens =
|
|
7
|
+
var require_js_tokens = chunkIS3BZTWE_cjs.__commonJS({
|
|
8
8
|
"../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js"(exports, module) {
|
|
9
9
|
var HashbangComment;
|
|
10
10
|
var Identifier;
|
|
@@ -423,35 +423,35 @@ var require_js_tokens = chunkCVPOREIE_cjs.__commonJS({
|
|
|
423
423
|
});
|
|
424
424
|
|
|
425
425
|
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js
|
|
426
|
-
var require_branding =
|
|
426
|
+
var require_branding = chunkIS3BZTWE_cjs.__commonJS({
|
|
427
427
|
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js"(exports) {
|
|
428
428
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
|
|
432
432
|
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js
|
|
433
|
-
var require_messages =
|
|
433
|
+
var require_messages = chunkIS3BZTWE_cjs.__commonJS({
|
|
434
434
|
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js"(exports) {
|
|
435
435
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
|
|
439
439
|
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js
|
|
440
|
-
var require_overloads =
|
|
440
|
+
var require_overloads = chunkIS3BZTWE_cjs.__commonJS({
|
|
441
441
|
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js"(exports) {
|
|
442
442
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
443
443
|
}
|
|
444
444
|
});
|
|
445
445
|
|
|
446
446
|
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js
|
|
447
|
-
var require_utils =
|
|
447
|
+
var require_utils = chunkIS3BZTWE_cjs.__commonJS({
|
|
448
448
|
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js"(exports) {
|
|
449
449
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
452
|
|
|
453
453
|
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js
|
|
454
|
-
var require_dist =
|
|
454
|
+
var require_dist = chunkIS3BZTWE_cjs.__commonJS({
|
|
455
455
|
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js"(exports) {
|
|
456
456
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2, k, k2) {
|
|
457
457
|
if (k2 === void 0) k2 = k;
|
|
@@ -610,7 +610,7 @@ function p(n = false) {
|
|
|
610
610
|
var r = process.env.FORCE_TTY !== void 0 || tty.isatty(1);
|
|
611
611
|
var u = p(r);
|
|
612
612
|
|
|
613
|
-
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.
|
|
613
|
+
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js
|
|
614
614
|
function _mergeNamespaces$1(n, m2) {
|
|
615
615
|
m2.forEach(function(e) {
|
|
616
616
|
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
@@ -1842,7 +1842,7 @@ var plugins = {
|
|
|
1842
1842
|
Error: ErrorPlugin
|
|
1843
1843
|
};
|
|
1844
1844
|
|
|
1845
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
1845
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/helpers.js
|
|
1846
1846
|
var ansiColors = {
|
|
1847
1847
|
bold: ["1", "22"],
|
|
1848
1848
|
dim: ["2", "22"],
|
|
@@ -1997,7 +1997,7 @@ function inspectProperty([key, value], options) {
|
|
|
1997
1997
|
return `${key}: ${value}`;
|
|
1998
1998
|
}
|
|
1999
1999
|
|
|
2000
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2000
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/array.js
|
|
2001
2001
|
function inspectArray(array2, options) {
|
|
2002
2002
|
const nonIndexProperties = Object.keys(array2).slice(array2.length);
|
|
2003
2003
|
if (!array2.length && !nonIndexProperties.length)
|
|
@@ -2012,7 +2012,7 @@ function inspectArray(array2, options) {
|
|
|
2012
2012
|
return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2015
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/typedarray.js
|
|
2016
2016
|
var getArrayName = (array2) => {
|
|
2017
2017
|
if (typeof Buffer === "function" && array2 instanceof Buffer) {
|
|
2018
2018
|
return "Buffer";
|
|
@@ -2045,7 +2045,7 @@ function inspectTypedArray(array2, options) {
|
|
|
2045
2045
|
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
2046
2046
|
}
|
|
2047
2047
|
|
|
2048
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2048
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/date.js
|
|
2049
2049
|
function inspectDate(dateObject, options) {
|
|
2050
2050
|
const stringRepresentation = dateObject.toJSON();
|
|
2051
2051
|
if (stringRepresentation === null) {
|
|
@@ -2056,7 +2056,7 @@ function inspectDate(dateObject, options) {
|
|
|
2056
2056
|
return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
|
|
2057
2057
|
}
|
|
2058
2058
|
|
|
2059
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2059
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/function.js
|
|
2060
2060
|
function inspectFunction(func, options) {
|
|
2061
2061
|
const functionType = func[Symbol.toStringTag] || "Function";
|
|
2062
2062
|
const name = func.name;
|
|
@@ -2066,7 +2066,7 @@ function inspectFunction(func, options) {
|
|
|
2066
2066
|
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
|
|
2067
2067
|
}
|
|
2068
2068
|
|
|
2069
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2069
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/map.js
|
|
2070
2070
|
function inspectMapEntry([key, value], options) {
|
|
2071
2071
|
options.truncate -= 4;
|
|
2072
2072
|
key = options.inspect(key, options);
|
|
@@ -2088,7 +2088,7 @@ function inspectMap(map2, options) {
|
|
|
2088
2088
|
return `Map{ ${inspectList(mapToEntries(map2), options, inspectMapEntry)} }`;
|
|
2089
2089
|
}
|
|
2090
2090
|
|
|
2091
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2091
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/number.js
|
|
2092
2092
|
var isNaN = Number.isNaN || ((i) => i !== i);
|
|
2093
2093
|
function inspectNumber(number, options) {
|
|
2094
2094
|
if (isNaN(number)) {
|
|
@@ -2106,7 +2106,7 @@ function inspectNumber(number, options) {
|
|
|
2106
2106
|
return options.stylize(truncate(String(number), options.truncate), "number");
|
|
2107
2107
|
}
|
|
2108
2108
|
|
|
2109
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2109
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/bigint.js
|
|
2110
2110
|
function inspectBigInt(number, options) {
|
|
2111
2111
|
let nums = truncate(number.toString(), options.truncate - 1);
|
|
2112
2112
|
if (nums !== truncator)
|
|
@@ -2114,7 +2114,7 @@ function inspectBigInt(number, options) {
|
|
|
2114
2114
|
return options.stylize(nums, "bigint");
|
|
2115
2115
|
}
|
|
2116
2116
|
|
|
2117
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2117
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/regexp.js
|
|
2118
2118
|
function inspectRegExp(value, options) {
|
|
2119
2119
|
const flags = value.toString().split("/")[2];
|
|
2120
2120
|
const sourceLength = options.truncate - (2 + flags.length);
|
|
@@ -2122,7 +2122,7 @@ function inspectRegExp(value, options) {
|
|
|
2122
2122
|
return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2125
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/set.js
|
|
2126
2126
|
function arrayFromSet(set3) {
|
|
2127
2127
|
const values = [];
|
|
2128
2128
|
set3.forEach((value) => {
|
|
@@ -2137,7 +2137,7 @@ function inspectSet(set3, options) {
|
|
|
2137
2137
|
return `Set{ ${inspectList(arrayFromSet(set3), options)} }`;
|
|
2138
2138
|
}
|
|
2139
2139
|
|
|
2140
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2140
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/string.js
|
|
2141
2141
|
var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
2142
2142
|
var escapeCharacters = {
|
|
2143
2143
|
"\b": "\\b",
|
|
@@ -2159,7 +2159,7 @@ function inspectString(string2, options) {
|
|
|
2159
2159
|
return options.stylize(`'${truncate(string2, options.truncate - 2)}'`, "string");
|
|
2160
2160
|
}
|
|
2161
2161
|
|
|
2162
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2162
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/symbol.js
|
|
2163
2163
|
function inspectSymbol(value) {
|
|
2164
2164
|
if ("description" in Symbol.prototype) {
|
|
2165
2165
|
return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
@@ -2167,7 +2167,7 @@ function inspectSymbol(value) {
|
|
|
2167
2167
|
return value.toString();
|
|
2168
2168
|
}
|
|
2169
2169
|
|
|
2170
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2170
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/promise.js
|
|
2171
2171
|
var getPromiseValue = () => "Promise{\u2026}";
|
|
2172
2172
|
try {
|
|
2173
2173
|
const { getPromiseDetails, kPending, kRejected } = process.binding("util");
|
|
@@ -2184,7 +2184,7 @@ try {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
var promise_default = getPromiseValue;
|
|
2186
2186
|
|
|
2187
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2187
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/object.js
|
|
2188
2188
|
function inspectObject(object2, options) {
|
|
2189
2189
|
const properties = Object.getOwnPropertyNames(object2);
|
|
2190
2190
|
const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object2) : [];
|
|
@@ -2207,7 +2207,7 @@ function inspectObject(object2, options) {
|
|
|
2207
2207
|
return `{ ${propertyContents}${sep2}${symbolContents} }`;
|
|
2208
2208
|
}
|
|
2209
2209
|
|
|
2210
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2210
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/class.js
|
|
2211
2211
|
var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
|
|
2212
2212
|
function inspectClass(value, options) {
|
|
2213
2213
|
let name = "";
|
|
@@ -2222,7 +2222,7 @@ function inspectClass(value, options) {
|
|
|
2222
2222
|
return `${name}${inspectObject(value, options)}`;
|
|
2223
2223
|
}
|
|
2224
2224
|
|
|
2225
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2225
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/arguments.js
|
|
2226
2226
|
function inspectArguments(args, options) {
|
|
2227
2227
|
if (args.length === 0)
|
|
2228
2228
|
return "Arguments[]";
|
|
@@ -2230,7 +2230,7 @@ function inspectArguments(args, options) {
|
|
|
2230
2230
|
return `Arguments[ ${inspectList(args, options)} ]`;
|
|
2231
2231
|
}
|
|
2232
2232
|
|
|
2233
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2233
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/error.js
|
|
2234
2234
|
var errorKeys = [
|
|
2235
2235
|
"stack",
|
|
2236
2236
|
"line",
|
|
@@ -2265,7 +2265,7 @@ function inspectObject2(error, options) {
|
|
|
2265
2265
|
return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
|
|
2266
2266
|
}
|
|
2267
2267
|
|
|
2268
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2268
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/html.js
|
|
2269
2269
|
function inspectAttribute([key, value], options) {
|
|
2270
2270
|
options.truncate -= 3;
|
|
2271
2271
|
if (!value) {
|
|
@@ -2273,8 +2273,18 @@ function inspectAttribute([key, value], options) {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2277
|
-
return inspectList(collection, options,
|
|
2276
|
+
function inspectNodeCollection(collection, options) {
|
|
2277
|
+
return inspectList(collection, options, inspectNode, "\n");
|
|
2278
|
+
}
|
|
2279
|
+
function inspectNode(node, options) {
|
|
2280
|
+
switch (node.nodeType) {
|
|
2281
|
+
case 1:
|
|
2282
|
+
return inspectHTML(node, options);
|
|
2283
|
+
case 3:
|
|
2284
|
+
return options.inspect(node.data, options);
|
|
2285
|
+
default:
|
|
2286
|
+
return options.inspect(node, options);
|
|
2287
|
+
}
|
|
2278
2288
|
}
|
|
2279
2289
|
function inspectHTML(element, options) {
|
|
2280
2290
|
const properties = element.getAttributeNames();
|
|
@@ -2290,23 +2300,17 @@ function inspectHTML(element, options) {
|
|
|
2290
2300
|
}
|
|
2291
2301
|
options.truncate -= propertyContents.length;
|
|
2292
2302
|
const truncate3 = options.truncate;
|
|
2293
|
-
let children =
|
|
2303
|
+
let children = inspectNodeCollection(element.children, options);
|
|
2294
2304
|
if (children && children.length > truncate3) {
|
|
2295
2305
|
children = `${truncator}(${element.children.length})`;
|
|
2296
2306
|
}
|
|
2297
2307
|
return `${head}${propertyContents}${headClose}${children}${tail}`;
|
|
2298
2308
|
}
|
|
2299
2309
|
|
|
2300
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2310
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/index.js
|
|
2301
2311
|
var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";
|
|
2302
2312
|
var chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
2303
|
-
var nodeInspect =
|
|
2304
|
-
try {
|
|
2305
|
-
const nodeUtil = chunkCVPOREIE_cjs.__require("util");
|
|
2306
|
-
nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
|
|
2307
|
-
} catch (noNodeInspect) {
|
|
2308
|
-
nodeInspect = false;
|
|
2309
|
-
}
|
|
2313
|
+
var nodeInspect = Symbol.for("nodejs.util.inspect.custom");
|
|
2310
2314
|
var constructorMap = /* @__PURE__ */ new WeakMap();
|
|
2311
2315
|
var stringTagMap = {};
|
|
2312
2316
|
var baseTypesMap = {
|
|
@@ -2348,14 +2352,14 @@ var baseTypesMap = {
|
|
|
2348
2352
|
DataView: () => "",
|
|
2349
2353
|
ArrayBuffer: () => "",
|
|
2350
2354
|
Error: inspectObject2,
|
|
2351
|
-
HTMLCollection:
|
|
2352
|
-
NodeList:
|
|
2355
|
+
HTMLCollection: inspectNodeCollection,
|
|
2356
|
+
NodeList: inspectNodeCollection
|
|
2353
2357
|
};
|
|
2354
2358
|
var inspectCustom = (value, options, type3) => {
|
|
2355
2359
|
if (chaiInspect in value && typeof value[chaiInspect] === "function") {
|
|
2356
2360
|
return value[chaiInspect](options);
|
|
2357
2361
|
}
|
|
2358
|
-
if (nodeInspect
|
|
2362
|
+
if (nodeInspect in value && typeof value[nodeInspect] === "function") {
|
|
2359
2363
|
return value[nodeInspect](options.depth, options);
|
|
2360
2364
|
}
|
|
2361
2365
|
if ("inspect" in value && typeof value.inspect === "function") {
|
|
@@ -2407,7 +2411,7 @@ function inspect(value, opts = {}) {
|
|
|
2407
2411
|
return options.stylize(String(value), type3);
|
|
2408
2412
|
}
|
|
2409
2413
|
|
|
2410
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
2414
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
2411
2415
|
var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;
|
|
2412
2416
|
var PLUGINS = [
|
|
2413
2417
|
ReactTestComponent,
|
|
@@ -2565,7 +2569,7 @@ function getDefaultExportFromCjs2(x) {
|
|
|
2565
2569
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2566
2570
|
}
|
|
2567
2571
|
|
|
2568
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
2572
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js
|
|
2569
2573
|
function createSimpleStackTrace(options) {
|
|
2570
2574
|
const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
|
|
2571
2575
|
const limit = Error.stackTraceLimit;
|
|
@@ -2771,7 +2775,7 @@ function getSafeTimers() {
|
|
|
2771
2775
|
};
|
|
2772
2776
|
}
|
|
2773
2777
|
|
|
2774
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
2778
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/diff.js
|
|
2775
2779
|
var DIFF_DELETE = -1;
|
|
2776
2780
|
var DIFF_INSERT = 1;
|
|
2777
2781
|
var DIFF_EQUAL = 0;
|
|
@@ -4524,7 +4528,7 @@ function isSpyFunction(obj) {
|
|
|
4524
4528
|
return isMockFunction(obj) && "getOriginal" in obj[SYMBOL_STATE];
|
|
4525
4529
|
}
|
|
4526
4530
|
|
|
4527
|
-
// ../../node_modules/.pnpm/@vitest+spy@3.2.
|
|
4531
|
+
// ../../node_modules/.pnpm/@vitest+spy@3.2.4/node_modules/@vitest/spy/dist/index.js
|
|
4528
4532
|
var mocks = /* @__PURE__ */ new Set();
|
|
4529
4533
|
function isMockFunction2(fn2) {
|
|
4530
4534
|
return typeof fn2 === "function" && "_isMockFunction" in fn2 && fn2._isMockFunction;
|
|
@@ -4541,12 +4545,19 @@ function spyOn(obj, method, accessType) {
|
|
|
4541
4545
|
if (isMockFunction2(fn2)) {
|
|
4542
4546
|
state = fn2.mock._state();
|
|
4543
4547
|
}
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
+
try {
|
|
4549
|
+
const stub = internalSpyOn(obj, objMethod);
|
|
4550
|
+
const spy = enhanceSpy(stub);
|
|
4551
|
+
if (state) {
|
|
4552
|
+
spy.mock._state(state);
|
|
4553
|
+
}
|
|
4554
|
+
return spy;
|
|
4555
|
+
} catch (error) {
|
|
4556
|
+
if (error instanceof TypeError && Symbol.toStringTag && obj[Symbol.toStringTag] === "Module" && (error.message.includes("Cannot redefine property") || error.message.includes("Cannot replace module namespace") || error.message.includes("can't redefine non-configurable property"))) {
|
|
4557
|
+
throw new TypeError(`Cannot spy on export "${String(objMethod)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`, { cause: error });
|
|
4558
|
+
}
|
|
4559
|
+
throw error;
|
|
4548
4560
|
}
|
|
4549
|
-
return spy;
|
|
4550
4561
|
}
|
|
4551
4562
|
var callOrder = 0;
|
|
4552
4563
|
function enhanceSpy(spy) {
|
|
@@ -4707,7 +4718,7 @@ function getDescriptor2(obj, method) {
|
|
|
4707
4718
|
}
|
|
4708
4719
|
}
|
|
4709
4720
|
|
|
4710
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
4721
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/error.js
|
|
4711
4722
|
var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
|
|
4712
4723
|
var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
4713
4724
|
function isImmutable(v) {
|
|
@@ -4754,6 +4765,12 @@ function serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) {
|
|
|
4754
4765
|
if (typeof val !== "object") {
|
|
4755
4766
|
return val;
|
|
4756
4767
|
}
|
|
4768
|
+
if (typeof Buffer !== "undefined" && val instanceof Buffer) {
|
|
4769
|
+
return `<Buffer(${val.length}) ...>`;
|
|
4770
|
+
}
|
|
4771
|
+
if (typeof Uint8Array !== "undefined" && val instanceof Uint8Array) {
|
|
4772
|
+
return `<Uint8Array(${val.length}) ...>`;
|
|
4773
|
+
}
|
|
4757
4774
|
if (isImmutable(val)) {
|
|
4758
4775
|
return serializeValue(val.toJSON(), seen);
|
|
4759
4776
|
}
|
|
@@ -4853,7 +4870,7 @@ Inner error message: ${err === null || err === void 0 ? void 0 : err.message}`))
|
|
|
4853
4870
|
|
|
4854
4871
|
// ../../node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js
|
|
4855
4872
|
var chai_exports = {};
|
|
4856
|
-
|
|
4873
|
+
chunkIS3BZTWE_cjs.__export(chai_exports, {
|
|
4857
4874
|
Assertion: () => Assertion,
|
|
4858
4875
|
AssertionError: () => AssertionError,
|
|
4859
4876
|
Should: () => Should,
|
|
@@ -4867,7 +4884,7 @@ chunkCVPOREIE_cjs.__export(chai_exports, {
|
|
|
4867
4884
|
var __defProp = Object.defineProperty;
|
|
4868
4885
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4869
4886
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4870
|
-
var __commonJS2 = (cb, mod) => function
|
|
4887
|
+
var __commonJS2 = (cb, mod) => function __require() {
|
|
4871
4888
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4872
4889
|
};
|
|
4873
4890
|
var __export2 = (target, all) => {
|
|
@@ -5492,10 +5509,10 @@ function inspectAttribute2([key, value], options) {
|
|
|
5492
5509
|
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
5493
5510
|
}
|
|
5494
5511
|
__name(inspectAttribute2, "inspectAttribute");
|
|
5495
|
-
function
|
|
5512
|
+
function inspectHTMLCollection(collection, options) {
|
|
5496
5513
|
return inspectList2(collection, options, inspectHTML2, "\n");
|
|
5497
5514
|
}
|
|
5498
|
-
__name(
|
|
5515
|
+
__name(inspectHTMLCollection, "inspectHTMLCollection");
|
|
5499
5516
|
function inspectHTML2(element, options) {
|
|
5500
5517
|
const properties = element.getAttributeNames();
|
|
5501
5518
|
const name = element.tagName.toLowerCase();
|
|
@@ -5510,7 +5527,7 @@ function inspectHTML2(element, options) {
|
|
|
5510
5527
|
}
|
|
5511
5528
|
options.truncate -= propertyContents.length;
|
|
5512
5529
|
const truncate22 = options.truncate;
|
|
5513
|
-
let children =
|
|
5530
|
+
let children = inspectHTMLCollection(element.children, options);
|
|
5514
5531
|
if (children && children.length > truncate22) {
|
|
5515
5532
|
children = `${truncator2}(${element.children.length})`;
|
|
5516
5533
|
}
|
|
@@ -5567,8 +5584,8 @@ var baseTypesMap2 = {
|
|
|
5567
5584
|
DataView: () => "",
|
|
5568
5585
|
ArrayBuffer: () => "",
|
|
5569
5586
|
Error: inspectObject22,
|
|
5570
|
-
HTMLCollection:
|
|
5571
|
-
NodeList:
|
|
5587
|
+
HTMLCollection: inspectHTMLCollection,
|
|
5588
|
+
NodeList: inspectHTMLCollection
|
|
5572
5589
|
};
|
|
5573
5590
|
var inspectCustom2 = /* @__PURE__ */ __name((value, options, type3) => {
|
|
5574
5591
|
if (chaiInspect2 in value && typeof value[chaiInspect2] === "function") {
|
|
@@ -8850,7 +8867,7 @@ function use(fn2) {
|
|
|
8850
8867
|
}
|
|
8851
8868
|
__name(use, "use");
|
|
8852
8869
|
|
|
8853
|
-
// ../../node_modules/.pnpm/@vitest+expect@3.2.
|
|
8870
|
+
// ../../node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index.js
|
|
8854
8871
|
var MATCHERS_OBJECT = Symbol.for("matchers-object");
|
|
8855
8872
|
var JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object");
|
|
8856
8873
|
var GLOBAL_EXPECT = Symbol.for("expect-global");
|
|
@@ -9736,6 +9753,13 @@ function recordAsyncExpect(_test2, promise, assertion, error) {
|
|
|
9736
9753
|
}
|
|
9737
9754
|
return promise;
|
|
9738
9755
|
}
|
|
9756
|
+
function handleTestError(test5, err) {
|
|
9757
|
+
var _test$result;
|
|
9758
|
+
test5.result || (test5.result = { state: "fail" });
|
|
9759
|
+
test5.result.state = "fail";
|
|
9760
|
+
(_test$result = test5.result).errors || (_test$result.errors = []);
|
|
9761
|
+
test5.result.errors.push(processError(err));
|
|
9762
|
+
}
|
|
9739
9763
|
function wrapAssertion(utils, name, fn2) {
|
|
9740
9764
|
return function(...args) {
|
|
9741
9765
|
if (name !== "withTest") {
|
|
@@ -9749,13 +9773,15 @@ function wrapAssertion(utils, name, fn2) {
|
|
|
9749
9773
|
throw new Error("expect.soft() can only be used inside a test");
|
|
9750
9774
|
}
|
|
9751
9775
|
try {
|
|
9752
|
-
|
|
9776
|
+
const result = fn2.apply(this, args);
|
|
9777
|
+
if (result && typeof result === "object" && typeof result.then === "function") {
|
|
9778
|
+
return result.then(noop, (err) => {
|
|
9779
|
+
handleTestError(test5, err);
|
|
9780
|
+
});
|
|
9781
|
+
}
|
|
9782
|
+
return result;
|
|
9753
9783
|
} catch (err) {
|
|
9754
|
-
|
|
9755
|
-
test5.result || (test5.result = { state: "fail" });
|
|
9756
|
-
test5.result.state = "fail";
|
|
9757
|
-
(_test$result = test5.result).errors || (_test$result.errors = []);
|
|
9758
|
-
test5.result.errors.push(processError(err));
|
|
9784
|
+
handleTestError(test5, err);
|
|
9759
9785
|
}
|
|
9760
9786
|
};
|
|
9761
9787
|
}
|
|
@@ -10451,8 +10477,9 @@ function JestExtendPlugin(c, expect2, matchers) {
|
|
|
10451
10477
|
function expectWrapper(...args) {
|
|
10452
10478
|
const { state, isNot, obj } = getMatcherState(this, expect2);
|
|
10453
10479
|
const result = expectAssertion.call(state, obj, ...args);
|
|
10454
|
-
if (result && typeof result === "object" && result
|
|
10455
|
-
|
|
10480
|
+
if (result && typeof result === "object" && typeof result.then === "function") {
|
|
10481
|
+
const thenable = result;
|
|
10482
|
+
return thenable.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => {
|
|
10456
10483
|
if (pass2 && isNot || !pass2 && !isNot) {
|
|
10457
10484
|
throw new JestExtendError(message2(), actual2, expected2);
|
|
10458
10485
|
}
|
|
@@ -10723,7 +10750,7 @@ function parseSingleV8Stack(raw) {
|
|
|
10723
10750
|
}
|
|
10724
10751
|
|
|
10725
10752
|
// ../../node_modules/.pnpm/strip-literal@3.0.0/node_modules/strip-literal/dist/index.mjs
|
|
10726
|
-
var import_js_tokens =
|
|
10753
|
+
var import_js_tokens = chunkIS3BZTWE_cjs.__toESM(require_js_tokens(), 1);
|
|
10727
10754
|
function stripLiteralJsTokens(code, options) {
|
|
10728
10755
|
const FILL = " ";
|
|
10729
10756
|
const FILL_COMMENT = " ";
|
|
@@ -10896,7 +10923,7 @@ var isAbsolute2 = function(p3) {
|
|
|
10896
10923
|
return _IS_ABSOLUTE_RE2.test(p3);
|
|
10897
10924
|
};
|
|
10898
10925
|
|
|
10899
|
-
// ../../node_modules/.pnpm/@vitest+runner@3.2.
|
|
10926
|
+
// ../../node_modules/.pnpm/@vitest+runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js
|
|
10900
10927
|
var PendingError = class extends Error {
|
|
10901
10928
|
code = "VITEST_PENDING";
|
|
10902
10929
|
taskId;
|
|
@@ -11557,14 +11584,17 @@ function createTaskCollector(fn2, context) {
|
|
|
11557
11584
|
};
|
|
11558
11585
|
taskFn.extend = function(fixtures) {
|
|
11559
11586
|
const _context = mergeContextFixtures(fixtures, context || {}, runner);
|
|
11560
|
-
|
|
11587
|
+
const originalWrapper = fn2;
|
|
11588
|
+
return createTest(function(name, optionsOrFn, optionsOrTest) {
|
|
11561
11589
|
const collector = getCurrentSuite();
|
|
11562
11590
|
const scopedFixtures = collector.fixtures();
|
|
11563
11591
|
const context2 = { ...this };
|
|
11564
11592
|
if (scopedFixtures) {
|
|
11565
11593
|
context2.fixtures = mergeScopedFixtures(context2.fixtures || [], scopedFixtures);
|
|
11566
11594
|
}
|
|
11567
|
-
|
|
11595
|
+
const { handler, options } = parseArguments(optionsOrFn, optionsOrTest);
|
|
11596
|
+
const timeout = options.timeout ?? (void 0 );
|
|
11597
|
+
originalWrapper.call(context2, formatName(name), handler, timeout);
|
|
11568
11598
|
}, _context);
|
|
11569
11599
|
};
|
|
11570
11600
|
const _test2 = createChainable([
|
|
@@ -11958,7 +11988,7 @@ function createTestHook(name, handler) {
|
|
|
11958
11988
|
};
|
|
11959
11989
|
}
|
|
11960
11990
|
|
|
11961
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
11991
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
|
|
11962
11992
|
var NAME_WORKER_STATE = "__vitest_worker__";
|
|
11963
11993
|
function getWorkerState() {
|
|
11964
11994
|
const workerState = globalThis[NAME_WORKER_STATE];
|
|
@@ -12006,13 +12036,13 @@ async function waitForImportsToResolve() {
|
|
|
12006
12036
|
await waitForImportsToResolve();
|
|
12007
12037
|
}
|
|
12008
12038
|
|
|
12009
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
12039
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
|
|
12010
12040
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
12011
12041
|
function getDefaultExportFromCjs3(x) {
|
|
12012
12042
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
12013
12043
|
}
|
|
12014
12044
|
|
|
12015
|
-
// ../../node_modules/.pnpm/@vitest+snapshot@3.2.
|
|
12045
|
+
// ../../node_modules/.pnpm/@vitest+snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js
|
|
12016
12046
|
var comma2 = ",".charCodeAt(0);
|
|
12017
12047
|
var chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
12018
12048
|
var intToChar2 = new Uint8Array(64);
|
|
@@ -12695,10 +12725,6 @@ try {
|
|
|
12695
12725
|
if (Array.isArray(getPromiseDetails(Promise.resolve()))) ;
|
|
12696
12726
|
} catch (notNode) {
|
|
12697
12727
|
}
|
|
12698
|
-
try {
|
|
12699
|
-
chunkCVPOREIE_cjs.__require("util");
|
|
12700
|
-
} catch (noNodeInspect) {
|
|
12701
|
-
}
|
|
12702
12728
|
function getDefaultExportFromCjs4(x) {
|
|
12703
12729
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
12704
12730
|
}
|
|
@@ -12863,7 +12889,7 @@ function offsetToLineNumber(source, offset) {
|
|
|
12863
12889
|
return line + 1;
|
|
12864
12890
|
}
|
|
12865
12891
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
12866
|
-
const MagicString = (await import('./magic-string.es-
|
|
12892
|
+
const MagicString = (await import('./magic-string.es-WF7K5PCM.cjs')).default;
|
|
12867
12893
|
const files = new Set(snapshots.map((i) => i.file));
|
|
12868
12894
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
12869
12895
|
const snaps = snapshots.filter((i) => i.file === file);
|
|
@@ -13640,7 +13666,7 @@ var SnapshotClient = class {
|
|
|
13640
13666
|
}
|
|
13641
13667
|
};
|
|
13642
13668
|
|
|
13643
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
13669
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
|
|
13644
13670
|
var RealDate = Date;
|
|
13645
13671
|
var now2 = null;
|
|
13646
13672
|
var MockDate = class _MockDate extends RealDate {
|
|
@@ -13688,7 +13714,7 @@ function resetDate() {
|
|
|
13688
13714
|
globalThis.Date = RealDate;
|
|
13689
13715
|
}
|
|
13690
13716
|
|
|
13691
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
13717
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
|
|
13692
13718
|
var unsupported = [
|
|
13693
13719
|
"matchSnapshot",
|
|
13694
13720
|
"toMatchSnapshot",
|
|
@@ -16374,7 +16400,7 @@ function getImporter(name) {
|
|
|
16374
16400
|
return stack?.file || "";
|
|
16375
16401
|
}
|
|
16376
16402
|
|
|
16377
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
16403
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js
|
|
16378
16404
|
var benchFns = /* @__PURE__ */ new WeakMap();
|
|
16379
16405
|
var benchOptsMap = /* @__PURE__ */ new WeakMap();
|
|
16380
16406
|
var bench = createBenchmark(function(name, fn2 = noop, options = {}) {
|
|
@@ -16400,13 +16426,13 @@ function formatName2(name) {
|
|
|
16400
16426
|
return typeof name === "string" ? name : typeof name === "function" ? name.name || "<anonymous>" : String(name);
|
|
16401
16427
|
}
|
|
16402
16428
|
|
|
16403
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
16404
|
-
|
|
16429
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js
|
|
16430
|
+
chunkIS3BZTWE_cjs.__toESM(require_dist(), 1);
|
|
16405
16431
|
var assertType = function assertType2() {
|
|
16406
16432
|
};
|
|
16407
16433
|
|
|
16408
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
16409
|
-
var import_expect_type2 =
|
|
16434
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/index.js
|
|
16435
|
+
var import_expect_type2 = chunkIS3BZTWE_cjs.__toESM(require_dist(), 1);
|
|
16410
16436
|
var export_expectTypeOf = import_expect_type2.expectTypeOf;
|
|
16411
16437
|
/*! Bundled license information:
|
|
16412
16438
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJS,
|
|
1
|
+
import { __commonJS, __export, __toESM } from './chunk-U67V476Y.js';
|
|
2
2
|
import { isatty } from 'tty';
|
|
3
3
|
|
|
4
4
|
// ../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
|
|
@@ -608,7 +608,7 @@ function p(n = false) {
|
|
|
608
608
|
var r = process.env.FORCE_TTY !== void 0 || isatty(1);
|
|
609
609
|
var u = p(r);
|
|
610
610
|
|
|
611
|
-
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.
|
|
611
|
+
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js
|
|
612
612
|
function _mergeNamespaces(n, m2) {
|
|
613
613
|
m2.forEach(function(e) {
|
|
614
614
|
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
@@ -1840,7 +1840,7 @@ var plugins = {
|
|
|
1840
1840
|
Error: ErrorPlugin
|
|
1841
1841
|
};
|
|
1842
1842
|
|
|
1843
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
1843
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/helpers.js
|
|
1844
1844
|
var ansiColors = {
|
|
1845
1845
|
bold: ["1", "22"],
|
|
1846
1846
|
dim: ["2", "22"],
|
|
@@ -1995,7 +1995,7 @@ function inspectProperty([key, value], options) {
|
|
|
1995
1995
|
return `${key}: ${value}`;
|
|
1996
1996
|
}
|
|
1997
1997
|
|
|
1998
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
1998
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/array.js
|
|
1999
1999
|
function inspectArray(array2, options) {
|
|
2000
2000
|
const nonIndexProperties = Object.keys(array2).slice(array2.length);
|
|
2001
2001
|
if (!array2.length && !nonIndexProperties.length)
|
|
@@ -2010,7 +2010,7 @@ function inspectArray(array2, options) {
|
|
|
2010
2010
|
return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
2011
2011
|
}
|
|
2012
2012
|
|
|
2013
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2013
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/typedarray.js
|
|
2014
2014
|
var getArrayName = (array2) => {
|
|
2015
2015
|
if (typeof Buffer === "function" && array2 instanceof Buffer) {
|
|
2016
2016
|
return "Buffer";
|
|
@@ -2043,7 +2043,7 @@ function inspectTypedArray(array2, options) {
|
|
|
2043
2043
|
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
2044
2044
|
}
|
|
2045
2045
|
|
|
2046
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2046
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/date.js
|
|
2047
2047
|
function inspectDate(dateObject, options) {
|
|
2048
2048
|
const stringRepresentation = dateObject.toJSON();
|
|
2049
2049
|
if (stringRepresentation === null) {
|
|
@@ -2054,7 +2054,7 @@ function inspectDate(dateObject, options) {
|
|
|
2054
2054
|
return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
|
|
2055
2055
|
}
|
|
2056
2056
|
|
|
2057
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2057
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/function.js
|
|
2058
2058
|
function inspectFunction(func, options) {
|
|
2059
2059
|
const functionType = func[Symbol.toStringTag] || "Function";
|
|
2060
2060
|
const name = func.name;
|
|
@@ -2064,7 +2064,7 @@ function inspectFunction(func, options) {
|
|
|
2064
2064
|
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
|
|
2065
2065
|
}
|
|
2066
2066
|
|
|
2067
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2067
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/map.js
|
|
2068
2068
|
function inspectMapEntry([key, value], options) {
|
|
2069
2069
|
options.truncate -= 4;
|
|
2070
2070
|
key = options.inspect(key, options);
|
|
@@ -2086,7 +2086,7 @@ function inspectMap(map2, options) {
|
|
|
2086
2086
|
return `Map{ ${inspectList(mapToEntries(map2), options, inspectMapEntry)} }`;
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2089
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/number.js
|
|
2090
2090
|
var isNaN = Number.isNaN || ((i) => i !== i);
|
|
2091
2091
|
function inspectNumber(number, options) {
|
|
2092
2092
|
if (isNaN(number)) {
|
|
@@ -2104,7 +2104,7 @@ function inspectNumber(number, options) {
|
|
|
2104
2104
|
return options.stylize(truncate(String(number), options.truncate), "number");
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
2107
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2107
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/bigint.js
|
|
2108
2108
|
function inspectBigInt(number, options) {
|
|
2109
2109
|
let nums = truncate(number.toString(), options.truncate - 1);
|
|
2110
2110
|
if (nums !== truncator)
|
|
@@ -2112,7 +2112,7 @@ function inspectBigInt(number, options) {
|
|
|
2112
2112
|
return options.stylize(nums, "bigint");
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2115
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/regexp.js
|
|
2116
2116
|
function inspectRegExp(value, options) {
|
|
2117
2117
|
const flags = value.toString().split("/")[2];
|
|
2118
2118
|
const sourceLength = options.truncate - (2 + flags.length);
|
|
@@ -2120,7 +2120,7 @@ function inspectRegExp(value, options) {
|
|
|
2120
2120
|
return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
|
|
2121
2121
|
}
|
|
2122
2122
|
|
|
2123
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2123
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/set.js
|
|
2124
2124
|
function arrayFromSet(set3) {
|
|
2125
2125
|
const values = [];
|
|
2126
2126
|
set3.forEach((value) => {
|
|
@@ -2135,7 +2135,7 @@ function inspectSet(set3, options) {
|
|
|
2135
2135
|
return `Set{ ${inspectList(arrayFromSet(set3), options)} }`;
|
|
2136
2136
|
}
|
|
2137
2137
|
|
|
2138
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2138
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/string.js
|
|
2139
2139
|
var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
2140
2140
|
var escapeCharacters = {
|
|
2141
2141
|
"\b": "\\b",
|
|
@@ -2157,7 +2157,7 @@ function inspectString(string2, options) {
|
|
|
2157
2157
|
return options.stylize(`'${truncate(string2, options.truncate - 2)}'`, "string");
|
|
2158
2158
|
}
|
|
2159
2159
|
|
|
2160
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2160
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/symbol.js
|
|
2161
2161
|
function inspectSymbol(value) {
|
|
2162
2162
|
if ("description" in Symbol.prototype) {
|
|
2163
2163
|
return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
@@ -2165,7 +2165,7 @@ function inspectSymbol(value) {
|
|
|
2165
2165
|
return value.toString();
|
|
2166
2166
|
}
|
|
2167
2167
|
|
|
2168
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2168
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/promise.js
|
|
2169
2169
|
var getPromiseValue = () => "Promise{\u2026}";
|
|
2170
2170
|
try {
|
|
2171
2171
|
const { getPromiseDetails, kPending, kRejected } = process.binding("util");
|
|
@@ -2182,7 +2182,7 @@ try {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
var promise_default = getPromiseValue;
|
|
2184
2184
|
|
|
2185
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2185
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/object.js
|
|
2186
2186
|
function inspectObject(object2, options) {
|
|
2187
2187
|
const properties = Object.getOwnPropertyNames(object2);
|
|
2188
2188
|
const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object2) : [];
|
|
@@ -2205,7 +2205,7 @@ function inspectObject(object2, options) {
|
|
|
2205
2205
|
return `{ ${propertyContents}${sep2}${symbolContents} }`;
|
|
2206
2206
|
}
|
|
2207
2207
|
|
|
2208
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2208
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/class.js
|
|
2209
2209
|
var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
|
|
2210
2210
|
function inspectClass(value, options) {
|
|
2211
2211
|
let name = "";
|
|
@@ -2220,7 +2220,7 @@ function inspectClass(value, options) {
|
|
|
2220
2220
|
return `${name}${inspectObject(value, options)}`;
|
|
2221
2221
|
}
|
|
2222
2222
|
|
|
2223
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2223
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/arguments.js
|
|
2224
2224
|
function inspectArguments(args, options) {
|
|
2225
2225
|
if (args.length === 0)
|
|
2226
2226
|
return "Arguments[]";
|
|
@@ -2228,7 +2228,7 @@ function inspectArguments(args, options) {
|
|
|
2228
2228
|
return `Arguments[ ${inspectList(args, options)} ]`;
|
|
2229
2229
|
}
|
|
2230
2230
|
|
|
2231
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2231
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/error.js
|
|
2232
2232
|
var errorKeys = [
|
|
2233
2233
|
"stack",
|
|
2234
2234
|
"line",
|
|
@@ -2263,7 +2263,7 @@ function inspectObject2(error, options) {
|
|
|
2263
2263
|
return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
|
|
2264
2264
|
}
|
|
2265
2265
|
|
|
2266
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2266
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/html.js
|
|
2267
2267
|
function inspectAttribute([key, value], options) {
|
|
2268
2268
|
options.truncate -= 3;
|
|
2269
2269
|
if (!value) {
|
|
@@ -2271,8 +2271,18 @@ function inspectAttribute([key, value], options) {
|
|
|
2271
2271
|
}
|
|
2272
2272
|
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2275
|
-
return inspectList(collection, options,
|
|
2274
|
+
function inspectNodeCollection(collection, options) {
|
|
2275
|
+
return inspectList(collection, options, inspectNode, "\n");
|
|
2276
|
+
}
|
|
2277
|
+
function inspectNode(node, options) {
|
|
2278
|
+
switch (node.nodeType) {
|
|
2279
|
+
case 1:
|
|
2280
|
+
return inspectHTML(node, options);
|
|
2281
|
+
case 3:
|
|
2282
|
+
return options.inspect(node.data, options);
|
|
2283
|
+
default:
|
|
2284
|
+
return options.inspect(node, options);
|
|
2285
|
+
}
|
|
2276
2286
|
}
|
|
2277
2287
|
function inspectHTML(element, options) {
|
|
2278
2288
|
const properties = element.getAttributeNames();
|
|
@@ -2288,23 +2298,17 @@ function inspectHTML(element, options) {
|
|
|
2288
2298
|
}
|
|
2289
2299
|
options.truncate -= propertyContents.length;
|
|
2290
2300
|
const truncate3 = options.truncate;
|
|
2291
|
-
let children =
|
|
2301
|
+
let children = inspectNodeCollection(element.children, options);
|
|
2292
2302
|
if (children && children.length > truncate3) {
|
|
2293
2303
|
children = `${truncator}(${element.children.length})`;
|
|
2294
2304
|
}
|
|
2295
2305
|
return `${head}${propertyContents}${headClose}${children}${tail}`;
|
|
2296
2306
|
}
|
|
2297
2307
|
|
|
2298
|
-
// ../../node_modules/.pnpm/loupe@3.1.
|
|
2308
|
+
// ../../node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/index.js
|
|
2299
2309
|
var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";
|
|
2300
2310
|
var chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
2301
|
-
var nodeInspect =
|
|
2302
|
-
try {
|
|
2303
|
-
const nodeUtil = __require("util");
|
|
2304
|
-
nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
|
|
2305
|
-
} catch (noNodeInspect) {
|
|
2306
|
-
nodeInspect = false;
|
|
2307
|
-
}
|
|
2311
|
+
var nodeInspect = Symbol.for("nodejs.util.inspect.custom");
|
|
2308
2312
|
var constructorMap = /* @__PURE__ */ new WeakMap();
|
|
2309
2313
|
var stringTagMap = {};
|
|
2310
2314
|
var baseTypesMap = {
|
|
@@ -2346,14 +2350,14 @@ var baseTypesMap = {
|
|
|
2346
2350
|
DataView: () => "",
|
|
2347
2351
|
ArrayBuffer: () => "",
|
|
2348
2352
|
Error: inspectObject2,
|
|
2349
|
-
HTMLCollection:
|
|
2350
|
-
NodeList:
|
|
2353
|
+
HTMLCollection: inspectNodeCollection,
|
|
2354
|
+
NodeList: inspectNodeCollection
|
|
2351
2355
|
};
|
|
2352
2356
|
var inspectCustom = (value, options, type3) => {
|
|
2353
2357
|
if (chaiInspect in value && typeof value[chaiInspect] === "function") {
|
|
2354
2358
|
return value[chaiInspect](options);
|
|
2355
2359
|
}
|
|
2356
|
-
if (nodeInspect
|
|
2360
|
+
if (nodeInspect in value && typeof value[nodeInspect] === "function") {
|
|
2357
2361
|
return value[nodeInspect](options.depth, options);
|
|
2358
2362
|
}
|
|
2359
2363
|
if ("inspect" in value && typeof value.inspect === "function") {
|
|
@@ -2405,7 +2409,7 @@ function inspect(value, opts = {}) {
|
|
|
2405
2409
|
return options.stylize(String(value), type3);
|
|
2406
2410
|
}
|
|
2407
2411
|
|
|
2408
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
2412
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
2409
2413
|
var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;
|
|
2410
2414
|
var PLUGINS = [
|
|
2411
2415
|
ReactTestComponent,
|
|
@@ -2563,7 +2567,7 @@ function getDefaultExportFromCjs2(x) {
|
|
|
2563
2567
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2564
2568
|
}
|
|
2565
2569
|
|
|
2566
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
2570
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js
|
|
2567
2571
|
function createSimpleStackTrace(options) {
|
|
2568
2572
|
const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
|
|
2569
2573
|
const limit = Error.stackTraceLimit;
|
|
@@ -2769,7 +2773,7 @@ function getSafeTimers() {
|
|
|
2769
2773
|
};
|
|
2770
2774
|
}
|
|
2771
2775
|
|
|
2772
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
2776
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/diff.js
|
|
2773
2777
|
var DIFF_DELETE = -1;
|
|
2774
2778
|
var DIFF_INSERT = 1;
|
|
2775
2779
|
var DIFF_EQUAL = 0;
|
|
@@ -4522,7 +4526,7 @@ function isSpyFunction(obj) {
|
|
|
4522
4526
|
return isMockFunction(obj) && "getOriginal" in obj[SYMBOL_STATE];
|
|
4523
4527
|
}
|
|
4524
4528
|
|
|
4525
|
-
// ../../node_modules/.pnpm/@vitest+spy@3.2.
|
|
4529
|
+
// ../../node_modules/.pnpm/@vitest+spy@3.2.4/node_modules/@vitest/spy/dist/index.js
|
|
4526
4530
|
var mocks = /* @__PURE__ */ new Set();
|
|
4527
4531
|
function isMockFunction2(fn2) {
|
|
4528
4532
|
return typeof fn2 === "function" && "_isMockFunction" in fn2 && fn2._isMockFunction;
|
|
@@ -4539,12 +4543,19 @@ function spyOn(obj, method, accessType) {
|
|
|
4539
4543
|
if (isMockFunction2(fn2)) {
|
|
4540
4544
|
state = fn2.mock._state();
|
|
4541
4545
|
}
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
+
try {
|
|
4547
|
+
const stub = internalSpyOn(obj, objMethod);
|
|
4548
|
+
const spy = enhanceSpy(stub);
|
|
4549
|
+
if (state) {
|
|
4550
|
+
spy.mock._state(state);
|
|
4551
|
+
}
|
|
4552
|
+
return spy;
|
|
4553
|
+
} catch (error) {
|
|
4554
|
+
if (error instanceof TypeError && Symbol.toStringTag && obj[Symbol.toStringTag] === "Module" && (error.message.includes("Cannot redefine property") || error.message.includes("Cannot replace module namespace") || error.message.includes("can't redefine non-configurable property"))) {
|
|
4555
|
+
throw new TypeError(`Cannot spy on export "${String(objMethod)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`, { cause: error });
|
|
4556
|
+
}
|
|
4557
|
+
throw error;
|
|
4546
4558
|
}
|
|
4547
|
-
return spy;
|
|
4548
4559
|
}
|
|
4549
4560
|
var callOrder = 0;
|
|
4550
4561
|
function enhanceSpy(spy) {
|
|
@@ -4705,7 +4716,7 @@ function getDescriptor2(obj, method) {
|
|
|
4705
4716
|
}
|
|
4706
4717
|
}
|
|
4707
4718
|
|
|
4708
|
-
// ../../node_modules/.pnpm/@vitest+utils@3.2.
|
|
4719
|
+
// ../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/error.js
|
|
4709
4720
|
var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
|
|
4710
4721
|
var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
4711
4722
|
function isImmutable(v) {
|
|
@@ -4752,6 +4763,12 @@ function serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) {
|
|
|
4752
4763
|
if (typeof val !== "object") {
|
|
4753
4764
|
return val;
|
|
4754
4765
|
}
|
|
4766
|
+
if (typeof Buffer !== "undefined" && val instanceof Buffer) {
|
|
4767
|
+
return `<Buffer(${val.length}) ...>`;
|
|
4768
|
+
}
|
|
4769
|
+
if (typeof Uint8Array !== "undefined" && val instanceof Uint8Array) {
|
|
4770
|
+
return `<Uint8Array(${val.length}) ...>`;
|
|
4771
|
+
}
|
|
4755
4772
|
if (isImmutable(val)) {
|
|
4756
4773
|
return serializeValue(val.toJSON(), seen);
|
|
4757
4774
|
}
|
|
@@ -4865,7 +4882,7 @@ __export(chai_exports, {
|
|
|
4865
4882
|
var __defProp = Object.defineProperty;
|
|
4866
4883
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4867
4884
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4868
|
-
var __commonJS2 = (cb, mod) => function
|
|
4885
|
+
var __commonJS2 = (cb, mod) => function __require() {
|
|
4869
4886
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4870
4887
|
};
|
|
4871
4888
|
var __export2 = (target, all) => {
|
|
@@ -5490,10 +5507,10 @@ function inspectAttribute2([key, value], options) {
|
|
|
5490
5507
|
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
5491
5508
|
}
|
|
5492
5509
|
__name(inspectAttribute2, "inspectAttribute");
|
|
5493
|
-
function
|
|
5510
|
+
function inspectHTMLCollection(collection, options) {
|
|
5494
5511
|
return inspectList2(collection, options, inspectHTML2, "\n");
|
|
5495
5512
|
}
|
|
5496
|
-
__name(
|
|
5513
|
+
__name(inspectHTMLCollection, "inspectHTMLCollection");
|
|
5497
5514
|
function inspectHTML2(element, options) {
|
|
5498
5515
|
const properties = element.getAttributeNames();
|
|
5499
5516
|
const name = element.tagName.toLowerCase();
|
|
@@ -5508,7 +5525,7 @@ function inspectHTML2(element, options) {
|
|
|
5508
5525
|
}
|
|
5509
5526
|
options.truncate -= propertyContents.length;
|
|
5510
5527
|
const truncate22 = options.truncate;
|
|
5511
|
-
let children =
|
|
5528
|
+
let children = inspectHTMLCollection(element.children, options);
|
|
5512
5529
|
if (children && children.length > truncate22) {
|
|
5513
5530
|
children = `${truncator2}(${element.children.length})`;
|
|
5514
5531
|
}
|
|
@@ -5565,8 +5582,8 @@ var baseTypesMap2 = {
|
|
|
5565
5582
|
DataView: () => "",
|
|
5566
5583
|
ArrayBuffer: () => "",
|
|
5567
5584
|
Error: inspectObject22,
|
|
5568
|
-
HTMLCollection:
|
|
5569
|
-
NodeList:
|
|
5585
|
+
HTMLCollection: inspectHTMLCollection,
|
|
5586
|
+
NodeList: inspectHTMLCollection
|
|
5570
5587
|
};
|
|
5571
5588
|
var inspectCustom2 = /* @__PURE__ */ __name((value, options, type3) => {
|
|
5572
5589
|
if (chaiInspect2 in value && typeof value[chaiInspect2] === "function") {
|
|
@@ -8848,7 +8865,7 @@ function use(fn2) {
|
|
|
8848
8865
|
}
|
|
8849
8866
|
__name(use, "use");
|
|
8850
8867
|
|
|
8851
|
-
// ../../node_modules/.pnpm/@vitest+expect@3.2.
|
|
8868
|
+
// ../../node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index.js
|
|
8852
8869
|
var MATCHERS_OBJECT = Symbol.for("matchers-object");
|
|
8853
8870
|
var JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object");
|
|
8854
8871
|
var GLOBAL_EXPECT = Symbol.for("expect-global");
|
|
@@ -9734,6 +9751,13 @@ function recordAsyncExpect(_test2, promise, assertion, error) {
|
|
|
9734
9751
|
}
|
|
9735
9752
|
return promise;
|
|
9736
9753
|
}
|
|
9754
|
+
function handleTestError(test5, err) {
|
|
9755
|
+
var _test$result;
|
|
9756
|
+
test5.result || (test5.result = { state: "fail" });
|
|
9757
|
+
test5.result.state = "fail";
|
|
9758
|
+
(_test$result = test5.result).errors || (_test$result.errors = []);
|
|
9759
|
+
test5.result.errors.push(processError(err));
|
|
9760
|
+
}
|
|
9737
9761
|
function wrapAssertion(utils, name, fn2) {
|
|
9738
9762
|
return function(...args) {
|
|
9739
9763
|
if (name !== "withTest") {
|
|
@@ -9747,13 +9771,15 @@ function wrapAssertion(utils, name, fn2) {
|
|
|
9747
9771
|
throw new Error("expect.soft() can only be used inside a test");
|
|
9748
9772
|
}
|
|
9749
9773
|
try {
|
|
9750
|
-
|
|
9774
|
+
const result = fn2.apply(this, args);
|
|
9775
|
+
if (result && typeof result === "object" && typeof result.then === "function") {
|
|
9776
|
+
return result.then(noop, (err) => {
|
|
9777
|
+
handleTestError(test5, err);
|
|
9778
|
+
});
|
|
9779
|
+
}
|
|
9780
|
+
return result;
|
|
9751
9781
|
} catch (err) {
|
|
9752
|
-
|
|
9753
|
-
test5.result || (test5.result = { state: "fail" });
|
|
9754
|
-
test5.result.state = "fail";
|
|
9755
|
-
(_test$result = test5.result).errors || (_test$result.errors = []);
|
|
9756
|
-
test5.result.errors.push(processError(err));
|
|
9782
|
+
handleTestError(test5, err);
|
|
9757
9783
|
}
|
|
9758
9784
|
};
|
|
9759
9785
|
}
|
|
@@ -10449,8 +10475,9 @@ function JestExtendPlugin(c, expect2, matchers) {
|
|
|
10449
10475
|
function expectWrapper(...args) {
|
|
10450
10476
|
const { state, isNot, obj } = getMatcherState(this, expect2);
|
|
10451
10477
|
const result = expectAssertion.call(state, obj, ...args);
|
|
10452
|
-
if (result && typeof result === "object" && result
|
|
10453
|
-
|
|
10478
|
+
if (result && typeof result === "object" && typeof result.then === "function") {
|
|
10479
|
+
const thenable = result;
|
|
10480
|
+
return thenable.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => {
|
|
10454
10481
|
if (pass2 && isNot || !pass2 && !isNot) {
|
|
10455
10482
|
throw new JestExtendError(message2(), actual2, expected2);
|
|
10456
10483
|
}
|
|
@@ -10894,7 +10921,7 @@ var isAbsolute2 = function(p3) {
|
|
|
10894
10921
|
return _IS_ABSOLUTE_RE2.test(p3);
|
|
10895
10922
|
};
|
|
10896
10923
|
|
|
10897
|
-
// ../../node_modules/.pnpm/@vitest+runner@3.2.
|
|
10924
|
+
// ../../node_modules/.pnpm/@vitest+runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js
|
|
10898
10925
|
var PendingError = class extends Error {
|
|
10899
10926
|
code = "VITEST_PENDING";
|
|
10900
10927
|
taskId;
|
|
@@ -11555,14 +11582,17 @@ function createTaskCollector(fn2, context) {
|
|
|
11555
11582
|
};
|
|
11556
11583
|
taskFn.extend = function(fixtures) {
|
|
11557
11584
|
const _context = mergeContextFixtures(fixtures, context || {}, runner);
|
|
11558
|
-
|
|
11585
|
+
const originalWrapper = fn2;
|
|
11586
|
+
return createTest(function(name, optionsOrFn, optionsOrTest) {
|
|
11559
11587
|
const collector = getCurrentSuite();
|
|
11560
11588
|
const scopedFixtures = collector.fixtures();
|
|
11561
11589
|
const context2 = { ...this };
|
|
11562
11590
|
if (scopedFixtures) {
|
|
11563
11591
|
context2.fixtures = mergeScopedFixtures(context2.fixtures || [], scopedFixtures);
|
|
11564
11592
|
}
|
|
11565
|
-
|
|
11593
|
+
const { handler, options } = parseArguments(optionsOrFn, optionsOrTest);
|
|
11594
|
+
const timeout = options.timeout ?? (void 0 );
|
|
11595
|
+
originalWrapper.call(context2, formatName(name), handler, timeout);
|
|
11566
11596
|
}, _context);
|
|
11567
11597
|
};
|
|
11568
11598
|
const _test2 = createChainable([
|
|
@@ -11956,7 +11986,7 @@ function createTestHook(name, handler) {
|
|
|
11956
11986
|
};
|
|
11957
11987
|
}
|
|
11958
11988
|
|
|
11959
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
11989
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
|
|
11960
11990
|
var NAME_WORKER_STATE = "__vitest_worker__";
|
|
11961
11991
|
function getWorkerState() {
|
|
11962
11992
|
const workerState = globalThis[NAME_WORKER_STATE];
|
|
@@ -12004,13 +12034,13 @@ async function waitForImportsToResolve() {
|
|
|
12004
12034
|
await waitForImportsToResolve();
|
|
12005
12035
|
}
|
|
12006
12036
|
|
|
12007
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
12037
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
|
|
12008
12038
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
12009
12039
|
function getDefaultExportFromCjs3(x) {
|
|
12010
12040
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
12011
12041
|
}
|
|
12012
12042
|
|
|
12013
|
-
// ../../node_modules/.pnpm/@vitest+snapshot@3.2.
|
|
12043
|
+
// ../../node_modules/.pnpm/@vitest+snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js
|
|
12014
12044
|
var comma2 = ",".charCodeAt(0);
|
|
12015
12045
|
var chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
12016
12046
|
var intToChar2 = new Uint8Array(64);
|
|
@@ -12693,10 +12723,6 @@ try {
|
|
|
12693
12723
|
if (Array.isArray(getPromiseDetails(Promise.resolve()))) ;
|
|
12694
12724
|
} catch (notNode) {
|
|
12695
12725
|
}
|
|
12696
|
-
try {
|
|
12697
|
-
__require("util");
|
|
12698
|
-
} catch (noNodeInspect) {
|
|
12699
|
-
}
|
|
12700
12726
|
function getDefaultExportFromCjs4(x) {
|
|
12701
12727
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
12702
12728
|
}
|
|
@@ -12861,7 +12887,7 @@ function offsetToLineNumber(source, offset) {
|
|
|
12861
12887
|
return line + 1;
|
|
12862
12888
|
}
|
|
12863
12889
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
12864
|
-
const MagicString = (await import('./magic-string.es-
|
|
12890
|
+
const MagicString = (await import('./magic-string.es-2DLRP5BO.js')).default;
|
|
12865
12891
|
const files = new Set(snapshots.map((i) => i.file));
|
|
12866
12892
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
12867
12893
|
const snaps = snapshots.filter((i) => i.file === file);
|
|
@@ -13638,7 +13664,7 @@ var SnapshotClient = class {
|
|
|
13638
13664
|
}
|
|
13639
13665
|
};
|
|
13640
13666
|
|
|
13641
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
13667
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
|
|
13642
13668
|
var RealDate = Date;
|
|
13643
13669
|
var now2 = null;
|
|
13644
13670
|
var MockDate = class _MockDate extends RealDate {
|
|
@@ -13686,7 +13712,7 @@ function resetDate() {
|
|
|
13686
13712
|
globalThis.Date = RealDate;
|
|
13687
13713
|
}
|
|
13688
13714
|
|
|
13689
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
13715
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
|
|
13690
13716
|
var unsupported = [
|
|
13691
13717
|
"matchSnapshot",
|
|
13692
13718
|
"toMatchSnapshot",
|
|
@@ -16372,7 +16398,7 @@ function getImporter(name) {
|
|
|
16372
16398
|
return stack?.file || "";
|
|
16373
16399
|
}
|
|
16374
16400
|
|
|
16375
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
16401
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js
|
|
16376
16402
|
var benchFns = /* @__PURE__ */ new WeakMap();
|
|
16377
16403
|
var benchOptsMap = /* @__PURE__ */ new WeakMap();
|
|
16378
16404
|
var bench = createBenchmark(function(name, fn2 = noop, options = {}) {
|
|
@@ -16398,12 +16424,12 @@ function formatName2(name) {
|
|
|
16398
16424
|
return typeof name === "string" ? name : typeof name === "function" ? name.name || "<anonymous>" : String(name);
|
|
16399
16425
|
}
|
|
16400
16426
|
|
|
16401
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
16427
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js
|
|
16402
16428
|
__toESM(require_dist(), 1);
|
|
16403
16429
|
var assertType = function assertType2() {
|
|
16404
16430
|
};
|
|
16405
16431
|
|
|
16406
|
-
// ../../node_modules/.pnpm/vitest@3.2.
|
|
16432
|
+
// ../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.1_@vitest+ui@3.2.3_jiti@2.4.2_jsdom@_9ed2428c73777463a3d92e2c0ddae976/node_modules/vitest/dist/index.js
|
|
16407
16433
|
var import_expect_type2 = __toESM(require_dist(), 1);
|
|
16408
16434
|
var export_expectTypeOf = import_expect_type2.expectTypeOf;
|
|
16409
16435
|
/*! Bundled license information:
|
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ var getCurrentTestInfo = async () => {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
try {
|
|
44
|
-
const vitest = await import('./dist-
|
|
44
|
+
const vitest = await import('./dist-HYT46G4X.cjs');
|
|
45
45
|
if (typeof vitest !== "undefined" && vitest.expect?.getState) {
|
|
46
46
|
const state = vitest.expect.getState();
|
|
47
47
|
return {
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var getCurrentTestInfo = async () => {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
try {
|
|
42
|
-
const vitest = await import('./dist-
|
|
42
|
+
const vitest = await import('./dist-M6SH7RKY.js');
|
|
43
43
|
if (typeof vitest !== "undefined" && vitest.expect?.getState) {
|
|
44
44
|
const state = vitest.expect.getState();
|
|
45
45
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/evals",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"keyword-extractor": "^0.0.28",
|
|
62
62
|
"sentiment": "^5.0.2",
|
|
63
63
|
"string-similarity": "^4.0.4",
|
|
64
|
-
"zod": "^3.25.
|
|
64
|
+
"zod": "^3.25.67"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@mastra/core": "^0.10.1-alpha.0",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"@types/string-similarity": "^4.0.2",
|
|
77
77
|
"ai": "^4.3.16",
|
|
78
78
|
"dotenv": "^16.5.0",
|
|
79
|
-
"eslint": "^9.
|
|
79
|
+
"eslint": "^9.29.0",
|
|
80
80
|
"tsup": "^8.5.0",
|
|
81
81
|
"typescript": "^5.8.3",
|
|
82
82
|
"vitest": "^3.2.3",
|
|
83
|
-
"@internal/lint": "0.0.
|
|
84
|
-
"@mastra/core": "0.10.
|
|
83
|
+
"@internal/lint": "0.0.14",
|
|
84
|
+
"@mastra/core": "0.10.7"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"check": "tsc --noEmit",
|
|
File without changes
|
|
File without changes
|