@copilotkit/runtime-client-gql 1.50.2-next.0 → 1.51.0-next.2
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/CHANGELOG.md +12 -15
- package/LICENSE +21 -0
- package/dist/{chunk-WUF3XSW5.mjs → chunk-3ETRQN2E.mjs} +2 -2
- package/dist/{chunk-YLBJJZHO.mjs → chunk-5CT6B5GA.mjs} +4 -4
- package/dist/{chunk-YLBJJZHO.mjs.map → chunk-5CT6B5GA.mjs.map} +1 -1
- package/dist/{chunk-EWRHYLZE.mjs → chunk-KTA7QTTU.mjs} +2 -2
- package/dist/{chunk-SVJN2STA.mjs → chunk-L6PM6AT3.mjs} +826 -869
- package/dist/chunk-L6PM6AT3.mjs.map +1 -0
- package/dist/{chunk-AQ2Y6PF5.mjs → chunk-M5LBGBWO.mjs} +1 -1
- package/dist/chunk-M5LBGBWO.mjs.map +1 -0
- package/dist/client/CopilotRuntimeClient.js +1 -1
- package/dist/client/CopilotRuntimeClient.js.map +1 -1
- package/dist/client/CopilotRuntimeClient.mjs +4 -4
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +4 -4
- package/dist/graphql/@generated/gql.d.ts +7 -12
- package/dist/graphql/@generated/gql.js.map +1 -1
- package/dist/graphql/@generated/gql.mjs +1 -1
- package/dist/graphql/@generated/index.js.map +1 -1
- package/dist/graphql/@generated/index.mjs +1 -1
- package/dist/graphql/definitions/mutations.js.map +1 -1
- package/dist/graphql/definitions/mutations.mjs +2 -2
- package/dist/graphql/definitions/queries.js.map +1 -1
- package/dist/graphql/definitions/queries.mjs +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{magic-string.es-O42ACB6H.mjs → magic-string.es-26DP735G.mjs} +22 -6
- package/dist/magic-string.es-26DP735G.mjs.map +1 -0
- package/dist/message-conversion/agui-to-gql.mjs +4 -4
- package/dist/message-conversion/agui-to-gql.test.js +861 -888
- package/dist/message-conversion/agui-to-gql.test.js.map +1 -1
- package/dist/message-conversion/agui-to-gql.test.mjs +5 -5
- package/dist/message-conversion/gql-to-agui.mjs +4 -4
- package/dist/message-conversion/gql-to-agui.test.js +861 -888
- package/dist/message-conversion/gql-to-agui.test.js.map +1 -1
- package/dist/message-conversion/gql-to-agui.test.mjs +5 -5
- package/dist/message-conversion/index.mjs +4 -4
- package/dist/message-conversion/roundtrip-conversion.test.js +864 -891
- package/dist/message-conversion/roundtrip-conversion.test.js.map +1 -1
- package/dist/message-conversion/roundtrip-conversion.test.mjs +5 -5
- package/package.json +6 -5
- package/src/graphql/@generated/gql.ts +7 -1
- package/dist/chunk-AQ2Y6PF5.mjs.map +0 -1
- package/dist/chunk-SVJN2STA.mjs.map +0 -1
- package/dist/magic-string.es-O42ACB6H.mjs.map +0 -1
- /package/dist/{chunk-WUF3XSW5.mjs.map → chunk-3ETRQN2E.mjs.map} +0 -0
- /package/dist/{chunk-EWRHYLZE.mjs.map → chunk-KTA7QTTU.mjs.map} +0 -0
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
__toESM
|
|
4
4
|
} from "./chunk-DELDZXUX.mjs";
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// ../../../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
|
|
7
7
|
var require_js_tokens = __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;
|
|
11
11
|
var JSXIdentifier;
|
|
@@ -423,17 +423,17 @@ var require_js_tokens = __commonJS({
|
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
|
|
426
|
-
//
|
|
426
|
+
// ../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/branding.js
|
|
427
427
|
var require_branding = __commonJS({
|
|
428
|
-
"
|
|
428
|
+
"../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/branding.js"(exports) {
|
|
429
429
|
"use strict";
|
|
430
430
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
433
|
|
|
434
|
-
//
|
|
434
|
+
// ../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/messages.js
|
|
435
435
|
var require_messages = __commonJS({
|
|
436
|
-
"
|
|
436
|
+
"../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/messages.js"(exports) {
|
|
437
437
|
"use strict";
|
|
438
438
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
439
439
|
var inverted = Symbol("inverted");
|
|
@@ -455,17 +455,17 @@ var require_messages = __commonJS({
|
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
457
|
|
|
458
|
-
//
|
|
458
|
+
// ../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/overloads.js
|
|
459
459
|
var require_overloads = __commonJS({
|
|
460
|
-
"
|
|
460
|
+
"../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/overloads.js"(exports) {
|
|
461
461
|
"use strict";
|
|
462
462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
|
|
466
|
-
//
|
|
466
|
+
// ../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/utils.js
|
|
467
467
|
var require_utils = __commonJS({
|
|
468
|
-
"
|
|
468
|
+
"../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/utils.js"(exports) {
|
|
469
469
|
"use strict";
|
|
470
470
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
471
471
|
var secret = Symbol("secret");
|
|
@@ -474,24 +474,24 @@ var require_utils = __commonJS({
|
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
476
|
|
|
477
|
-
//
|
|
477
|
+
// ../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/index.js
|
|
478
478
|
var require_dist = __commonJS({
|
|
479
|
-
"
|
|
479
|
+
"../../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/index.js"(exports) {
|
|
480
480
|
"use strict";
|
|
481
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2,
|
|
482
|
-
if (
|
|
483
|
-
|
|
484
|
-
var desc = Object.getOwnPropertyDescriptor(m2,
|
|
481
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2, k2, k22) {
|
|
482
|
+
if (k22 === void 0)
|
|
483
|
+
k22 = k2;
|
|
484
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
485
485
|
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
486
486
|
desc = { enumerable: true, get: function() {
|
|
487
|
-
return m2[
|
|
487
|
+
return m2[k2];
|
|
488
488
|
} };
|
|
489
489
|
}
|
|
490
|
-
Object.defineProperty(o,
|
|
491
|
-
} : function(o, m2,
|
|
492
|
-
if (
|
|
493
|
-
|
|
494
|
-
o[
|
|
490
|
+
Object.defineProperty(o, k22, desc);
|
|
491
|
+
} : function(o, m2, k2, k22) {
|
|
492
|
+
if (k22 === void 0)
|
|
493
|
+
k22 = k2;
|
|
494
|
+
o[k22] = m2[k2];
|
|
495
495
|
});
|
|
496
496
|
var __exportStar = exports && exports.__exportStar || function(m2, exports2) {
|
|
497
497
|
for (var p3 in m2)
|
|
@@ -558,7 +558,7 @@ var require_dist = __commonJS({
|
|
|
558
558
|
}
|
|
559
559
|
});
|
|
560
560
|
|
|
561
|
-
//
|
|
561
|
+
// ../../../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
562
562
|
var f = {
|
|
563
563
|
reset: [0, 0],
|
|
564
564
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
@@ -614,44 +614,44 @@ function C(n = false) {
|
|
|
614
614
|
}
|
|
615
615
|
function p(n = false) {
|
|
616
616
|
let e = C(n), i = (r2, t, c, o) => {
|
|
617
|
-
let
|
|
617
|
+
let l2 = "", s2 = 0;
|
|
618
618
|
do
|
|
619
|
-
|
|
619
|
+
l2 += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
|
|
620
620
|
while (~o);
|
|
621
|
-
return
|
|
621
|
+
return l2 + r2.substring(s2);
|
|
622
622
|
}, g = (r2, t, c = r2) => {
|
|
623
|
-
let o = (
|
|
624
|
-
let s2 = String(
|
|
625
|
-
return ~
|
|
623
|
+
let o = (l2) => {
|
|
624
|
+
let s2 = String(l2), b2 = s2.indexOf(t, r2.length);
|
|
625
|
+
return ~b2 ? r2 + i(s2, t, c, b2) + t : r2 + s2 + t;
|
|
626
626
|
};
|
|
627
627
|
return o.open = r2, o.close = t, o;
|
|
628
|
-
},
|
|
628
|
+
}, u3 = {
|
|
629
629
|
isColorSupported: e
|
|
630
630
|
}, d = (r2) => `\x1B[${r2}m`;
|
|
631
631
|
for (let [r2, t] of h)
|
|
632
|
-
|
|
632
|
+
u3[r2] = e ? g(
|
|
633
633
|
d(t[0]),
|
|
634
634
|
d(t[1]),
|
|
635
635
|
t[2]
|
|
636
636
|
) : a;
|
|
637
|
-
return
|
|
637
|
+
return u3;
|
|
638
638
|
}
|
|
639
639
|
|
|
640
|
-
//
|
|
640
|
+
// ../../../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js
|
|
641
641
|
import { isatty as s } from "tty";
|
|
642
642
|
var r = process.env.FORCE_TTY !== void 0 || s(1);
|
|
643
643
|
var u = p(r);
|
|
644
644
|
|
|
645
|
-
//
|
|
645
|
+
// ../../../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js
|
|
646
646
|
function _mergeNamespaces(n, m2) {
|
|
647
647
|
m2.forEach(function(e) {
|
|
648
|
-
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(
|
|
649
|
-
if (
|
|
650
|
-
var d = Object.getOwnPropertyDescriptor(e,
|
|
651
|
-
Object.defineProperty(n,
|
|
648
|
+
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k2) {
|
|
649
|
+
if (k2 !== "default" && !(k2 in n)) {
|
|
650
|
+
var d = Object.getOwnPropertyDescriptor(e, k2);
|
|
651
|
+
Object.defineProperty(n, k2, d.get ? d : {
|
|
652
652
|
enumerable: true,
|
|
653
653
|
get: function() {
|
|
654
|
-
return e[
|
|
654
|
+
return e[k2];
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
}
|
|
@@ -726,7 +726,7 @@ function printIteratorValues(iterator, config2, indentation, depth, refs, printe
|
|
|
726
726
|
function printListItems(list, config2, indentation, depth, refs, printer2) {
|
|
727
727
|
let result = "";
|
|
728
728
|
list = list instanceof ArrayBuffer ? new DataView(list) : list;
|
|
729
|
-
const isDataView = (
|
|
729
|
+
const isDataView = (l2) => l2 instanceof DataView;
|
|
730
730
|
const length = isDataView(list) ? list.byteLength : list.length;
|
|
731
731
|
if (length > 0) {
|
|
732
732
|
result += config2.spacingOuter;
|
|
@@ -987,8 +987,8 @@ var plugin$2 = {
|
|
|
987
987
|
serialize: serialize$2,
|
|
988
988
|
test: test$2
|
|
989
989
|
};
|
|
990
|
-
function getDefaultExportFromCjs(
|
|
991
|
-
return
|
|
990
|
+
function getDefaultExportFromCjs(x2) {
|
|
991
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
992
992
|
}
|
|
993
993
|
var reactIs$1 = { exports: {} };
|
|
994
994
|
var reactIs_production = {};
|
|
@@ -1204,25 +1204,25 @@ function requireReactIs_production_min() {
|
|
|
1204
1204
|
if (hasRequiredReactIs_production_min)
|
|
1205
1205
|
return reactIs_production_min;
|
|
1206
1206
|
hasRequiredReactIs_production_min = 1;
|
|
1207
|
-
var
|
|
1208
|
-
|
|
1209
|
-
function
|
|
1207
|
+
var b2 = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f4 = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h4 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l2 = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u3;
|
|
1208
|
+
u3 = Symbol.for("react.module.reference");
|
|
1209
|
+
function v2(a3) {
|
|
1210
1210
|
if ("object" === typeof a3 && null !== a3) {
|
|
1211
1211
|
var r2 = a3.$$typeof;
|
|
1212
1212
|
switch (r2) {
|
|
1213
|
-
case
|
|
1213
|
+
case b2:
|
|
1214
1214
|
switch (a3 = a3.type, a3) {
|
|
1215
1215
|
case d:
|
|
1216
|
-
case
|
|
1216
|
+
case f4:
|
|
1217
1217
|
case e:
|
|
1218
1218
|
case m2:
|
|
1219
1219
|
case n:
|
|
1220
1220
|
return a3;
|
|
1221
1221
|
default:
|
|
1222
1222
|
switch (a3 = a3 && a3.$$typeof, a3) {
|
|
1223
|
-
case
|
|
1224
|
-
case
|
|
1225
|
-
case
|
|
1223
|
+
case k2:
|
|
1224
|
+
case h4:
|
|
1225
|
+
case l2:
|
|
1226
1226
|
case q:
|
|
1227
1227
|
case p3:
|
|
1228
1228
|
case g:
|
|
@@ -1236,15 +1236,15 @@ function requireReactIs_production_min() {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
reactIs_production_min.ContextConsumer =
|
|
1239
|
+
reactIs_production_min.ContextConsumer = h4;
|
|
1240
1240
|
reactIs_production_min.ContextProvider = g;
|
|
1241
|
-
reactIs_production_min.Element =
|
|
1242
|
-
reactIs_production_min.ForwardRef =
|
|
1241
|
+
reactIs_production_min.Element = b2;
|
|
1242
|
+
reactIs_production_min.ForwardRef = l2;
|
|
1243
1243
|
reactIs_production_min.Fragment = d;
|
|
1244
1244
|
reactIs_production_min.Lazy = q;
|
|
1245
1245
|
reactIs_production_min.Memo = p3;
|
|
1246
1246
|
reactIs_production_min.Portal = c;
|
|
1247
|
-
reactIs_production_min.Profiler =
|
|
1247
|
+
reactIs_production_min.Profiler = f4;
|
|
1248
1248
|
reactIs_production_min.StrictMode = e;
|
|
1249
1249
|
reactIs_production_min.Suspense = m2;
|
|
1250
1250
|
reactIs_production_min.SuspenseList = n;
|
|
@@ -1255,45 +1255,45 @@ function requireReactIs_production_min() {
|
|
|
1255
1255
|
return false;
|
|
1256
1256
|
};
|
|
1257
1257
|
reactIs_production_min.isContextConsumer = function(a3) {
|
|
1258
|
-
return
|
|
1258
|
+
return v2(a3) === h4;
|
|
1259
1259
|
};
|
|
1260
1260
|
reactIs_production_min.isContextProvider = function(a3) {
|
|
1261
|
-
return
|
|
1261
|
+
return v2(a3) === g;
|
|
1262
1262
|
};
|
|
1263
1263
|
reactIs_production_min.isElement = function(a3) {
|
|
1264
|
-
return "object" === typeof a3 && null !== a3 && a3.$$typeof ===
|
|
1264
|
+
return "object" === typeof a3 && null !== a3 && a3.$$typeof === b2;
|
|
1265
1265
|
};
|
|
1266
1266
|
reactIs_production_min.isForwardRef = function(a3) {
|
|
1267
|
-
return
|
|
1267
|
+
return v2(a3) === l2;
|
|
1268
1268
|
};
|
|
1269
1269
|
reactIs_production_min.isFragment = function(a3) {
|
|
1270
|
-
return
|
|
1270
|
+
return v2(a3) === d;
|
|
1271
1271
|
};
|
|
1272
1272
|
reactIs_production_min.isLazy = function(a3) {
|
|
1273
|
-
return
|
|
1273
|
+
return v2(a3) === q;
|
|
1274
1274
|
};
|
|
1275
1275
|
reactIs_production_min.isMemo = function(a3) {
|
|
1276
|
-
return
|
|
1276
|
+
return v2(a3) === p3;
|
|
1277
1277
|
};
|
|
1278
1278
|
reactIs_production_min.isPortal = function(a3) {
|
|
1279
|
-
return
|
|
1279
|
+
return v2(a3) === c;
|
|
1280
1280
|
};
|
|
1281
1281
|
reactIs_production_min.isProfiler = function(a3) {
|
|
1282
|
-
return
|
|
1282
|
+
return v2(a3) === f4;
|
|
1283
1283
|
};
|
|
1284
1284
|
reactIs_production_min.isStrictMode = function(a3) {
|
|
1285
|
-
return
|
|
1285
|
+
return v2(a3) === e;
|
|
1286
1286
|
};
|
|
1287
1287
|
reactIs_production_min.isSuspense = function(a3) {
|
|
1288
|
-
return
|
|
1288
|
+
return v2(a3) === m2;
|
|
1289
1289
|
};
|
|
1290
1290
|
reactIs_production_min.isSuspenseList = function(a3) {
|
|
1291
|
-
return
|
|
1291
|
+
return v2(a3) === n;
|
|
1292
1292
|
};
|
|
1293
1293
|
reactIs_production_min.isValidElementType = function(a3) {
|
|
1294
|
-
return "string" === typeof a3 || "function" === typeof a3 || a3 === d || a3 ===
|
|
1294
|
+
return "string" === typeof a3 || "function" === typeof a3 || a3 === d || a3 === f4 || a3 === e || a3 === m2 || a3 === n || a3 === t || "object" === typeof a3 && null !== a3 && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g || a3.$$typeof === h4 || a3.$$typeof === l2 || a3.$$typeof === u3 || void 0 !== a3.getModuleId) ? true : false;
|
|
1295
1295
|
};
|
|
1296
|
-
reactIs_production_min.typeOf =
|
|
1296
|
+
reactIs_production_min.typeOf = v2;
|
|
1297
1297
|
return reactIs_production_min;
|
|
1298
1298
|
}
|
|
1299
1299
|
var reactIs_development = {};
|
|
@@ -1513,7 +1513,7 @@ var reactIsMethods = [
|
|
|
1513
1513
|
"isSuspenseList",
|
|
1514
1514
|
"isValidElementType"
|
|
1515
1515
|
];
|
|
1516
|
-
var ReactIs = Object.fromEntries(reactIsMethods.map((m2) => [m2, (
|
|
1516
|
+
var ReactIs = Object.fromEntries(reactIsMethods.map((m2) => [m2, (v2) => ReactIs18[m2](v2) || ReactIs19[m2](v2)]));
|
|
1517
1517
|
function getChildren(arg, children = []) {
|
|
1518
1518
|
if (Array.isArray(arg)) {
|
|
1519
1519
|
for (const item of arg) {
|
|
@@ -1880,7 +1880,7 @@ var plugins = {
|
|
|
1880
1880
|
Error: ErrorPlugin
|
|
1881
1881
|
};
|
|
1882
1882
|
|
|
1883
|
-
//
|
|
1883
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js
|
|
1884
1884
|
var ansiColors = {
|
|
1885
1885
|
bold: ["1", "22"],
|
|
1886
1886
|
dim: ["2", "22"],
|
|
@@ -2035,7 +2035,7 @@ function inspectProperty([key, value], options) {
|
|
|
2035
2035
|
return `${key}: ${value}`;
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
|
-
//
|
|
2038
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js
|
|
2039
2039
|
function inspectArray(array2, options) {
|
|
2040
2040
|
const nonIndexProperties = Object.keys(array2).slice(array2.length);
|
|
2041
2041
|
if (!array2.length && !nonIndexProperties.length)
|
|
@@ -2050,7 +2050,7 @@ function inspectArray(array2, options) {
|
|
|
2050
2050
|
return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
2051
2051
|
}
|
|
2052
2052
|
|
|
2053
|
-
//
|
|
2053
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js
|
|
2054
2054
|
var getArrayName = (array2) => {
|
|
2055
2055
|
if (typeof Buffer === "function" && array2 instanceof Buffer) {
|
|
2056
2056
|
return "Buffer";
|
|
@@ -2083,7 +2083,7 @@ function inspectTypedArray(array2, options) {
|
|
|
2083
2083
|
return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
|
|
2084
2084
|
}
|
|
2085
2085
|
|
|
2086
|
-
//
|
|
2086
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js
|
|
2087
2087
|
function inspectDate(dateObject, options) {
|
|
2088
2088
|
const stringRepresentation = dateObject.toJSON();
|
|
2089
2089
|
if (stringRepresentation === null) {
|
|
@@ -2094,7 +2094,7 @@ function inspectDate(dateObject, options) {
|
|
|
2094
2094
|
return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
|
|
2095
2095
|
}
|
|
2096
2096
|
|
|
2097
|
-
//
|
|
2097
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js
|
|
2098
2098
|
function inspectFunction(func, options) {
|
|
2099
2099
|
const functionType = func[Symbol.toStringTag] || "Function";
|
|
2100
2100
|
const name = func.name;
|
|
@@ -2104,7 +2104,7 @@ function inspectFunction(func, options) {
|
|
|
2104
2104
|
return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
2107
|
-
//
|
|
2107
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js
|
|
2108
2108
|
function inspectMapEntry([key, value], options) {
|
|
2109
2109
|
options.truncate -= 4;
|
|
2110
2110
|
key = options.inspect(key, options);
|
|
@@ -2126,7 +2126,7 @@ function inspectMap(map2, options) {
|
|
|
2126
2126
|
return `Map{ ${inspectList(mapToEntries(map2), options, inspectMapEntry)} }`;
|
|
2127
2127
|
}
|
|
2128
2128
|
|
|
2129
|
-
//
|
|
2129
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js
|
|
2130
2130
|
var isNaN = Number.isNaN || ((i) => i !== i);
|
|
2131
2131
|
function inspectNumber(number, options) {
|
|
2132
2132
|
if (isNaN(number)) {
|
|
@@ -2144,7 +2144,7 @@ function inspectNumber(number, options) {
|
|
|
2144
2144
|
return options.stylize(truncate(String(number), options.truncate), "number");
|
|
2145
2145
|
}
|
|
2146
2146
|
|
|
2147
|
-
//
|
|
2147
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js
|
|
2148
2148
|
function inspectBigInt(number, options) {
|
|
2149
2149
|
let nums = truncate(number.toString(), options.truncate - 1);
|
|
2150
2150
|
if (nums !== truncator)
|
|
@@ -2152,7 +2152,7 @@ function inspectBigInt(number, options) {
|
|
|
2152
2152
|
return options.stylize(nums, "bigint");
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
|
-
//
|
|
2155
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js
|
|
2156
2156
|
function inspectRegExp(value, options) {
|
|
2157
2157
|
const flags = value.toString().split("/")[2];
|
|
2158
2158
|
const sourceLength = options.truncate - (2 + flags.length);
|
|
@@ -2160,7 +2160,7 @@ function inspectRegExp(value, options) {
|
|
|
2160
2160
|
return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
|
|
2161
2161
|
}
|
|
2162
2162
|
|
|
2163
|
-
//
|
|
2163
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js
|
|
2164
2164
|
function arrayFromSet(set3) {
|
|
2165
2165
|
const values = [];
|
|
2166
2166
|
set3.forEach((value) => {
|
|
@@ -2175,7 +2175,7 @@ function inspectSet(set3, options) {
|
|
|
2175
2175
|
return `Set{ ${inspectList(arrayFromSet(set3), options)} }`;
|
|
2176
2176
|
}
|
|
2177
2177
|
|
|
2178
|
-
//
|
|
2178
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js
|
|
2179
2179
|
var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g");
|
|
2180
2180
|
var escapeCharacters = {
|
|
2181
2181
|
"\b": "\\b",
|
|
@@ -2198,7 +2198,7 @@ function inspectString(string2, options) {
|
|
|
2198
2198
|
return options.stylize(`'${truncate(string2, options.truncate - 2)}'`, "string");
|
|
2199
2199
|
}
|
|
2200
2200
|
|
|
2201
|
-
//
|
|
2201
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js
|
|
2202
2202
|
function inspectSymbol(value) {
|
|
2203
2203
|
if ("description" in Symbol.prototype) {
|
|
2204
2204
|
return value.description ? `Symbol(${value.description})` : "Symbol()";
|
|
@@ -2206,24 +2206,11 @@ function inspectSymbol(value) {
|
|
|
2206
2206
|
return value.toString();
|
|
2207
2207
|
}
|
|
2208
2208
|
|
|
2209
|
-
//
|
|
2209
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js
|
|
2210
2210
|
var getPromiseValue = () => "Promise{\u2026}";
|
|
2211
|
-
try {
|
|
2212
|
-
const { getPromiseDetails, kPending, kRejected } = process.binding("util");
|
|
2213
|
-
if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
|
|
2214
|
-
getPromiseValue = (value, options) => {
|
|
2215
|
-
const [state, innerValue] = getPromiseDetails(value);
|
|
2216
|
-
if (state === kPending) {
|
|
2217
|
-
return "Promise{<pending>}";
|
|
2218
|
-
}
|
|
2219
|
-
return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
|
|
2220
|
-
};
|
|
2221
|
-
}
|
|
2222
|
-
} catch (notNode) {
|
|
2223
|
-
}
|
|
2224
2211
|
var promise_default = getPromiseValue;
|
|
2225
2212
|
|
|
2226
|
-
//
|
|
2213
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js
|
|
2227
2214
|
function inspectObject(object2, options) {
|
|
2228
2215
|
const properties = Object.getOwnPropertyNames(object2);
|
|
2229
2216
|
const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object2) : [];
|
|
@@ -2246,7 +2233,7 @@ function inspectObject(object2, options) {
|
|
|
2246
2233
|
return `{ ${propertyContents}${sep2}${symbolContents} }`;
|
|
2247
2234
|
}
|
|
2248
2235
|
|
|
2249
|
-
//
|
|
2236
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js
|
|
2250
2237
|
var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false;
|
|
2251
2238
|
function inspectClass(value, options) {
|
|
2252
2239
|
let name = "";
|
|
@@ -2261,7 +2248,7 @@ function inspectClass(value, options) {
|
|
|
2261
2248
|
return `${name}${inspectObject(value, options)}`;
|
|
2262
2249
|
}
|
|
2263
2250
|
|
|
2264
|
-
//
|
|
2251
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js
|
|
2265
2252
|
function inspectArguments(args, options) {
|
|
2266
2253
|
if (args.length === 0)
|
|
2267
2254
|
return "Arguments[]";
|
|
@@ -2269,7 +2256,7 @@ function inspectArguments(args, options) {
|
|
|
2269
2256
|
return `Arguments[ ${inspectList(args, options)} ]`;
|
|
2270
2257
|
}
|
|
2271
2258
|
|
|
2272
|
-
//
|
|
2259
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js
|
|
2273
2260
|
var errorKeys = [
|
|
2274
2261
|
"stack",
|
|
2275
2262
|
"line",
|
|
@@ -2304,7 +2291,7 @@ function inspectObject2(error, options) {
|
|
|
2304
2291
|
return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
|
|
2305
2292
|
}
|
|
2306
2293
|
|
|
2307
|
-
//
|
|
2294
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js
|
|
2308
2295
|
function inspectAttribute([key, value], options) {
|
|
2309
2296
|
options.truncate -= 3;
|
|
2310
2297
|
if (!value) {
|
|
@@ -2346,7 +2333,7 @@ function inspectHTML(element, options) {
|
|
|
2346
2333
|
return `${head}${propertyContents}${headClose}${children}${tail}`;
|
|
2347
2334
|
}
|
|
2348
2335
|
|
|
2349
|
-
//
|
|
2336
|
+
// ../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js
|
|
2350
2337
|
var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";
|
|
2351
2338
|
var chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
2352
2339
|
var nodeInspect = Symbol.for("nodejs.util.inspect.custom");
|
|
@@ -2394,12 +2381,12 @@ var baseTypesMap = {
|
|
|
2394
2381
|
HTMLCollection: inspectNodeCollection,
|
|
2395
2382
|
NodeList: inspectNodeCollection
|
|
2396
2383
|
};
|
|
2397
|
-
var inspectCustom = (value, options, type3) => {
|
|
2384
|
+
var inspectCustom = (value, options, type3, inspectFn) => {
|
|
2398
2385
|
if (chaiInspect in value && typeof value[chaiInspect] === "function") {
|
|
2399
2386
|
return value[chaiInspect](options);
|
|
2400
2387
|
}
|
|
2401
2388
|
if (nodeInspect in value && typeof value[nodeInspect] === "function") {
|
|
2402
|
-
return value[nodeInspect](options.depth, options);
|
|
2389
|
+
return value[nodeInspect](options.depth, options, inspectFn);
|
|
2403
2390
|
}
|
|
2404
2391
|
if ("inspect" in value && typeof value.inspect === "function") {
|
|
2405
2392
|
return value.inspect(options.depth, options);
|
|
@@ -2424,7 +2411,7 @@ function inspect(value, opts = {}) {
|
|
|
2424
2411
|
return baseTypesMap[type3](value, options);
|
|
2425
2412
|
}
|
|
2426
2413
|
if (customInspect && value) {
|
|
2427
|
-
const output = inspectCustom(value, options, type3);
|
|
2414
|
+
const output = inspectCustom(value, options, type3, inspect);
|
|
2428
2415
|
if (output) {
|
|
2429
2416
|
if (typeof output === "string")
|
|
2430
2417
|
return output;
|
|
@@ -2450,7 +2437,7 @@ function inspect(value, opts = {}) {
|
|
|
2450
2437
|
return options.stylize(String(value), type3);
|
|
2451
2438
|
}
|
|
2452
2439
|
|
|
2453
|
-
//
|
|
2440
|
+
// ../../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
2454
2441
|
var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;
|
|
2455
2442
|
var PLUGINS = [
|
|
2456
2443
|
ReactTestComponent,
|
|
@@ -2499,14 +2486,14 @@ function format2(...args) {
|
|
|
2499
2486
|
const len = args.length;
|
|
2500
2487
|
let i = 1;
|
|
2501
2488
|
const template = args[0];
|
|
2502
|
-
let str = String(template).replace(formatRegExp, (
|
|
2503
|
-
if (
|
|
2489
|
+
let str = String(template).replace(formatRegExp, (x2) => {
|
|
2490
|
+
if (x2 === "%%") {
|
|
2504
2491
|
return "%";
|
|
2505
2492
|
}
|
|
2506
2493
|
if (i >= len) {
|
|
2507
|
-
return
|
|
2494
|
+
return x2;
|
|
2508
2495
|
}
|
|
2509
|
-
switch (
|
|
2496
|
+
switch (x2) {
|
|
2510
2497
|
case "%s": {
|
|
2511
2498
|
const value = args[i++];
|
|
2512
2499
|
if (typeof value === "bigint") {
|
|
@@ -2564,14 +2551,14 @@ function format2(...args) {
|
|
|
2564
2551
|
throw err;
|
|
2565
2552
|
}
|
|
2566
2553
|
default:
|
|
2567
|
-
return
|
|
2554
|
+
return x2;
|
|
2568
2555
|
}
|
|
2569
2556
|
});
|
|
2570
|
-
for (let
|
|
2571
|
-
if (
|
|
2572
|
-
str += ` ${
|
|
2557
|
+
for (let x2 = args[i]; i < len; x2 = args[++i]) {
|
|
2558
|
+
if (x2 === null || typeof x2 !== "object") {
|
|
2559
|
+
str += ` ${x2}`;
|
|
2573
2560
|
} else {
|
|
2574
|
-
str += ` ${inspect2(
|
|
2561
|
+
str += ` ${inspect2(x2)}`;
|
|
2575
2562
|
}
|
|
2576
2563
|
}
|
|
2577
2564
|
return str;
|
|
@@ -2604,11 +2591,11 @@ function objDisplay(obj, options = {}) {
|
|
|
2604
2591
|
}
|
|
2605
2592
|
return str;
|
|
2606
2593
|
}
|
|
2607
|
-
function getDefaultExportFromCjs2(
|
|
2608
|
-
return
|
|
2594
|
+
function getDefaultExportFromCjs2(x2) {
|
|
2595
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
2609
2596
|
}
|
|
2610
2597
|
|
|
2611
|
-
//
|
|
2598
|
+
// ../../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js
|
|
2612
2599
|
function createSimpleStackTrace(options) {
|
|
2613
2600
|
const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
|
|
2614
2601
|
const limit = Error.stackTraceLimit;
|
|
@@ -2665,15 +2652,15 @@ function deepClone(val, options = defaultCloneOptions) {
|
|
|
2665
2652
|
return clone(val, seen, options);
|
|
2666
2653
|
}
|
|
2667
2654
|
function clone(val, seen, options = defaultCloneOptions) {
|
|
2668
|
-
let
|
|
2655
|
+
let k2, out;
|
|
2669
2656
|
if (seen.has(val)) {
|
|
2670
2657
|
return seen.get(val);
|
|
2671
2658
|
}
|
|
2672
2659
|
if (Array.isArray(val)) {
|
|
2673
|
-
out = Array.from({ length:
|
|
2660
|
+
out = Array.from({ length: k2 = val.length });
|
|
2674
2661
|
seen.set(val, out);
|
|
2675
|
-
while (
|
|
2676
|
-
out[
|
|
2662
|
+
while (k2--) {
|
|
2663
|
+
out[k2] = clone(val[k2], seen, options);
|
|
2677
2664
|
}
|
|
2678
2665
|
return out;
|
|
2679
2666
|
}
|
|
@@ -2681,28 +2668,28 @@ function clone(val, seen, options = defaultCloneOptions) {
|
|
|
2681
2668
|
out = Object.create(Object.getPrototypeOf(val));
|
|
2682
2669
|
seen.set(val, out);
|
|
2683
2670
|
const props = getOwnProperties(val);
|
|
2684
|
-
for (const
|
|
2685
|
-
const descriptor = Object.getOwnPropertyDescriptor(val,
|
|
2671
|
+
for (const k3 of props) {
|
|
2672
|
+
const descriptor = Object.getOwnPropertyDescriptor(val, k3);
|
|
2686
2673
|
if (!descriptor) {
|
|
2687
2674
|
continue;
|
|
2688
2675
|
}
|
|
2689
|
-
const cloned = clone(val[
|
|
2676
|
+
const cloned = clone(val[k3], seen, options);
|
|
2690
2677
|
if (options.forceWritable) {
|
|
2691
|
-
Object.defineProperty(out,
|
|
2678
|
+
Object.defineProperty(out, k3, {
|
|
2692
2679
|
enumerable: descriptor.enumerable,
|
|
2693
2680
|
configurable: true,
|
|
2694
2681
|
writable: true,
|
|
2695
2682
|
value: cloned
|
|
2696
2683
|
});
|
|
2697
2684
|
} else if ("get" in descriptor) {
|
|
2698
|
-
Object.defineProperty(out,
|
|
2685
|
+
Object.defineProperty(out, k3, {
|
|
2699
2686
|
...descriptor,
|
|
2700
2687
|
get() {
|
|
2701
2688
|
return cloned;
|
|
2702
2689
|
}
|
|
2703
2690
|
});
|
|
2704
2691
|
} else {
|
|
2705
|
-
Object.defineProperty(out,
|
|
2692
|
+
Object.defineProperty(out, k3, {
|
|
2706
2693
|
...descriptor,
|
|
2707
2694
|
value: cloned
|
|
2708
2695
|
});
|
|
@@ -2747,7 +2734,7 @@ function isNegativeNaN(val) {
|
|
|
2747
2734
|
return isNegative;
|
|
2748
2735
|
}
|
|
2749
2736
|
|
|
2750
|
-
//
|
|
2737
|
+
// ../../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/index.js
|
|
2751
2738
|
var jsTokens_1;
|
|
2752
2739
|
var hasRequiredJsTokens;
|
|
2753
2740
|
function requireJsTokens() {
|
|
@@ -3211,7 +3198,7 @@ function getSafeTimers() {
|
|
|
3211
3198
|
};
|
|
3212
3199
|
}
|
|
3213
3200
|
|
|
3214
|
-
//
|
|
3201
|
+
// ../../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js
|
|
3215
3202
|
var comma = ",".charCodeAt(0);
|
|
3216
3203
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
3217
3204
|
var intToChar = new Uint8Array(64);
|
|
@@ -3425,7 +3412,7 @@ function parseSingleV8Stack(raw) {
|
|
|
3425
3412
|
};
|
|
3426
3413
|
}
|
|
3427
3414
|
|
|
3428
|
-
//
|
|
3415
|
+
// ../../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/diff.js
|
|
3429
3416
|
var DIFF_DELETE = -1;
|
|
3430
3417
|
var DIFF_INSERT = 1;
|
|
3431
3418
|
var DIFF_EQUAL = 0;
|
|
@@ -4307,19 +4294,19 @@ function joinAlignedDiffsNoExpand(diffs, options) {
|
|
|
4307
4294
|
let aEnd = 0;
|
|
4308
4295
|
let bEnd = 0;
|
|
4309
4296
|
const pushCommonLine = (line) => {
|
|
4310
|
-
const
|
|
4311
|
-
lines.push(printCommonLine(line,
|
|
4297
|
+
const j2 = lines.length;
|
|
4298
|
+
lines.push(printCommonLine(line, j2 === 0 || j2 === jLast, options));
|
|
4312
4299
|
aEnd += 1;
|
|
4313
4300
|
bEnd += 1;
|
|
4314
4301
|
};
|
|
4315
4302
|
const pushDeleteLine = (line) => {
|
|
4316
|
-
const
|
|
4317
|
-
lines.push(printDeleteLine(line,
|
|
4303
|
+
const j2 = lines.length;
|
|
4304
|
+
lines.push(printDeleteLine(line, j2 === 0 || j2 === jLast, options));
|
|
4318
4305
|
aEnd += 1;
|
|
4319
4306
|
};
|
|
4320
4307
|
const pushInsertLine = (line) => {
|
|
4321
|
-
const
|
|
4322
|
-
lines.push(printInsertLine(line,
|
|
4308
|
+
const j2 = lines.length;
|
|
4309
|
+
lines.push(printInsertLine(line, j2 === 0 || j2 === jLast, options));
|
|
4323
4310
|
bEnd += 1;
|
|
4324
4311
|
};
|
|
4325
4312
|
i = 0;
|
|
@@ -4446,20 +4433,20 @@ function isEmptyString(lines) {
|
|
|
4446
4433
|
}
|
|
4447
4434
|
function countChanges(diffs) {
|
|
4448
4435
|
let a3 = 0;
|
|
4449
|
-
let
|
|
4436
|
+
let b2 = 0;
|
|
4450
4437
|
diffs.forEach((diff2) => {
|
|
4451
4438
|
switch (diff2[0]) {
|
|
4452
4439
|
case DIFF_DELETE:
|
|
4453
4440
|
a3 += 1;
|
|
4454
4441
|
break;
|
|
4455
4442
|
case DIFF_INSERT:
|
|
4456
|
-
|
|
4443
|
+
b2 += 1;
|
|
4457
4444
|
break;
|
|
4458
4445
|
}
|
|
4459
4446
|
});
|
|
4460
4447
|
return {
|
|
4461
4448
|
a: a3,
|
|
4462
|
-
b
|
|
4449
|
+
b: b2
|
|
4463
4450
|
};
|
|
4464
4451
|
}
|
|
4465
4452
|
function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines }, changeCounts) {
|
|
@@ -4481,9 +4468,9 @@ function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor,
|
|
|
4481
4468
|
bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;
|
|
4482
4469
|
}
|
|
4483
4470
|
const a3 = `${aIndicator} ${aAnnotation}${aRest}`;
|
|
4484
|
-
const
|
|
4471
|
+
const b2 = `${bIndicator} ${bAnnotation}${bRest}`;
|
|
4485
4472
|
return `${aColor(a3)}
|
|
4486
|
-
${bColor(
|
|
4473
|
+
${bColor(b2)}
|
|
4487
4474
|
|
|
4488
4475
|
`;
|
|
4489
4476
|
}
|
|
@@ -4597,25 +4584,25 @@ function getType3(value) {
|
|
|
4597
4584
|
function getNewLineSymbol(string2) {
|
|
4598
4585
|
return string2.includes("\r\n") ? "\r\n" : "\n";
|
|
4599
4586
|
}
|
|
4600
|
-
function diffStrings(a3,
|
|
4587
|
+
function diffStrings(a3, b2, options) {
|
|
4601
4588
|
const truncate3 = (options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? false;
|
|
4602
4589
|
const truncateThreshold = Math.max(Math.floor((options === null || options === void 0 ? void 0 : options.truncateThreshold) ?? 0), 0);
|
|
4603
4590
|
let aLength = a3.length;
|
|
4604
|
-
let bLength =
|
|
4591
|
+
let bLength = b2.length;
|
|
4605
4592
|
if (truncate3) {
|
|
4606
4593
|
const aMultipleLines = a3.includes("\n");
|
|
4607
|
-
const bMultipleLines =
|
|
4594
|
+
const bMultipleLines = b2.includes("\n");
|
|
4608
4595
|
const aNewLineSymbol = getNewLineSymbol(a3);
|
|
4609
|
-
const bNewLineSymbol = getNewLineSymbol(
|
|
4596
|
+
const bNewLineSymbol = getNewLineSymbol(b2);
|
|
4610
4597
|
const _a3 = aMultipleLines ? `${a3.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}
|
|
4611
4598
|
` : a3;
|
|
4612
|
-
const _b = bMultipleLines ? `${
|
|
4613
|
-
` :
|
|
4599
|
+
const _b = bMultipleLines ? `${b2.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}
|
|
4600
|
+
` : b2;
|
|
4614
4601
|
aLength = _a3.length;
|
|
4615
4602
|
bLength = _b.length;
|
|
4616
4603
|
}
|
|
4617
|
-
const truncated = aLength !== a3.length || bLength !==
|
|
4618
|
-
const isCommon = (aIndex2, bIndex2) => a3[aIndex2] ===
|
|
4604
|
+
const truncated = aLength !== a3.length || bLength !== b2.length;
|
|
4605
|
+
const isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b2[bIndex2];
|
|
4619
4606
|
let aIndex = 0;
|
|
4620
4607
|
let bIndex = 0;
|
|
4621
4608
|
const diffs = [];
|
|
@@ -4624,18 +4611,18 @@ function diffStrings(a3, b, options) {
|
|
|
4624
4611
|
diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex, aCommon)));
|
|
4625
4612
|
}
|
|
4626
4613
|
if (bIndex !== bCommon) {
|
|
4627
|
-
diffs.push(new Diff(DIFF_INSERT,
|
|
4614
|
+
diffs.push(new Diff(DIFF_INSERT, b2.slice(bIndex, bCommon)));
|
|
4628
4615
|
}
|
|
4629
4616
|
aIndex = aCommon + nCommon;
|
|
4630
4617
|
bIndex = bCommon + nCommon;
|
|
4631
|
-
diffs.push(new Diff(DIFF_EQUAL,
|
|
4618
|
+
diffs.push(new Diff(DIFF_EQUAL, b2.slice(bCommon, bIndex)));
|
|
4632
4619
|
};
|
|
4633
4620
|
diffSequences(aLength, bLength, isCommon, foundSubsequence);
|
|
4634
4621
|
if (aIndex !== aLength) {
|
|
4635
4622
|
diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex)));
|
|
4636
4623
|
}
|
|
4637
4624
|
if (bIndex !== bLength) {
|
|
4638
|
-
diffs.push(new Diff(DIFF_INSERT,
|
|
4625
|
+
diffs.push(new Diff(DIFF_INSERT, b2.slice(bIndex)));
|
|
4639
4626
|
}
|
|
4640
4627
|
return [diffs, truncated];
|
|
4641
4628
|
}
|
|
@@ -4777,22 +4764,22 @@ function hasCommonDiff(diffs, isMultiline) {
|
|
|
4777
4764
|
}
|
|
4778
4765
|
return diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
|
|
4779
4766
|
}
|
|
4780
|
-
function diffStringsUnified(a3,
|
|
4781
|
-
if (a3 !==
|
|
4782
|
-
const isMultiline = a3.includes("\n") ||
|
|
4767
|
+
function diffStringsUnified(a3, b2, options) {
|
|
4768
|
+
if (a3 !== b2 && a3.length !== 0 && b2.length !== 0) {
|
|
4769
|
+
const isMultiline = a3.includes("\n") || b2.includes("\n");
|
|
4783
4770
|
const [diffs, truncated] = diffStringsRaw(isMultiline ? `${a3}
|
|
4784
|
-
` : a3, isMultiline ? `${
|
|
4785
|
-
` :
|
|
4771
|
+
` : a3, isMultiline ? `${b2}
|
|
4772
|
+
` : b2, true, options);
|
|
4786
4773
|
if (hasCommonDiff(diffs, isMultiline)) {
|
|
4787
4774
|
const optionsNormalized = normalizeDiffOptions(options);
|
|
4788
4775
|
const lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);
|
|
4789
4776
|
return printDiffLines(lines, truncated, optionsNormalized);
|
|
4790
4777
|
}
|
|
4791
4778
|
}
|
|
4792
|
-
return diffLinesUnified(a3.split("\n"),
|
|
4779
|
+
return diffLinesUnified(a3.split("\n"), b2.split("\n"), options);
|
|
4793
4780
|
}
|
|
4794
|
-
function diffStringsRaw(a3,
|
|
4795
|
-
const [diffs, truncated] = diffStrings(a3,
|
|
4781
|
+
function diffStringsRaw(a3, b2, cleanup, options) {
|
|
4782
|
+
const [diffs, truncated] = diffStrings(a3, b2, options);
|
|
4796
4783
|
if (cleanup) {
|
|
4797
4784
|
diff_cleanupSemantic(diffs);
|
|
4798
4785
|
}
|
|
@@ -4821,8 +4808,8 @@ var FALLBACK_FORMAT_OPTIONS = {
|
|
|
4821
4808
|
maxDepth: 8,
|
|
4822
4809
|
plugins: PLUGINS2
|
|
4823
4810
|
};
|
|
4824
|
-
function diff(a3,
|
|
4825
|
-
if (Object.is(a3,
|
|
4811
|
+
function diff(a3, b2, options) {
|
|
4812
|
+
if (Object.is(a3, b2)) {
|
|
4826
4813
|
return "";
|
|
4827
4814
|
}
|
|
4828
4815
|
const aType = getType3(a3);
|
|
@@ -4838,14 +4825,14 @@ function diff(a3, b, options) {
|
|
|
4838
4825
|
expectedType = a3.getExpectedType();
|
|
4839
4826
|
omitDifference = expectedType === "string";
|
|
4840
4827
|
}
|
|
4841
|
-
if (expectedType !== getType3(
|
|
4828
|
+
if (expectedType !== getType3(b2)) {
|
|
4842
4829
|
let truncate3 = function(s2) {
|
|
4843
4830
|
return s2.length <= MAX_LENGTH ? s2 : `${s2.slice(0, MAX_LENGTH)}...`;
|
|
4844
4831
|
};
|
|
4845
4832
|
const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);
|
|
4846
4833
|
const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
|
|
4847
4834
|
let aDisplay = format(a3, formatOptions);
|
|
4848
|
-
let bDisplay = format(
|
|
4835
|
+
let bDisplay = format(b2, formatOptions);
|
|
4849
4836
|
const MAX_LENGTH = 1e5;
|
|
4850
4837
|
aDisplay = truncate3(aDisplay);
|
|
4851
4838
|
bDisplay = truncate3(bDisplay);
|
|
@@ -4862,21 +4849,21 @@ ${bDiff}`;
|
|
|
4862
4849
|
}
|
|
4863
4850
|
switch (aType) {
|
|
4864
4851
|
case "string":
|
|
4865
|
-
return diffLinesUnified(a3.split("\n"),
|
|
4852
|
+
return diffLinesUnified(a3.split("\n"), b2.split("\n"), options);
|
|
4866
4853
|
case "boolean":
|
|
4867
4854
|
case "number":
|
|
4868
|
-
return comparePrimitive(a3,
|
|
4855
|
+
return comparePrimitive(a3, b2, options);
|
|
4869
4856
|
case "map":
|
|
4870
|
-
return compareObjects(sortMap(a3), sortMap(
|
|
4857
|
+
return compareObjects(sortMap(a3), sortMap(b2), options);
|
|
4871
4858
|
case "set":
|
|
4872
|
-
return compareObjects(sortSet(a3), sortSet(
|
|
4859
|
+
return compareObjects(sortSet(a3), sortSet(b2), options);
|
|
4873
4860
|
default:
|
|
4874
|
-
return compareObjects(a3,
|
|
4861
|
+
return compareObjects(a3, b2, options);
|
|
4875
4862
|
}
|
|
4876
4863
|
}
|
|
4877
|
-
function comparePrimitive(a3,
|
|
4864
|
+
function comparePrimitive(a3, b2, options) {
|
|
4878
4865
|
const aFormat = format(a3, FORMAT_OPTIONS);
|
|
4879
|
-
const bFormat = format(
|
|
4866
|
+
const bFormat = format(b2, FORMAT_OPTIONS);
|
|
4880
4867
|
return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split("\n"), bFormat.split("\n"), options);
|
|
4881
4868
|
}
|
|
4882
4869
|
function sortMap(map2) {
|
|
@@ -4885,19 +4872,19 @@ function sortMap(map2) {
|
|
|
4885
4872
|
function sortSet(set3) {
|
|
4886
4873
|
return new Set(Array.from(set3.values()).sort());
|
|
4887
4874
|
}
|
|
4888
|
-
function compareObjects(a3,
|
|
4875
|
+
function compareObjects(a3, b2, options) {
|
|
4889
4876
|
let difference;
|
|
4890
4877
|
let hasThrown = false;
|
|
4891
4878
|
try {
|
|
4892
4879
|
const formatOptions = getFormatOptions(FORMAT_OPTIONS, options);
|
|
4893
|
-
difference = getObjectsDifference(a3,
|
|
4880
|
+
difference = getObjectsDifference(a3, b2, formatOptions, options);
|
|
4894
4881
|
} catch {
|
|
4895
4882
|
hasThrown = true;
|
|
4896
4883
|
}
|
|
4897
4884
|
const noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
|
|
4898
4885
|
if (difference === void 0 || difference === noDiffMessage) {
|
|
4899
4886
|
const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
|
|
4900
|
-
difference = getObjectsDifference(a3,
|
|
4887
|
+
difference = getObjectsDifference(a3, b2, formatOptions, options);
|
|
4901
4888
|
if (difference !== noDiffMessage && !hasThrown) {
|
|
4902
4889
|
difference = `${getCommonMessage(SIMILAR_MESSAGE, options)}
|
|
4903
4890
|
|
|
@@ -4915,18 +4902,18 @@ function getFormatOptions(formatOptions, options) {
|
|
|
4915
4902
|
maxDepth: maxDepth ?? formatOptions.maxDepth
|
|
4916
4903
|
};
|
|
4917
4904
|
}
|
|
4918
|
-
function getObjectsDifference(a3,
|
|
4905
|
+
function getObjectsDifference(a3, b2, formatOptions, options) {
|
|
4919
4906
|
const formatOptionsZeroIndent = {
|
|
4920
4907
|
...formatOptions,
|
|
4921
4908
|
indent: 0
|
|
4922
4909
|
};
|
|
4923
4910
|
const aCompare = format(a3, formatOptionsZeroIndent);
|
|
4924
|
-
const bCompare = format(
|
|
4911
|
+
const bCompare = format(b2, formatOptionsZeroIndent);
|
|
4925
4912
|
if (aCompare === bCompare) {
|
|
4926
4913
|
return getCommonMessage(NO_DIFF_MESSAGE, options);
|
|
4927
4914
|
} else {
|
|
4928
4915
|
const aDisplay = format(a3, formatOptions);
|
|
4929
|
-
const bDisplay = format(
|
|
4916
|
+
const bDisplay = format(b2, formatOptions);
|
|
4930
4917
|
return diffLinesUnified2(aDisplay.split("\n"), bDisplay.split("\n"), aCompare.split("\n"), bCompare.split("\n"), options);
|
|
4931
4918
|
}
|
|
4932
4919
|
}
|
|
@@ -5022,11 +5009,11 @@ function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
|
|
|
5022
5009
|
return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? u.inverse(diff2[1]) : diff2[1] : ""), "");
|
|
5023
5010
|
}
|
|
5024
5011
|
|
|
5025
|
-
//
|
|
5012
|
+
// ../../../../node_modules/.pnpm/@vitest+utils@3.2.4/node_modules/@vitest/utils/dist/error.js
|
|
5026
5013
|
var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
|
|
5027
5014
|
var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
5028
|
-
function isImmutable(
|
|
5029
|
-
return
|
|
5015
|
+
function isImmutable(v2) {
|
|
5016
|
+
return v2 && (v2[IS_COLLECTION_SYMBOL] || v2[IS_RECORD_SYMBOL]);
|
|
5030
5017
|
}
|
|
5031
5018
|
var OBJECT_PROTO = Object.getPrototypeOf({});
|
|
5032
5019
|
function getUnserializableMessage(err) {
|
|
@@ -5172,85 +5159,73 @@ Inner error message: ${err === null || err === void 0 ? void 0 : err.message}`))
|
|
|
5172
5159
|
}
|
|
5173
5160
|
}
|
|
5174
5161
|
|
|
5175
|
-
//
|
|
5162
|
+
// ../../../../node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs
|
|
5176
5163
|
var import_js_tokens = __toESM(require_js_tokens(), 1);
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5164
|
+
var FILL_COMMENT = " ";
|
|
5165
|
+
function stripLiteralFromToken(token, fillChar, filter) {
|
|
5166
|
+
if (token.type === "SingleLineComment") {
|
|
5167
|
+
return FILL_COMMENT.repeat(token.value.length);
|
|
5168
|
+
}
|
|
5169
|
+
if (token.type === "MultiLineComment") {
|
|
5170
|
+
return token.value.replace(/[^\n]/g, FILL_COMMENT);
|
|
5171
|
+
}
|
|
5172
|
+
if (token.type === "StringLiteral") {
|
|
5173
|
+
if (!token.closed) {
|
|
5174
|
+
return token.value;
|
|
5188
5175
|
}
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5176
|
+
const body = token.value.slice(1, -1);
|
|
5177
|
+
if (filter(body)) {
|
|
5178
|
+
return token.value[0] + fillChar.repeat(body.length) + token.value[token.value.length - 1];
|
|
5192
5179
|
}
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
}
|
|
5198
|
-
const body = token.value.slice(1, -1);
|
|
5199
|
-
if (filter(body)) {
|
|
5200
|
-
result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1];
|
|
5201
|
-
continue;
|
|
5202
|
-
}
|
|
5203
|
-
}
|
|
5204
|
-
if (token.type === "NoSubstitutionTemplate") {
|
|
5205
|
-
const body = token.value.slice(1, -1);
|
|
5206
|
-
if (filter(body)) {
|
|
5207
|
-
result += `\`${body.replace(/[^\n]/g, FILL)}\``;
|
|
5208
|
-
continue;
|
|
5209
|
-
}
|
|
5180
|
+
}
|
|
5181
|
+
if (token.type === "NoSubstitutionTemplate") {
|
|
5182
|
+
const body = token.value.slice(1, -1);
|
|
5183
|
+
if (filter(body)) {
|
|
5184
|
+
return `\`${body.replace(/[^\n]/g, fillChar)}\``;
|
|
5210
5185
|
}
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
}
|
|
5186
|
+
}
|
|
5187
|
+
if (token.type === "RegularExpressionLiteral") {
|
|
5188
|
+
const body = token.value;
|
|
5189
|
+
if (filter(body)) {
|
|
5190
|
+
return body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${fillChar.repeat($1.length)}/${$2}`);
|
|
5217
5191
|
}
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
}
|
|
5192
|
+
}
|
|
5193
|
+
if (token.type === "TemplateHead") {
|
|
5194
|
+
const body = token.value.slice(1, -2);
|
|
5195
|
+
if (filter(body)) {
|
|
5196
|
+
return `\`${body.replace(/[^\n]/g, fillChar)}\${`;
|
|
5224
5197
|
}
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
}
|
|
5198
|
+
}
|
|
5199
|
+
if (token.type === "TemplateTail") {
|
|
5200
|
+
const body = token.value.slice(0, -2);
|
|
5201
|
+
if (filter(body)) {
|
|
5202
|
+
return `}${body.replace(/[^\n]/g, fillChar)}\``;
|
|
5231
5203
|
}
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
}
|
|
5204
|
+
}
|
|
5205
|
+
if (token.type === "TemplateMiddle") {
|
|
5206
|
+
const body = token.value.slice(1, -2);
|
|
5207
|
+
if (filter(body)) {
|
|
5208
|
+
return `}${body.replace(/[^\n]/g, fillChar)}\${`;
|
|
5238
5209
|
}
|
|
5239
|
-
result += token.value;
|
|
5240
5210
|
}
|
|
5211
|
+
return token.value;
|
|
5212
|
+
}
|
|
5213
|
+
function optionsWithDefaults(options) {
|
|
5241
5214
|
return {
|
|
5242
|
-
|
|
5243
|
-
|
|
5215
|
+
fillChar: (options == null ? void 0 : options.fillChar) ?? " ",
|
|
5216
|
+
filter: (options == null ? void 0 : options.filter) ?? (() => true)
|
|
5244
5217
|
};
|
|
5245
5218
|
}
|
|
5246
5219
|
function stripLiteral(code, options) {
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5220
|
+
let result = "";
|
|
5221
|
+
const _options = optionsWithDefaults(options);
|
|
5222
|
+
for (const token of (0, import_js_tokens.default)(code, { jsx: false })) {
|
|
5223
|
+
result += stripLiteralFromToken(token, _options.fillChar, _options.filter);
|
|
5224
|
+
}
|
|
5225
|
+
return result;
|
|
5251
5226
|
}
|
|
5252
5227
|
|
|
5253
|
-
//
|
|
5228
|
+
// ../../../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
5254
5229
|
var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
5255
5230
|
function normalizeWindowsPath2(input = "") {
|
|
5256
5231
|
if (!input) {
|
|
@@ -5348,7 +5323,7 @@ var isAbsolute2 = function(p3) {
|
|
|
5348
5323
|
return _IS_ABSOLUTE_RE2.test(p3);
|
|
5349
5324
|
};
|
|
5350
5325
|
|
|
5351
|
-
//
|
|
5326
|
+
// ../../../../node_modules/.pnpm/@vitest+runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js
|
|
5352
5327
|
var PendingError = class extends Error {
|
|
5353
5328
|
code = "VITEST_PENDING";
|
|
5354
5329
|
taskId;
|
|
@@ -6089,8 +6064,8 @@ function formatTemplateString(cases, args) {
|
|
|
6089
6064
|
const res = [];
|
|
6090
6065
|
for (let i = 0; i < Math.floor(args.length / header.length); i++) {
|
|
6091
6066
|
const oneCase = {};
|
|
6092
|
-
for (let
|
|
6093
|
-
oneCase[header[
|
|
6067
|
+
for (let j2 = 0; j2 < header.length; j2++) {
|
|
6068
|
+
oneCase[header[j2]] = args[i * header.length + j2];
|
|
6094
6069
|
}
|
|
6095
6070
|
res.push(oneCase);
|
|
6096
6071
|
}
|
|
@@ -6361,25 +6336,25 @@ function encodeUint8Array(bytes) {
|
|
|
6361
6336
|
for (let i = 0; i < len; i += 3) {
|
|
6362
6337
|
if (len === i + 1) {
|
|
6363
6338
|
const a3 = (bytes[i] & 252) >> 2;
|
|
6364
|
-
const
|
|
6339
|
+
const b2 = (bytes[i] & 3) << 4;
|
|
6365
6340
|
base64 += table[a3];
|
|
6366
|
-
base64 += table[
|
|
6341
|
+
base64 += table[b2];
|
|
6367
6342
|
base64 += "==";
|
|
6368
6343
|
} else if (len === i + 2) {
|
|
6369
6344
|
const a3 = (bytes[i] & 252) >> 2;
|
|
6370
|
-
const
|
|
6345
|
+
const b2 = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
|
|
6371
6346
|
const c = (bytes[i + 1] & 15) << 2;
|
|
6372
6347
|
base64 += table[a3];
|
|
6373
|
-
base64 += table[
|
|
6348
|
+
base64 += table[b2];
|
|
6374
6349
|
base64 += table[c];
|
|
6375
6350
|
base64 += "=";
|
|
6376
6351
|
} else {
|
|
6377
6352
|
const a3 = (bytes[i] & 252) >> 2;
|
|
6378
|
-
const
|
|
6353
|
+
const b2 = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
|
|
6379
6354
|
const c = (bytes[i + 1] & 15) << 2 | (bytes[i + 2] & 192) >> 6;
|
|
6380
6355
|
const d = bytes[i + 2] & 63;
|
|
6381
6356
|
base64 += table[a3];
|
|
6382
|
-
base64 += table[
|
|
6357
|
+
base64 += table[b2];
|
|
6383
6358
|
base64 += table[c];
|
|
6384
6359
|
base64 += table[d];
|
|
6385
6360
|
}
|
|
@@ -6426,166 +6401,166 @@ function createTestHook(name, handler) {
|
|
|
6426
6401
|
};
|
|
6427
6402
|
}
|
|
6428
6403
|
|
|
6429
|
-
//
|
|
6430
|
-
function
|
|
6431
|
-
if (!
|
|
6432
|
-
throw new Error(
|
|
6404
|
+
// ../../../../node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js
|
|
6405
|
+
function S(e, t) {
|
|
6406
|
+
if (!e)
|
|
6407
|
+
throw new Error(t);
|
|
6433
6408
|
}
|
|
6434
|
-
function
|
|
6435
|
-
return typeof
|
|
6409
|
+
function f2(e, t) {
|
|
6410
|
+
return typeof t === e;
|
|
6436
6411
|
}
|
|
6437
|
-
function
|
|
6438
|
-
return
|
|
6412
|
+
function w(e) {
|
|
6413
|
+
return e instanceof Promise;
|
|
6439
6414
|
}
|
|
6440
|
-
function
|
|
6441
|
-
Object.defineProperty(
|
|
6415
|
+
function u2(e, t, r2) {
|
|
6416
|
+
Object.defineProperty(e, t, r2);
|
|
6442
6417
|
}
|
|
6443
|
-
function
|
|
6444
|
-
|
|
6418
|
+
function l(e, t, r2) {
|
|
6419
|
+
u2(e, t, { value: r2, configurable: true, writable: true });
|
|
6445
6420
|
}
|
|
6446
|
-
var
|
|
6447
|
-
var
|
|
6448
|
-
var
|
|
6449
|
-
|
|
6421
|
+
var y = Symbol.for("tinyspy:spy");
|
|
6422
|
+
var x = /* @__PURE__ */ new Set();
|
|
6423
|
+
var h2 = (e) => {
|
|
6424
|
+
e.called = false, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];
|
|
6450
6425
|
};
|
|
6451
|
-
var
|
|
6452
|
-
value: { reset: () =>
|
|
6453
|
-
}),
|
|
6454
|
-
var
|
|
6455
|
-
function
|
|
6456
|
-
|
|
6457
|
-
|
|
6426
|
+
var k = (e) => (u2(e, y, {
|
|
6427
|
+
value: { reset: () => h2(e[y]) }
|
|
6428
|
+
}), e[y]);
|
|
6429
|
+
var T = (e) => e[y] || k(e);
|
|
6430
|
+
function R(e) {
|
|
6431
|
+
S(
|
|
6432
|
+
f2("function", e) || f2("undefined", e),
|
|
6458
6433
|
"cannot spy on a non-function value"
|
|
6459
6434
|
);
|
|
6460
|
-
let
|
|
6461
|
-
let
|
|
6462
|
-
|
|
6463
|
-
let
|
|
6464
|
-
if (
|
|
6465
|
-
|
|
6466
|
-
let [
|
|
6467
|
-
if (
|
|
6468
|
-
return
|
|
6469
|
-
throw
|
|
6470
|
-
}
|
|
6471
|
-
let
|
|
6472
|
-
if (
|
|
6435
|
+
let t = function(...s2) {
|
|
6436
|
+
let n = T(t);
|
|
6437
|
+
n.called = true, n.callCount++, n.calls.push(s2);
|
|
6438
|
+
let d = n.next.shift();
|
|
6439
|
+
if (d) {
|
|
6440
|
+
n.results.push(d);
|
|
6441
|
+
let [a3, i] = d;
|
|
6442
|
+
if (a3 === "ok")
|
|
6443
|
+
return i;
|
|
6444
|
+
throw i;
|
|
6445
|
+
}
|
|
6446
|
+
let o, c = "ok", p3 = n.results.length;
|
|
6447
|
+
if (n.impl)
|
|
6473
6448
|
try {
|
|
6474
|
-
new.target ?
|
|
6475
|
-
} catch (
|
|
6476
|
-
throw
|
|
6477
|
-
}
|
|
6478
|
-
let
|
|
6479
|
-
return
|
|
6480
|
-
(
|
|
6481
|
-
(
|
|
6482
|
-
),
|
|
6449
|
+
new.target ? o = Reflect.construct(n.impl, s2, new.target) : o = n.impl.apply(this, s2), c = "ok";
|
|
6450
|
+
} catch (a3) {
|
|
6451
|
+
throw o = a3, c = "error", n.results.push([c, a3]), a3;
|
|
6452
|
+
}
|
|
6453
|
+
let g = [c, o];
|
|
6454
|
+
return w(o) && o.then(
|
|
6455
|
+
(a3) => n.resolves[p3] = ["ok", a3],
|
|
6456
|
+
(a3) => n.resolves[p3] = ["error", a3]
|
|
6457
|
+
), n.results.push(g), o;
|
|
6483
6458
|
};
|
|
6484
|
-
|
|
6485
|
-
let
|
|
6486
|
-
return
|
|
6487
|
-
}
|
|
6488
|
-
function
|
|
6489
|
-
return !!
|
|
6490
|
-
}
|
|
6491
|
-
var
|
|
6492
|
-
let
|
|
6493
|
-
if (
|
|
6494
|
-
return [
|
|
6495
|
-
let
|
|
6496
|
-
for (;
|
|
6497
|
-
let
|
|
6498
|
-
if (
|
|
6499
|
-
return [
|
|
6500
|
-
|
|
6459
|
+
l(t, "_isMockFunction", true), l(t, "length", e ? e.length : 0), l(t, "name", e && e.name || "spy");
|
|
6460
|
+
let r2 = T(t);
|
|
6461
|
+
return r2.reset(), r2.impl = e, t;
|
|
6462
|
+
}
|
|
6463
|
+
function v(e) {
|
|
6464
|
+
return !!e && e._isMockFunction === true;
|
|
6465
|
+
}
|
|
6466
|
+
var b = (e, t) => {
|
|
6467
|
+
let r2 = Object.getOwnPropertyDescriptor(e, t);
|
|
6468
|
+
if (r2)
|
|
6469
|
+
return [e, r2];
|
|
6470
|
+
let s2 = Object.getPrototypeOf(e);
|
|
6471
|
+
for (; s2 !== null; ) {
|
|
6472
|
+
let n = Object.getOwnPropertyDescriptor(s2, t);
|
|
6473
|
+
if (n)
|
|
6474
|
+
return [s2, n];
|
|
6475
|
+
s2 = Object.getPrototypeOf(s2);
|
|
6501
6476
|
}
|
|
6502
6477
|
};
|
|
6503
|
-
var
|
|
6504
|
-
|
|
6478
|
+
var P = (e, t) => {
|
|
6479
|
+
t != null && typeof t == "function" && t.prototype != null && Object.setPrototypeOf(e.prototype, t.prototype);
|
|
6505
6480
|
};
|
|
6506
|
-
function
|
|
6507
|
-
|
|
6508
|
-
!
|
|
6481
|
+
function M(e, t, r2) {
|
|
6482
|
+
S(
|
|
6483
|
+
!f2("undefined", e),
|
|
6509
6484
|
"spyOn could not find an object to spy upon"
|
|
6510
|
-
),
|
|
6511
|
-
|
|
6485
|
+
), S(
|
|
6486
|
+
f2("object", e) || f2("function", e),
|
|
6512
6487
|
"cannot spyOn on a primitive value"
|
|
6513
6488
|
);
|
|
6514
|
-
let [
|
|
6515
|
-
if (!
|
|
6516
|
-
return [
|
|
6517
|
-
if ("getter" in
|
|
6489
|
+
let [s2, n] = (() => {
|
|
6490
|
+
if (!f2("object", t))
|
|
6491
|
+
return [t, "value"];
|
|
6492
|
+
if ("getter" in t && "setter" in t)
|
|
6518
6493
|
throw new Error("cannot spy on both getter and setter");
|
|
6519
|
-
if ("getter" in
|
|
6520
|
-
return [
|
|
6521
|
-
if ("setter" in
|
|
6522
|
-
return [
|
|
6494
|
+
if ("getter" in t)
|
|
6495
|
+
return [t.getter, "get"];
|
|
6496
|
+
if ("setter" in t)
|
|
6497
|
+
return [t.setter, "set"];
|
|
6523
6498
|
throw new Error("specify getter or setter to spy on");
|
|
6524
|
-
})(), [
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
`${String(
|
|
6499
|
+
})(), [d, o] = b(e, s2) || [];
|
|
6500
|
+
S(
|
|
6501
|
+
o || s2 in e,
|
|
6502
|
+
`${String(s2)} does not exist`
|
|
6528
6503
|
);
|
|
6529
|
-
let
|
|
6530
|
-
|
|
6531
|
-
let
|
|
6532
|
-
|
|
6533
|
-
let
|
|
6534
|
-
let { value, ...
|
|
6504
|
+
let c = false;
|
|
6505
|
+
n === "value" && o && !o.value && o.get && (n = "get", c = true, r2 = o.get());
|
|
6506
|
+
let p3;
|
|
6507
|
+
o ? p3 = o[n] : n !== "value" ? p3 = () => e[s2] : p3 = e[s2], p3 && j(p3) && (p3 = p3[y].getOriginal());
|
|
6508
|
+
let g = (I) => {
|
|
6509
|
+
let { value: F, ...O } = o || {
|
|
6535
6510
|
configurable: true,
|
|
6536
6511
|
writable: true
|
|
6537
6512
|
};
|
|
6538
|
-
|
|
6539
|
-
},
|
|
6540
|
-
|
|
6513
|
+
n !== "value" && delete O.writable, O[n] = I, u2(e, s2, O);
|
|
6514
|
+
}, a3 = () => {
|
|
6515
|
+
d !== e ? Reflect.deleteProperty(e, s2) : o && !p3 ? u2(e, s2, o) : g(p3);
|
|
6541
6516
|
};
|
|
6542
|
-
|
|
6543
|
-
let
|
|
6544
|
-
|
|
6545
|
-
let
|
|
6546
|
-
return
|
|
6547
|
-
|
|
6548
|
-
),
|
|
6549
|
-
}
|
|
6550
|
-
var
|
|
6517
|
+
r2 || (r2 = p3);
|
|
6518
|
+
let i = E(R(r2), r2);
|
|
6519
|
+
n === "value" && P(i, p3);
|
|
6520
|
+
let m2 = i[y];
|
|
6521
|
+
return l(m2, "restore", a3), l(m2, "getOriginal", () => c ? p3() : p3), l(m2, "willCall", (I) => (m2.impl = I, i)), g(
|
|
6522
|
+
c ? () => (P(i, r2), i) : i
|
|
6523
|
+
), x.add(i), i;
|
|
6524
|
+
}
|
|
6525
|
+
var K = /* @__PURE__ */ new Set([
|
|
6551
6526
|
"length",
|
|
6552
6527
|
"name",
|
|
6553
6528
|
"prototype"
|
|
6554
6529
|
]);
|
|
6555
|
-
function
|
|
6556
|
-
let
|
|
6557
|
-
for (;
|
|
6558
|
-
let
|
|
6559
|
-
...Object.getOwnPropertyNames(
|
|
6560
|
-
...Object.getOwnPropertySymbols(
|
|
6530
|
+
function D(e) {
|
|
6531
|
+
let t = /* @__PURE__ */ new Set(), r2 = {};
|
|
6532
|
+
for (; e && e !== Object.prototype && e !== Function.prototype; ) {
|
|
6533
|
+
let s2 = [
|
|
6534
|
+
...Object.getOwnPropertyNames(e),
|
|
6535
|
+
...Object.getOwnPropertySymbols(e)
|
|
6561
6536
|
];
|
|
6562
|
-
for (let
|
|
6563
|
-
|
|
6564
|
-
|
|
6537
|
+
for (let n of s2)
|
|
6538
|
+
r2[n] || K.has(n) || (t.add(n), r2[n] = Object.getOwnPropertyDescriptor(e, n));
|
|
6539
|
+
e = Object.getPrototypeOf(e);
|
|
6565
6540
|
}
|
|
6566
6541
|
return {
|
|
6567
|
-
properties,
|
|
6568
|
-
descriptors:
|
|
6542
|
+
properties: t,
|
|
6543
|
+
descriptors: r2
|
|
6569
6544
|
};
|
|
6570
6545
|
}
|
|
6571
|
-
function
|
|
6572
|
-
if (!
|
|
6573
|
-
|
|
6574
|
-
return
|
|
6575
|
-
let { properties, descriptors:
|
|
6576
|
-
for (let
|
|
6577
|
-
let
|
|
6578
|
-
|
|
6546
|
+
function E(e, t) {
|
|
6547
|
+
if (!t || // the original is already a spy, so it has all the properties
|
|
6548
|
+
y in t)
|
|
6549
|
+
return e;
|
|
6550
|
+
let { properties: r2, descriptors: s2 } = D(t);
|
|
6551
|
+
for (let n of r2) {
|
|
6552
|
+
let d = s2[n];
|
|
6553
|
+
b(e, n) || u2(e, n, d);
|
|
6579
6554
|
}
|
|
6580
|
-
return
|
|
6555
|
+
return e;
|
|
6581
6556
|
}
|
|
6582
|
-
function
|
|
6583
|
-
return
|
|
6557
|
+
function j(e) {
|
|
6558
|
+
return v(e) && "getOriginal" in e[y];
|
|
6584
6559
|
}
|
|
6585
6560
|
|
|
6586
|
-
//
|
|
6561
|
+
// ../../../../node_modules/.pnpm/@vitest+spy@3.2.4/node_modules/@vitest/spy/dist/index.js
|
|
6587
6562
|
var mocks = /* @__PURE__ */ new Set();
|
|
6588
|
-
function
|
|
6563
|
+
function isMockFunction(fn2) {
|
|
6589
6564
|
return typeof fn2 === "function" && "_isMockFunction" in fn2 && fn2._isMockFunction;
|
|
6590
6565
|
}
|
|
6591
6566
|
function spyOn(obj, method, accessType) {
|
|
@@ -6595,13 +6570,13 @@ function spyOn(obj, method, accessType) {
|
|
|
6595
6570
|
};
|
|
6596
6571
|
const objMethod = accessType ? { [dictionary[accessType]]: method } : method;
|
|
6597
6572
|
let state;
|
|
6598
|
-
const descriptor =
|
|
6573
|
+
const descriptor = getDescriptor(obj, method);
|
|
6599
6574
|
const fn2 = descriptor && descriptor[accessType || "value"];
|
|
6600
|
-
if (
|
|
6575
|
+
if (isMockFunction(fn2)) {
|
|
6601
6576
|
state = fn2.mock._state();
|
|
6602
6577
|
}
|
|
6603
6578
|
try {
|
|
6604
|
-
const stub =
|
|
6579
|
+
const stub = M(obj, objMethod);
|
|
6605
6580
|
const spy = enhanceSpy(stub);
|
|
6606
6581
|
if (state) {
|
|
6607
6582
|
spy.mock._state(state);
|
|
@@ -6623,7 +6598,7 @@ function enhanceSpy(spy) {
|
|
|
6623
6598
|
let instances = [];
|
|
6624
6599
|
let contexts = [];
|
|
6625
6600
|
let invocations = [];
|
|
6626
|
-
const state =
|
|
6601
|
+
const state = T(spy);
|
|
6627
6602
|
const mockContext = {
|
|
6628
6603
|
get calls() {
|
|
6629
6604
|
return state.calls;
|
|
@@ -6721,18 +6696,18 @@ function enhanceSpy(spy) {
|
|
|
6721
6696
|
implementation = fn2;
|
|
6722
6697
|
state.willCall(mockCall);
|
|
6723
6698
|
implementationChangedTemporarily = true;
|
|
6724
|
-
const
|
|
6699
|
+
const reset = () => {
|
|
6725
6700
|
implementation = originalImplementation;
|
|
6726
6701
|
implementationChangedTemporarily = false;
|
|
6727
6702
|
};
|
|
6728
6703
|
const result = cb();
|
|
6729
6704
|
if (typeof result === "object" && result && typeof result.then === "function") {
|
|
6730
6705
|
return result.then(() => {
|
|
6731
|
-
|
|
6706
|
+
reset();
|
|
6732
6707
|
return stub;
|
|
6733
6708
|
});
|
|
6734
6709
|
}
|
|
6735
|
-
|
|
6710
|
+
reset();
|
|
6736
6711
|
return stub;
|
|
6737
6712
|
}
|
|
6738
6713
|
stub.withImplementation = withImplementation;
|
|
@@ -6751,14 +6726,14 @@ function enhanceSpy(spy) {
|
|
|
6751
6726
|
return stub;
|
|
6752
6727
|
}
|
|
6753
6728
|
function fn(implementation) {
|
|
6754
|
-
const enhancedSpy = enhanceSpy(
|
|
6729
|
+
const enhancedSpy = enhanceSpy(M({ spy: implementation || function() {
|
|
6755
6730
|
} }, "spy"));
|
|
6756
6731
|
if (implementation) {
|
|
6757
6732
|
enhancedSpy.mockImplementation(implementation);
|
|
6758
6733
|
}
|
|
6759
6734
|
return enhancedSpy;
|
|
6760
6735
|
}
|
|
6761
|
-
function
|
|
6736
|
+
function getDescriptor(obj, method) {
|
|
6762
6737
|
const objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
|
|
6763
6738
|
if (objDescriptor) {
|
|
6764
6739
|
return objDescriptor;
|
|
@@ -6773,21 +6748,13 @@ function getDescriptor2(obj, method) {
|
|
|
6773
6748
|
}
|
|
6774
6749
|
}
|
|
6775
6750
|
|
|
6776
|
-
//
|
|
6751
|
+
// ../../../../node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js
|
|
6777
6752
|
var __defProp = Object.defineProperty;
|
|
6778
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6779
6753
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6780
|
-
var __commonJS2 = (cb, mod) => function __require() {
|
|
6781
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6782
|
-
};
|
|
6783
6754
|
var __export = (target, all) => {
|
|
6784
6755
|
for (var name in all)
|
|
6785
6756
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6786
6757
|
};
|
|
6787
|
-
var require_util = __commonJS2({
|
|
6788
|
-
"(disabled):util"() {
|
|
6789
|
-
}
|
|
6790
|
-
});
|
|
6791
6758
|
var utils_exports = {};
|
|
6792
6759
|
__export(utils_exports, {
|
|
6793
6760
|
addChainableMethod: () => addChainableMethod,
|
|
@@ -7219,10 +7186,8 @@ function mapToEntries2(map2) {
|
|
|
7219
7186
|
}
|
|
7220
7187
|
__name(mapToEntries2, "mapToEntries");
|
|
7221
7188
|
function inspectMap2(map2, options) {
|
|
7222
|
-
|
|
7223
|
-
if (size <= 0) {
|
|
7189
|
+
if (map2.size === 0)
|
|
7224
7190
|
return "Map{}";
|
|
7225
|
-
}
|
|
7226
7191
|
options.truncate -= 7;
|
|
7227
7192
|
return `Map{ ${inspectList2(mapToEntries2(map2), options, inspectMapEntry2)} }`;
|
|
7228
7193
|
}
|
|
@@ -7304,19 +7269,6 @@ function inspectSymbol2(value) {
|
|
|
7304
7269
|
}
|
|
7305
7270
|
__name(inspectSymbol2, "inspectSymbol");
|
|
7306
7271
|
var getPromiseValue2 = /* @__PURE__ */ __name(() => "Promise{\u2026}", "getPromiseValue");
|
|
7307
|
-
try {
|
|
7308
|
-
const { getPromiseDetails, kPending, kRejected } = process.binding("util");
|
|
7309
|
-
if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
|
|
7310
|
-
getPromiseValue2 = /* @__PURE__ */ __name((value, options) => {
|
|
7311
|
-
const [state, innerValue] = getPromiseDetails(value);
|
|
7312
|
-
if (state === kPending) {
|
|
7313
|
-
return "Promise{<pending>}";
|
|
7314
|
-
}
|
|
7315
|
-
return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
|
|
7316
|
-
}, "getPromiseValue");
|
|
7317
|
-
}
|
|
7318
|
-
} catch (notNode) {
|
|
7319
|
-
}
|
|
7320
7272
|
var promise_default2 = getPromiseValue2;
|
|
7321
7273
|
function inspectObject3(object2, options) {
|
|
7322
7274
|
const properties = Object.getOwnPropertyNames(object2);
|
|
@@ -7403,10 +7355,21 @@ function inspectAttribute2([key, value], options) {
|
|
|
7403
7355
|
return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
|
|
7404
7356
|
}
|
|
7405
7357
|
__name(inspectAttribute2, "inspectAttribute");
|
|
7406
|
-
function
|
|
7407
|
-
return inspectList2(collection, options,
|
|
7358
|
+
function inspectNodeCollection2(collection, options) {
|
|
7359
|
+
return inspectList2(collection, options, inspectNode2, "\n");
|
|
7408
7360
|
}
|
|
7409
|
-
__name(
|
|
7361
|
+
__name(inspectNodeCollection2, "inspectNodeCollection");
|
|
7362
|
+
function inspectNode2(node, options) {
|
|
7363
|
+
switch (node.nodeType) {
|
|
7364
|
+
case 1:
|
|
7365
|
+
return inspectHTML2(node, options);
|
|
7366
|
+
case 3:
|
|
7367
|
+
return options.inspect(node.data, options);
|
|
7368
|
+
default:
|
|
7369
|
+
return options.inspect(node, options);
|
|
7370
|
+
}
|
|
7371
|
+
}
|
|
7372
|
+
__name(inspectNode2, "inspectNode");
|
|
7410
7373
|
function inspectHTML2(element, options) {
|
|
7411
7374
|
const properties = element.getAttributeNames();
|
|
7412
7375
|
const name = element.tagName.toLowerCase();
|
|
@@ -7421,7 +7384,7 @@ function inspectHTML2(element, options) {
|
|
|
7421
7384
|
}
|
|
7422
7385
|
options.truncate -= propertyContents.length;
|
|
7423
7386
|
const truncate22 = options.truncate;
|
|
7424
|
-
let children =
|
|
7387
|
+
let children = inspectNodeCollection2(element.children, options);
|
|
7425
7388
|
if (children && children.length > truncate22) {
|
|
7426
7389
|
children = `${truncator2}(${element.children.length})`;
|
|
7427
7390
|
}
|
|
@@ -7430,13 +7393,7 @@ function inspectHTML2(element, options) {
|
|
|
7430
7393
|
__name(inspectHTML2, "inspectHTML");
|
|
7431
7394
|
var symbolsSupported2 = typeof Symbol === "function" && typeof Symbol.for === "function";
|
|
7432
7395
|
var chaiInspect2 = symbolsSupported2 ? Symbol.for("chai/inspect") : "@@chai/inspect";
|
|
7433
|
-
var nodeInspect2 =
|
|
7434
|
-
try {
|
|
7435
|
-
const nodeUtil = require_util();
|
|
7436
|
-
nodeInspect2 = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
|
|
7437
|
-
} catch (noNodeInspect) {
|
|
7438
|
-
nodeInspect2 = false;
|
|
7439
|
-
}
|
|
7396
|
+
var nodeInspect2 = Symbol.for("nodejs.util.inspect.custom");
|
|
7440
7397
|
var constructorMap2 = /* @__PURE__ */ new WeakMap();
|
|
7441
7398
|
var stringTagMap2 = {};
|
|
7442
7399
|
var baseTypesMap2 = {
|
|
@@ -7478,14 +7435,14 @@ var baseTypesMap2 = {
|
|
|
7478
7435
|
DataView: /* @__PURE__ */ __name(() => "", "DataView"),
|
|
7479
7436
|
ArrayBuffer: /* @__PURE__ */ __name(() => "", "ArrayBuffer"),
|
|
7480
7437
|
Error: inspectObject22,
|
|
7481
|
-
HTMLCollection:
|
|
7482
|
-
NodeList:
|
|
7438
|
+
HTMLCollection: inspectNodeCollection2,
|
|
7439
|
+
NodeList: inspectNodeCollection2
|
|
7483
7440
|
};
|
|
7484
7441
|
var inspectCustom2 = /* @__PURE__ */ __name((value, options, type3) => {
|
|
7485
7442
|
if (chaiInspect2 in value && typeof value[chaiInspect2] === "function") {
|
|
7486
7443
|
return value[chaiInspect2](options);
|
|
7487
7444
|
}
|
|
7488
|
-
if (nodeInspect2
|
|
7445
|
+
if (nodeInspect2 in value && typeof value[nodeInspect2] === "function") {
|
|
7489
7446
|
return value[nodeInspect2](options.depth, options);
|
|
7490
7447
|
}
|
|
7491
7448
|
if ("inspect" in value && typeof value.inspect === "function") {
|
|
@@ -8377,20 +8334,20 @@ function stringDistanceCapped(strA, strB, cap) {
|
|
|
8377
8334
|
memo[i] = Array(strB.length + 1).fill(0);
|
|
8378
8335
|
memo[i][0] = i;
|
|
8379
8336
|
}
|
|
8380
|
-
for (let
|
|
8381
|
-
memo[0][
|
|
8337
|
+
for (let j2 = 0; j2 < strB.length; j2++) {
|
|
8338
|
+
memo[0][j2] = j2;
|
|
8382
8339
|
}
|
|
8383
8340
|
for (let i = 1; i <= strA.length; i++) {
|
|
8384
8341
|
let ch = strA.charCodeAt(i - 1);
|
|
8385
|
-
for (let
|
|
8386
|
-
if (Math.abs(i -
|
|
8387
|
-
memo[i][
|
|
8342
|
+
for (let j2 = 1; j2 <= strB.length; j2++) {
|
|
8343
|
+
if (Math.abs(i - j2) >= cap) {
|
|
8344
|
+
memo[i][j2] = cap;
|
|
8388
8345
|
continue;
|
|
8389
8346
|
}
|
|
8390
|
-
memo[i][
|
|
8391
|
-
memo[i - 1][
|
|
8392
|
-
memo[i][
|
|
8393
|
-
memo[i - 1][
|
|
8347
|
+
memo[i][j2] = Math.min(
|
|
8348
|
+
memo[i - 1][j2] + 1,
|
|
8349
|
+
memo[i][j2 - 1] + 1,
|
|
8350
|
+
memo[i - 1][j2 - 1] + (ch === strB.charCodeAt(j2 - 1) ? 0 : 1)
|
|
8394
8351
|
);
|
|
8395
8352
|
}
|
|
8396
8353
|
}
|
|
@@ -8549,8 +8506,8 @@ function overwriteChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
8549
8506
|
}, "overwritingChainableMethodWrapper");
|
|
8550
8507
|
}
|
|
8551
8508
|
__name(overwriteChainableMethod, "overwriteChainableMethod");
|
|
8552
|
-
function compareByInspect(a3,
|
|
8553
|
-
return inspect22(a3) < inspect22(
|
|
8509
|
+
function compareByInspect(a3, b2) {
|
|
8510
|
+
return inspect22(a3) < inspect22(b2) ? -1 : 1;
|
|
8554
8511
|
}
|
|
8555
8512
|
__name(compareByInspect, "compareByInspect");
|
|
8556
8513
|
function getOwnEnumerablePropertySymbols(obj) {
|
|
@@ -8687,8 +8644,8 @@ function an(type3, msg) {
|
|
|
8687
8644
|
__name(an, "an");
|
|
8688
8645
|
Assertion.addChainableMethod("an", an);
|
|
8689
8646
|
Assertion.addChainableMethod("a", an);
|
|
8690
|
-
function SameValueZero(a3,
|
|
8691
|
-
return isNaN22(a3) && isNaN22(
|
|
8647
|
+
function SameValueZero(a3, b2) {
|
|
8648
|
+
return isNaN22(a3) && isNaN22(b2) || a3 === b2;
|
|
8692
8649
|
}
|
|
8693
8650
|
__name(SameValueZero, "SameValueZero");
|
|
8694
8651
|
function includeChainingBehavior() {
|
|
@@ -9656,7 +9613,7 @@ function closeTo(expected, delta, msg) {
|
|
|
9656
9613
|
);
|
|
9657
9614
|
}
|
|
9658
9615
|
new Assertion(expected, flagMsg, ssfi, true).is.numeric;
|
|
9659
|
-
const abs = /* @__PURE__ */ __name((
|
|
9616
|
+
const abs = /* @__PURE__ */ __name((x2) => x2 < 0n ? -x2 : x2, "abs");
|
|
9660
9617
|
const strip = /* @__PURE__ */ __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
|
|
9661
9618
|
this.assert(
|
|
9662
9619
|
strip(abs(obj - expected)) <= delta,
|
|
@@ -10068,12 +10025,12 @@ function loadShould() {
|
|
|
10068
10025
|
__name(loadShould, "loadShould");
|
|
10069
10026
|
var should = loadShould;
|
|
10070
10027
|
var Should = loadShould;
|
|
10071
|
-
function
|
|
10072
|
-
let test22 = new Assertion(null, null,
|
|
10028
|
+
function assert2(express, errmsg) {
|
|
10029
|
+
let test22 = new Assertion(null, null, assert2, true);
|
|
10073
10030
|
test22.assert(express, errmsg, "[ negation message unavailable ]");
|
|
10074
10031
|
}
|
|
10075
|
-
__name(
|
|
10076
|
-
|
|
10032
|
+
__name(assert2, "assert");
|
|
10033
|
+
assert2.fail = function(actual, expected, message, operator) {
|
|
10077
10034
|
if (arguments.length < 2) {
|
|
10078
10035
|
message = actual;
|
|
10079
10036
|
actual = void 0;
|
|
@@ -10086,17 +10043,17 @@ assert3.fail = function(actual, expected, message, operator) {
|
|
|
10086
10043
|
expected,
|
|
10087
10044
|
operator
|
|
10088
10045
|
},
|
|
10089
|
-
|
|
10046
|
+
assert2.fail
|
|
10090
10047
|
);
|
|
10091
10048
|
};
|
|
10092
|
-
|
|
10093
|
-
new Assertion(val, msg,
|
|
10049
|
+
assert2.isOk = function(val, msg) {
|
|
10050
|
+
new Assertion(val, msg, assert2.isOk, true).is.ok;
|
|
10094
10051
|
};
|
|
10095
|
-
|
|
10096
|
-
new Assertion(val, msg,
|
|
10052
|
+
assert2.isNotOk = function(val, msg) {
|
|
10053
|
+
new Assertion(val, msg, assert2.isNotOk, true).is.not.ok;
|
|
10097
10054
|
};
|
|
10098
|
-
|
|
10099
|
-
let test22 = new Assertion(act, msg,
|
|
10055
|
+
assert2.equal = function(act, exp, msg) {
|
|
10056
|
+
let test22 = new Assertion(act, msg, assert2.equal, true);
|
|
10100
10057
|
test22.assert(
|
|
10101
10058
|
exp == flag(test22, "object"),
|
|
10102
10059
|
"expected #{this} to equal #{exp}",
|
|
@@ -10106,8 +10063,8 @@ assert3.equal = function(act, exp, msg) {
|
|
|
10106
10063
|
true
|
|
10107
10064
|
);
|
|
10108
10065
|
};
|
|
10109
|
-
|
|
10110
|
-
let test22 = new Assertion(act, msg,
|
|
10066
|
+
assert2.notEqual = function(act, exp, msg) {
|
|
10067
|
+
let test22 = new Assertion(act, msg, assert2.notEqual, true);
|
|
10111
10068
|
test22.assert(
|
|
10112
10069
|
exp != flag(test22, "object"),
|
|
10113
10070
|
"expected #{this} to not equal #{exp}",
|
|
@@ -10117,370 +10074,370 @@ assert3.notEqual = function(act, exp, msg) {
|
|
|
10117
10074
|
true
|
|
10118
10075
|
);
|
|
10119
10076
|
};
|
|
10120
|
-
|
|
10121
|
-
new Assertion(act, msg,
|
|
10077
|
+
assert2.strictEqual = function(act, exp, msg) {
|
|
10078
|
+
new Assertion(act, msg, assert2.strictEqual, true).to.equal(exp);
|
|
10122
10079
|
};
|
|
10123
|
-
|
|
10124
|
-
new Assertion(act, msg,
|
|
10080
|
+
assert2.notStrictEqual = function(act, exp, msg) {
|
|
10081
|
+
new Assertion(act, msg, assert2.notStrictEqual, true).to.not.equal(exp);
|
|
10125
10082
|
};
|
|
10126
|
-
|
|
10127
|
-
new Assertion(act, msg,
|
|
10083
|
+
assert2.deepEqual = assert2.deepStrictEqual = function(act, exp, msg) {
|
|
10084
|
+
new Assertion(act, msg, assert2.deepEqual, true).to.eql(exp);
|
|
10128
10085
|
};
|
|
10129
|
-
|
|
10130
|
-
new Assertion(act, msg,
|
|
10086
|
+
assert2.notDeepEqual = function(act, exp, msg) {
|
|
10087
|
+
new Assertion(act, msg, assert2.notDeepEqual, true).to.not.eql(exp);
|
|
10131
10088
|
};
|
|
10132
|
-
|
|
10133
|
-
new Assertion(val, msg,
|
|
10089
|
+
assert2.isAbove = function(val, abv, msg) {
|
|
10090
|
+
new Assertion(val, msg, assert2.isAbove, true).to.be.above(abv);
|
|
10134
10091
|
};
|
|
10135
|
-
|
|
10136
|
-
new Assertion(val, msg,
|
|
10092
|
+
assert2.isAtLeast = function(val, atlst, msg) {
|
|
10093
|
+
new Assertion(val, msg, assert2.isAtLeast, true).to.be.least(atlst);
|
|
10137
10094
|
};
|
|
10138
|
-
|
|
10139
|
-
new Assertion(val, msg,
|
|
10095
|
+
assert2.isBelow = function(val, blw, msg) {
|
|
10096
|
+
new Assertion(val, msg, assert2.isBelow, true).to.be.below(blw);
|
|
10140
10097
|
};
|
|
10141
|
-
|
|
10142
|
-
new Assertion(val, msg,
|
|
10098
|
+
assert2.isAtMost = function(val, atmst, msg) {
|
|
10099
|
+
new Assertion(val, msg, assert2.isAtMost, true).to.be.most(atmst);
|
|
10143
10100
|
};
|
|
10144
|
-
|
|
10145
|
-
new Assertion(val, msg,
|
|
10101
|
+
assert2.isTrue = function(val, msg) {
|
|
10102
|
+
new Assertion(val, msg, assert2.isTrue, true).is["true"];
|
|
10146
10103
|
};
|
|
10147
|
-
|
|
10148
|
-
new Assertion(val, msg,
|
|
10104
|
+
assert2.isNotTrue = function(val, msg) {
|
|
10105
|
+
new Assertion(val, msg, assert2.isNotTrue, true).to.not.equal(true);
|
|
10149
10106
|
};
|
|
10150
|
-
|
|
10151
|
-
new Assertion(val, msg,
|
|
10107
|
+
assert2.isFalse = function(val, msg) {
|
|
10108
|
+
new Assertion(val, msg, assert2.isFalse, true).is["false"];
|
|
10152
10109
|
};
|
|
10153
|
-
|
|
10154
|
-
new Assertion(val, msg,
|
|
10110
|
+
assert2.isNotFalse = function(val, msg) {
|
|
10111
|
+
new Assertion(val, msg, assert2.isNotFalse, true).to.not.equal(false);
|
|
10155
10112
|
};
|
|
10156
|
-
|
|
10157
|
-
new Assertion(val, msg,
|
|
10113
|
+
assert2.isNull = function(val, msg) {
|
|
10114
|
+
new Assertion(val, msg, assert2.isNull, true).to.equal(null);
|
|
10158
10115
|
};
|
|
10159
|
-
|
|
10160
|
-
new Assertion(val, msg,
|
|
10116
|
+
assert2.isNotNull = function(val, msg) {
|
|
10117
|
+
new Assertion(val, msg, assert2.isNotNull, true).to.not.equal(null);
|
|
10161
10118
|
};
|
|
10162
|
-
|
|
10163
|
-
new Assertion(val, msg,
|
|
10119
|
+
assert2.isNaN = function(val, msg) {
|
|
10120
|
+
new Assertion(val, msg, assert2.isNaN, true).to.be.NaN;
|
|
10164
10121
|
};
|
|
10165
|
-
|
|
10166
|
-
new Assertion(value, message,
|
|
10122
|
+
assert2.isNotNaN = function(value, message) {
|
|
10123
|
+
new Assertion(value, message, assert2.isNotNaN, true).not.to.be.NaN;
|
|
10167
10124
|
};
|
|
10168
|
-
|
|
10169
|
-
new Assertion(val, msg,
|
|
10125
|
+
assert2.exists = function(val, msg) {
|
|
10126
|
+
new Assertion(val, msg, assert2.exists, true).to.exist;
|
|
10170
10127
|
};
|
|
10171
|
-
|
|
10172
|
-
new Assertion(val, msg,
|
|
10128
|
+
assert2.notExists = function(val, msg) {
|
|
10129
|
+
new Assertion(val, msg, assert2.notExists, true).to.not.exist;
|
|
10173
10130
|
};
|
|
10174
|
-
|
|
10175
|
-
new Assertion(val, msg,
|
|
10131
|
+
assert2.isUndefined = function(val, msg) {
|
|
10132
|
+
new Assertion(val, msg, assert2.isUndefined, true).to.equal(void 0);
|
|
10176
10133
|
};
|
|
10177
|
-
|
|
10178
|
-
new Assertion(val, msg,
|
|
10134
|
+
assert2.isDefined = function(val, msg) {
|
|
10135
|
+
new Assertion(val, msg, assert2.isDefined, true).to.not.equal(void 0);
|
|
10179
10136
|
};
|
|
10180
|
-
|
|
10181
|
-
new Assertion(value, message,
|
|
10137
|
+
assert2.isCallable = function(value, message) {
|
|
10138
|
+
new Assertion(value, message, assert2.isCallable, true).is.callable;
|
|
10182
10139
|
};
|
|
10183
|
-
|
|
10184
|
-
new Assertion(value, message,
|
|
10140
|
+
assert2.isNotCallable = function(value, message) {
|
|
10141
|
+
new Assertion(value, message, assert2.isNotCallable, true).is.not.callable;
|
|
10185
10142
|
};
|
|
10186
|
-
|
|
10187
|
-
new Assertion(val, msg,
|
|
10143
|
+
assert2.isObject = function(val, msg) {
|
|
10144
|
+
new Assertion(val, msg, assert2.isObject, true).to.be.a("object");
|
|
10188
10145
|
};
|
|
10189
|
-
|
|
10190
|
-
new Assertion(val, msg,
|
|
10146
|
+
assert2.isNotObject = function(val, msg) {
|
|
10147
|
+
new Assertion(val, msg, assert2.isNotObject, true).to.not.be.a("object");
|
|
10191
10148
|
};
|
|
10192
|
-
|
|
10193
|
-
new Assertion(val, msg,
|
|
10149
|
+
assert2.isArray = function(val, msg) {
|
|
10150
|
+
new Assertion(val, msg, assert2.isArray, true).to.be.an("array");
|
|
10194
10151
|
};
|
|
10195
|
-
|
|
10196
|
-
new Assertion(val, msg,
|
|
10152
|
+
assert2.isNotArray = function(val, msg) {
|
|
10153
|
+
new Assertion(val, msg, assert2.isNotArray, true).to.not.be.an("array");
|
|
10197
10154
|
};
|
|
10198
|
-
|
|
10199
|
-
new Assertion(val, msg,
|
|
10155
|
+
assert2.isString = function(val, msg) {
|
|
10156
|
+
new Assertion(val, msg, assert2.isString, true).to.be.a("string");
|
|
10200
10157
|
};
|
|
10201
|
-
|
|
10202
|
-
new Assertion(val, msg,
|
|
10158
|
+
assert2.isNotString = function(val, msg) {
|
|
10159
|
+
new Assertion(val, msg, assert2.isNotString, true).to.not.be.a("string");
|
|
10203
10160
|
};
|
|
10204
|
-
|
|
10205
|
-
new Assertion(val, msg,
|
|
10161
|
+
assert2.isNumber = function(val, msg) {
|
|
10162
|
+
new Assertion(val, msg, assert2.isNumber, true).to.be.a("number");
|
|
10206
10163
|
};
|
|
10207
|
-
|
|
10208
|
-
new Assertion(val, msg,
|
|
10164
|
+
assert2.isNotNumber = function(val, msg) {
|
|
10165
|
+
new Assertion(val, msg, assert2.isNotNumber, true).to.not.be.a("number");
|
|
10209
10166
|
};
|
|
10210
|
-
|
|
10211
|
-
new Assertion(val, msg,
|
|
10167
|
+
assert2.isNumeric = function(val, msg) {
|
|
10168
|
+
new Assertion(val, msg, assert2.isNumeric, true).is.numeric;
|
|
10212
10169
|
};
|
|
10213
|
-
|
|
10214
|
-
new Assertion(val, msg,
|
|
10170
|
+
assert2.isNotNumeric = function(val, msg) {
|
|
10171
|
+
new Assertion(val, msg, assert2.isNotNumeric, true).is.not.numeric;
|
|
10215
10172
|
};
|
|
10216
|
-
|
|
10217
|
-
new Assertion(val, msg,
|
|
10173
|
+
assert2.isFinite = function(val, msg) {
|
|
10174
|
+
new Assertion(val, msg, assert2.isFinite, true).to.be.finite;
|
|
10218
10175
|
};
|
|
10219
|
-
|
|
10220
|
-
new Assertion(val, msg,
|
|
10176
|
+
assert2.isBoolean = function(val, msg) {
|
|
10177
|
+
new Assertion(val, msg, assert2.isBoolean, true).to.be.a("boolean");
|
|
10221
10178
|
};
|
|
10222
|
-
|
|
10223
|
-
new Assertion(val, msg,
|
|
10179
|
+
assert2.isNotBoolean = function(val, msg) {
|
|
10180
|
+
new Assertion(val, msg, assert2.isNotBoolean, true).to.not.be.a("boolean");
|
|
10224
10181
|
};
|
|
10225
|
-
|
|
10226
|
-
new Assertion(val, msg,
|
|
10182
|
+
assert2.typeOf = function(val, type3, msg) {
|
|
10183
|
+
new Assertion(val, msg, assert2.typeOf, true).to.be.a(type3);
|
|
10227
10184
|
};
|
|
10228
|
-
|
|
10229
|
-
new Assertion(value, message,
|
|
10185
|
+
assert2.notTypeOf = function(value, type3, message) {
|
|
10186
|
+
new Assertion(value, message, assert2.notTypeOf, true).to.not.be.a(type3);
|
|
10230
10187
|
};
|
|
10231
|
-
|
|
10232
|
-
new Assertion(val, msg,
|
|
10188
|
+
assert2.instanceOf = function(val, type3, msg) {
|
|
10189
|
+
new Assertion(val, msg, assert2.instanceOf, true).to.be.instanceOf(type3);
|
|
10233
10190
|
};
|
|
10234
|
-
|
|
10235
|
-
new Assertion(val, msg,
|
|
10191
|
+
assert2.notInstanceOf = function(val, type3, msg) {
|
|
10192
|
+
new Assertion(val, msg, assert2.notInstanceOf, true).to.not.be.instanceOf(
|
|
10236
10193
|
type3
|
|
10237
10194
|
);
|
|
10238
10195
|
};
|
|
10239
|
-
|
|
10240
|
-
new Assertion(exp, msg,
|
|
10196
|
+
assert2.include = function(exp, inc, msg) {
|
|
10197
|
+
new Assertion(exp, msg, assert2.include, true).include(inc);
|
|
10241
10198
|
};
|
|
10242
|
-
|
|
10243
|
-
new Assertion(exp, msg,
|
|
10199
|
+
assert2.notInclude = function(exp, inc, msg) {
|
|
10200
|
+
new Assertion(exp, msg, assert2.notInclude, true).not.include(inc);
|
|
10244
10201
|
};
|
|
10245
|
-
|
|
10246
|
-
new Assertion(exp, msg,
|
|
10202
|
+
assert2.deepInclude = function(exp, inc, msg) {
|
|
10203
|
+
new Assertion(exp, msg, assert2.deepInclude, true).deep.include(inc);
|
|
10247
10204
|
};
|
|
10248
|
-
|
|
10249
|
-
new Assertion(exp, msg,
|
|
10205
|
+
assert2.notDeepInclude = function(exp, inc, msg) {
|
|
10206
|
+
new Assertion(exp, msg, assert2.notDeepInclude, true).not.deep.include(inc);
|
|
10250
10207
|
};
|
|
10251
|
-
|
|
10252
|
-
new Assertion(exp, msg,
|
|
10208
|
+
assert2.nestedInclude = function(exp, inc, msg) {
|
|
10209
|
+
new Assertion(exp, msg, assert2.nestedInclude, true).nested.include(inc);
|
|
10253
10210
|
};
|
|
10254
|
-
|
|
10255
|
-
new Assertion(exp, msg,
|
|
10211
|
+
assert2.notNestedInclude = function(exp, inc, msg) {
|
|
10212
|
+
new Assertion(exp, msg, assert2.notNestedInclude, true).not.nested.include(
|
|
10256
10213
|
inc
|
|
10257
10214
|
);
|
|
10258
10215
|
};
|
|
10259
|
-
|
|
10260
|
-
new Assertion(exp, msg,
|
|
10216
|
+
assert2.deepNestedInclude = function(exp, inc, msg) {
|
|
10217
|
+
new Assertion(exp, msg, assert2.deepNestedInclude, true).deep.nested.include(
|
|
10261
10218
|
inc
|
|
10262
10219
|
);
|
|
10263
10220
|
};
|
|
10264
|
-
|
|
10221
|
+
assert2.notDeepNestedInclude = function(exp, inc, msg) {
|
|
10265
10222
|
new Assertion(
|
|
10266
10223
|
exp,
|
|
10267
10224
|
msg,
|
|
10268
|
-
|
|
10225
|
+
assert2.notDeepNestedInclude,
|
|
10269
10226
|
true
|
|
10270
10227
|
).not.deep.nested.include(inc);
|
|
10271
10228
|
};
|
|
10272
|
-
|
|
10273
|
-
new Assertion(exp, msg,
|
|
10229
|
+
assert2.ownInclude = function(exp, inc, msg) {
|
|
10230
|
+
new Assertion(exp, msg, assert2.ownInclude, true).own.include(inc);
|
|
10274
10231
|
};
|
|
10275
|
-
|
|
10276
|
-
new Assertion(exp, msg,
|
|
10232
|
+
assert2.notOwnInclude = function(exp, inc, msg) {
|
|
10233
|
+
new Assertion(exp, msg, assert2.notOwnInclude, true).not.own.include(inc);
|
|
10277
10234
|
};
|
|
10278
|
-
|
|
10279
|
-
new Assertion(exp, msg,
|
|
10235
|
+
assert2.deepOwnInclude = function(exp, inc, msg) {
|
|
10236
|
+
new Assertion(exp, msg, assert2.deepOwnInclude, true).deep.own.include(inc);
|
|
10280
10237
|
};
|
|
10281
|
-
|
|
10282
|
-
new Assertion(exp, msg,
|
|
10238
|
+
assert2.notDeepOwnInclude = function(exp, inc, msg) {
|
|
10239
|
+
new Assertion(exp, msg, assert2.notDeepOwnInclude, true).not.deep.own.include(
|
|
10283
10240
|
inc
|
|
10284
10241
|
);
|
|
10285
10242
|
};
|
|
10286
|
-
|
|
10287
|
-
new Assertion(exp, msg,
|
|
10243
|
+
assert2.match = function(exp, re, msg) {
|
|
10244
|
+
new Assertion(exp, msg, assert2.match, true).to.match(re);
|
|
10288
10245
|
};
|
|
10289
|
-
|
|
10290
|
-
new Assertion(exp, msg,
|
|
10246
|
+
assert2.notMatch = function(exp, re, msg) {
|
|
10247
|
+
new Assertion(exp, msg, assert2.notMatch, true).to.not.match(re);
|
|
10291
10248
|
};
|
|
10292
|
-
|
|
10293
|
-
new Assertion(obj, msg,
|
|
10249
|
+
assert2.property = function(obj, prop, msg) {
|
|
10250
|
+
new Assertion(obj, msg, assert2.property, true).to.have.property(prop);
|
|
10294
10251
|
};
|
|
10295
|
-
|
|
10296
|
-
new Assertion(obj, msg,
|
|
10252
|
+
assert2.notProperty = function(obj, prop, msg) {
|
|
10253
|
+
new Assertion(obj, msg, assert2.notProperty, true).to.not.have.property(prop);
|
|
10297
10254
|
};
|
|
10298
|
-
|
|
10299
|
-
new Assertion(obj, msg,
|
|
10255
|
+
assert2.propertyVal = function(obj, prop, val, msg) {
|
|
10256
|
+
new Assertion(obj, msg, assert2.propertyVal, true).to.have.property(prop, val);
|
|
10300
10257
|
};
|
|
10301
|
-
|
|
10302
|
-
new Assertion(obj, msg,
|
|
10258
|
+
assert2.notPropertyVal = function(obj, prop, val, msg) {
|
|
10259
|
+
new Assertion(obj, msg, assert2.notPropertyVal, true).to.not.have.property(
|
|
10303
10260
|
prop,
|
|
10304
10261
|
val
|
|
10305
10262
|
);
|
|
10306
10263
|
};
|
|
10307
|
-
|
|
10308
|
-
new Assertion(obj, msg,
|
|
10264
|
+
assert2.deepPropertyVal = function(obj, prop, val, msg) {
|
|
10265
|
+
new Assertion(obj, msg, assert2.deepPropertyVal, true).to.have.deep.property(
|
|
10309
10266
|
prop,
|
|
10310
10267
|
val
|
|
10311
10268
|
);
|
|
10312
10269
|
};
|
|
10313
|
-
|
|
10270
|
+
assert2.notDeepPropertyVal = function(obj, prop, val, msg) {
|
|
10314
10271
|
new Assertion(
|
|
10315
10272
|
obj,
|
|
10316
10273
|
msg,
|
|
10317
|
-
|
|
10274
|
+
assert2.notDeepPropertyVal,
|
|
10318
10275
|
true
|
|
10319
10276
|
).to.not.have.deep.property(prop, val);
|
|
10320
10277
|
};
|
|
10321
|
-
|
|
10322
|
-
new Assertion(obj, msg,
|
|
10278
|
+
assert2.ownProperty = function(obj, prop, msg) {
|
|
10279
|
+
new Assertion(obj, msg, assert2.ownProperty, true).to.have.own.property(prop);
|
|
10323
10280
|
};
|
|
10324
|
-
|
|
10325
|
-
new Assertion(obj, msg,
|
|
10281
|
+
assert2.notOwnProperty = function(obj, prop, msg) {
|
|
10282
|
+
new Assertion(obj, msg, assert2.notOwnProperty, true).to.not.have.own.property(
|
|
10326
10283
|
prop
|
|
10327
10284
|
);
|
|
10328
10285
|
};
|
|
10329
|
-
|
|
10330
|
-
new Assertion(obj, msg,
|
|
10286
|
+
assert2.ownPropertyVal = function(obj, prop, value, msg) {
|
|
10287
|
+
new Assertion(obj, msg, assert2.ownPropertyVal, true).to.have.own.property(
|
|
10331
10288
|
prop,
|
|
10332
10289
|
value
|
|
10333
10290
|
);
|
|
10334
10291
|
};
|
|
10335
|
-
|
|
10292
|
+
assert2.notOwnPropertyVal = function(obj, prop, value, msg) {
|
|
10336
10293
|
new Assertion(
|
|
10337
10294
|
obj,
|
|
10338
10295
|
msg,
|
|
10339
|
-
|
|
10296
|
+
assert2.notOwnPropertyVal,
|
|
10340
10297
|
true
|
|
10341
10298
|
).to.not.have.own.property(prop, value);
|
|
10342
10299
|
};
|
|
10343
|
-
|
|
10300
|
+
assert2.deepOwnPropertyVal = function(obj, prop, value, msg) {
|
|
10344
10301
|
new Assertion(
|
|
10345
10302
|
obj,
|
|
10346
10303
|
msg,
|
|
10347
|
-
|
|
10304
|
+
assert2.deepOwnPropertyVal,
|
|
10348
10305
|
true
|
|
10349
10306
|
).to.have.deep.own.property(prop, value);
|
|
10350
10307
|
};
|
|
10351
|
-
|
|
10308
|
+
assert2.notDeepOwnPropertyVal = function(obj, prop, value, msg) {
|
|
10352
10309
|
new Assertion(
|
|
10353
10310
|
obj,
|
|
10354
10311
|
msg,
|
|
10355
|
-
|
|
10312
|
+
assert2.notDeepOwnPropertyVal,
|
|
10356
10313
|
true
|
|
10357
10314
|
).to.not.have.deep.own.property(prop, value);
|
|
10358
10315
|
};
|
|
10359
|
-
|
|
10360
|
-
new Assertion(obj, msg,
|
|
10316
|
+
assert2.nestedProperty = function(obj, prop, msg) {
|
|
10317
|
+
new Assertion(obj, msg, assert2.nestedProperty, true).to.have.nested.property(
|
|
10361
10318
|
prop
|
|
10362
10319
|
);
|
|
10363
10320
|
};
|
|
10364
|
-
|
|
10321
|
+
assert2.notNestedProperty = function(obj, prop, msg) {
|
|
10365
10322
|
new Assertion(
|
|
10366
10323
|
obj,
|
|
10367
10324
|
msg,
|
|
10368
|
-
|
|
10325
|
+
assert2.notNestedProperty,
|
|
10369
10326
|
true
|
|
10370
10327
|
).to.not.have.nested.property(prop);
|
|
10371
10328
|
};
|
|
10372
|
-
|
|
10329
|
+
assert2.nestedPropertyVal = function(obj, prop, val, msg) {
|
|
10373
10330
|
new Assertion(
|
|
10374
10331
|
obj,
|
|
10375
10332
|
msg,
|
|
10376
|
-
|
|
10333
|
+
assert2.nestedPropertyVal,
|
|
10377
10334
|
true
|
|
10378
10335
|
).to.have.nested.property(prop, val);
|
|
10379
10336
|
};
|
|
10380
|
-
|
|
10337
|
+
assert2.notNestedPropertyVal = function(obj, prop, val, msg) {
|
|
10381
10338
|
new Assertion(
|
|
10382
10339
|
obj,
|
|
10383
10340
|
msg,
|
|
10384
|
-
|
|
10341
|
+
assert2.notNestedPropertyVal,
|
|
10385
10342
|
true
|
|
10386
10343
|
).to.not.have.nested.property(prop, val);
|
|
10387
10344
|
};
|
|
10388
|
-
|
|
10345
|
+
assert2.deepNestedPropertyVal = function(obj, prop, val, msg) {
|
|
10389
10346
|
new Assertion(
|
|
10390
10347
|
obj,
|
|
10391
10348
|
msg,
|
|
10392
|
-
|
|
10349
|
+
assert2.deepNestedPropertyVal,
|
|
10393
10350
|
true
|
|
10394
10351
|
).to.have.deep.nested.property(prop, val);
|
|
10395
10352
|
};
|
|
10396
|
-
|
|
10353
|
+
assert2.notDeepNestedPropertyVal = function(obj, prop, val, msg) {
|
|
10397
10354
|
new Assertion(
|
|
10398
10355
|
obj,
|
|
10399
10356
|
msg,
|
|
10400
|
-
|
|
10357
|
+
assert2.notDeepNestedPropertyVal,
|
|
10401
10358
|
true
|
|
10402
10359
|
).to.not.have.deep.nested.property(prop, val);
|
|
10403
10360
|
};
|
|
10404
|
-
|
|
10405
|
-
new Assertion(exp, msg,
|
|
10361
|
+
assert2.lengthOf = function(exp, len, msg) {
|
|
10362
|
+
new Assertion(exp, msg, assert2.lengthOf, true).to.have.lengthOf(len);
|
|
10406
10363
|
};
|
|
10407
|
-
|
|
10408
|
-
new Assertion(obj, msg,
|
|
10364
|
+
assert2.hasAnyKeys = function(obj, keys2, msg) {
|
|
10365
|
+
new Assertion(obj, msg, assert2.hasAnyKeys, true).to.have.any.keys(keys2);
|
|
10409
10366
|
};
|
|
10410
|
-
|
|
10411
|
-
new Assertion(obj, msg,
|
|
10367
|
+
assert2.hasAllKeys = function(obj, keys2, msg) {
|
|
10368
|
+
new Assertion(obj, msg, assert2.hasAllKeys, true).to.have.all.keys(keys2);
|
|
10412
10369
|
};
|
|
10413
|
-
|
|
10414
|
-
new Assertion(obj, msg,
|
|
10370
|
+
assert2.containsAllKeys = function(obj, keys2, msg) {
|
|
10371
|
+
new Assertion(obj, msg, assert2.containsAllKeys, true).to.contain.all.keys(
|
|
10415
10372
|
keys2
|
|
10416
10373
|
);
|
|
10417
10374
|
};
|
|
10418
|
-
|
|
10419
|
-
new Assertion(obj, msg,
|
|
10375
|
+
assert2.doesNotHaveAnyKeys = function(obj, keys2, msg) {
|
|
10376
|
+
new Assertion(obj, msg, assert2.doesNotHaveAnyKeys, true).to.not.have.any.keys(
|
|
10420
10377
|
keys2
|
|
10421
10378
|
);
|
|
10422
10379
|
};
|
|
10423
|
-
|
|
10424
|
-
new Assertion(obj, msg,
|
|
10380
|
+
assert2.doesNotHaveAllKeys = function(obj, keys2, msg) {
|
|
10381
|
+
new Assertion(obj, msg, assert2.doesNotHaveAllKeys, true).to.not.have.all.keys(
|
|
10425
10382
|
keys2
|
|
10426
10383
|
);
|
|
10427
10384
|
};
|
|
10428
|
-
|
|
10429
|
-
new Assertion(obj, msg,
|
|
10385
|
+
assert2.hasAnyDeepKeys = function(obj, keys2, msg) {
|
|
10386
|
+
new Assertion(obj, msg, assert2.hasAnyDeepKeys, true).to.have.any.deep.keys(
|
|
10430
10387
|
keys2
|
|
10431
10388
|
);
|
|
10432
10389
|
};
|
|
10433
|
-
|
|
10434
|
-
new Assertion(obj, msg,
|
|
10390
|
+
assert2.hasAllDeepKeys = function(obj, keys2, msg) {
|
|
10391
|
+
new Assertion(obj, msg, assert2.hasAllDeepKeys, true).to.have.all.deep.keys(
|
|
10435
10392
|
keys2
|
|
10436
10393
|
);
|
|
10437
10394
|
};
|
|
10438
|
-
|
|
10395
|
+
assert2.containsAllDeepKeys = function(obj, keys2, msg) {
|
|
10439
10396
|
new Assertion(
|
|
10440
10397
|
obj,
|
|
10441
10398
|
msg,
|
|
10442
|
-
|
|
10399
|
+
assert2.containsAllDeepKeys,
|
|
10443
10400
|
true
|
|
10444
10401
|
).to.contain.all.deep.keys(keys2);
|
|
10445
10402
|
};
|
|
10446
|
-
|
|
10403
|
+
assert2.doesNotHaveAnyDeepKeys = function(obj, keys2, msg) {
|
|
10447
10404
|
new Assertion(
|
|
10448
10405
|
obj,
|
|
10449
10406
|
msg,
|
|
10450
|
-
|
|
10407
|
+
assert2.doesNotHaveAnyDeepKeys,
|
|
10451
10408
|
true
|
|
10452
10409
|
).to.not.have.any.deep.keys(keys2);
|
|
10453
10410
|
};
|
|
10454
|
-
|
|
10411
|
+
assert2.doesNotHaveAllDeepKeys = function(obj, keys2, msg) {
|
|
10455
10412
|
new Assertion(
|
|
10456
10413
|
obj,
|
|
10457
10414
|
msg,
|
|
10458
|
-
|
|
10415
|
+
assert2.doesNotHaveAllDeepKeys,
|
|
10459
10416
|
true
|
|
10460
10417
|
).to.not.have.all.deep.keys(keys2);
|
|
10461
10418
|
};
|
|
10462
|
-
|
|
10419
|
+
assert2.throws = function(fn2, errorLike, errMsgMatcher, msg) {
|
|
10463
10420
|
if ("string" === typeof errorLike || errorLike instanceof RegExp) {
|
|
10464
10421
|
errMsgMatcher = errorLike;
|
|
10465
10422
|
errorLike = null;
|
|
10466
10423
|
}
|
|
10467
|
-
let assertErr = new Assertion(fn2, msg,
|
|
10424
|
+
let assertErr = new Assertion(fn2, msg, assert2.throws, true).to.throw(
|
|
10468
10425
|
errorLike,
|
|
10469
10426
|
errMsgMatcher
|
|
10470
10427
|
);
|
|
10471
10428
|
return flag(assertErr, "object");
|
|
10472
10429
|
};
|
|
10473
|
-
|
|
10430
|
+
assert2.doesNotThrow = function(fn2, errorLike, errMsgMatcher, message) {
|
|
10474
10431
|
if ("string" === typeof errorLike || errorLike instanceof RegExp) {
|
|
10475
10432
|
errMsgMatcher = errorLike;
|
|
10476
10433
|
errorLike = null;
|
|
10477
10434
|
}
|
|
10478
|
-
new Assertion(fn2, message,
|
|
10435
|
+
new Assertion(fn2, message, assert2.doesNotThrow, true).to.not.throw(
|
|
10479
10436
|
errorLike,
|
|
10480
10437
|
errMsgMatcher
|
|
10481
10438
|
);
|
|
10482
10439
|
};
|
|
10483
|
-
|
|
10440
|
+
assert2.operator = function(val, operator, val2, msg) {
|
|
10484
10441
|
let ok;
|
|
10485
10442
|
switch (operator) {
|
|
10486
10443
|
case "==":
|
|
@@ -10512,162 +10469,162 @@ assert3.operator = function(val, operator, val2, msg) {
|
|
|
10512
10469
|
throw new AssertionError(
|
|
10513
10470
|
msg + 'Invalid operator "' + operator + '"',
|
|
10514
10471
|
void 0,
|
|
10515
|
-
|
|
10472
|
+
assert2.operator
|
|
10516
10473
|
);
|
|
10517
10474
|
}
|
|
10518
|
-
let test22 = new Assertion(ok, msg,
|
|
10475
|
+
let test22 = new Assertion(ok, msg, assert2.operator, true);
|
|
10519
10476
|
test22.assert(
|
|
10520
10477
|
true === flag(test22, "object"),
|
|
10521
10478
|
"expected " + inspect22(val) + " to be " + operator + " " + inspect22(val2),
|
|
10522
10479
|
"expected " + inspect22(val) + " to not be " + operator + " " + inspect22(val2)
|
|
10523
10480
|
);
|
|
10524
10481
|
};
|
|
10525
|
-
|
|
10526
|
-
new Assertion(act, msg,
|
|
10482
|
+
assert2.closeTo = function(act, exp, delta, msg) {
|
|
10483
|
+
new Assertion(act, msg, assert2.closeTo, true).to.be.closeTo(exp, delta);
|
|
10527
10484
|
};
|
|
10528
|
-
|
|
10529
|
-
new Assertion(act, msg,
|
|
10485
|
+
assert2.approximately = function(act, exp, delta, msg) {
|
|
10486
|
+
new Assertion(act, msg, assert2.approximately, true).to.be.approximately(
|
|
10530
10487
|
exp,
|
|
10531
10488
|
delta
|
|
10532
10489
|
);
|
|
10533
10490
|
};
|
|
10534
|
-
|
|
10535
|
-
new Assertion(set1, msg,
|
|
10491
|
+
assert2.sameMembers = function(set1, set22, msg) {
|
|
10492
|
+
new Assertion(set1, msg, assert2.sameMembers, true).to.have.same.members(set22);
|
|
10536
10493
|
};
|
|
10537
|
-
|
|
10494
|
+
assert2.notSameMembers = function(set1, set22, msg) {
|
|
10538
10495
|
new Assertion(
|
|
10539
10496
|
set1,
|
|
10540
10497
|
msg,
|
|
10541
|
-
|
|
10498
|
+
assert2.notSameMembers,
|
|
10542
10499
|
true
|
|
10543
10500
|
).to.not.have.same.members(set22);
|
|
10544
10501
|
};
|
|
10545
|
-
|
|
10502
|
+
assert2.sameDeepMembers = function(set1, set22, msg) {
|
|
10546
10503
|
new Assertion(
|
|
10547
10504
|
set1,
|
|
10548
10505
|
msg,
|
|
10549
|
-
|
|
10506
|
+
assert2.sameDeepMembers,
|
|
10550
10507
|
true
|
|
10551
10508
|
).to.have.same.deep.members(set22);
|
|
10552
10509
|
};
|
|
10553
|
-
|
|
10510
|
+
assert2.notSameDeepMembers = function(set1, set22, msg) {
|
|
10554
10511
|
new Assertion(
|
|
10555
10512
|
set1,
|
|
10556
10513
|
msg,
|
|
10557
|
-
|
|
10514
|
+
assert2.notSameDeepMembers,
|
|
10558
10515
|
true
|
|
10559
10516
|
).to.not.have.same.deep.members(set22);
|
|
10560
10517
|
};
|
|
10561
|
-
|
|
10518
|
+
assert2.sameOrderedMembers = function(set1, set22, msg) {
|
|
10562
10519
|
new Assertion(
|
|
10563
10520
|
set1,
|
|
10564
10521
|
msg,
|
|
10565
|
-
|
|
10522
|
+
assert2.sameOrderedMembers,
|
|
10566
10523
|
true
|
|
10567
10524
|
).to.have.same.ordered.members(set22);
|
|
10568
10525
|
};
|
|
10569
|
-
|
|
10526
|
+
assert2.notSameOrderedMembers = function(set1, set22, msg) {
|
|
10570
10527
|
new Assertion(
|
|
10571
10528
|
set1,
|
|
10572
10529
|
msg,
|
|
10573
|
-
|
|
10530
|
+
assert2.notSameOrderedMembers,
|
|
10574
10531
|
true
|
|
10575
10532
|
).to.not.have.same.ordered.members(set22);
|
|
10576
10533
|
};
|
|
10577
|
-
|
|
10534
|
+
assert2.sameDeepOrderedMembers = function(set1, set22, msg) {
|
|
10578
10535
|
new Assertion(
|
|
10579
10536
|
set1,
|
|
10580
10537
|
msg,
|
|
10581
|
-
|
|
10538
|
+
assert2.sameDeepOrderedMembers,
|
|
10582
10539
|
true
|
|
10583
10540
|
).to.have.same.deep.ordered.members(set22);
|
|
10584
10541
|
};
|
|
10585
|
-
|
|
10542
|
+
assert2.notSameDeepOrderedMembers = function(set1, set22, msg) {
|
|
10586
10543
|
new Assertion(
|
|
10587
10544
|
set1,
|
|
10588
10545
|
msg,
|
|
10589
|
-
|
|
10546
|
+
assert2.notSameDeepOrderedMembers,
|
|
10590
10547
|
true
|
|
10591
10548
|
).to.not.have.same.deep.ordered.members(set22);
|
|
10592
10549
|
};
|
|
10593
|
-
|
|
10594
|
-
new Assertion(superset, msg,
|
|
10550
|
+
assert2.includeMembers = function(superset, subset, msg) {
|
|
10551
|
+
new Assertion(superset, msg, assert2.includeMembers, true).to.include.members(
|
|
10595
10552
|
subset
|
|
10596
10553
|
);
|
|
10597
10554
|
};
|
|
10598
|
-
|
|
10555
|
+
assert2.notIncludeMembers = function(superset, subset, msg) {
|
|
10599
10556
|
new Assertion(
|
|
10600
10557
|
superset,
|
|
10601
10558
|
msg,
|
|
10602
|
-
|
|
10559
|
+
assert2.notIncludeMembers,
|
|
10603
10560
|
true
|
|
10604
10561
|
).to.not.include.members(subset);
|
|
10605
10562
|
};
|
|
10606
|
-
|
|
10563
|
+
assert2.includeDeepMembers = function(superset, subset, msg) {
|
|
10607
10564
|
new Assertion(
|
|
10608
10565
|
superset,
|
|
10609
10566
|
msg,
|
|
10610
|
-
|
|
10567
|
+
assert2.includeDeepMembers,
|
|
10611
10568
|
true
|
|
10612
10569
|
).to.include.deep.members(subset);
|
|
10613
10570
|
};
|
|
10614
|
-
|
|
10571
|
+
assert2.notIncludeDeepMembers = function(superset, subset, msg) {
|
|
10615
10572
|
new Assertion(
|
|
10616
10573
|
superset,
|
|
10617
10574
|
msg,
|
|
10618
|
-
|
|
10575
|
+
assert2.notIncludeDeepMembers,
|
|
10619
10576
|
true
|
|
10620
10577
|
).to.not.include.deep.members(subset);
|
|
10621
10578
|
};
|
|
10622
|
-
|
|
10579
|
+
assert2.includeOrderedMembers = function(superset, subset, msg) {
|
|
10623
10580
|
new Assertion(
|
|
10624
10581
|
superset,
|
|
10625
10582
|
msg,
|
|
10626
|
-
|
|
10583
|
+
assert2.includeOrderedMembers,
|
|
10627
10584
|
true
|
|
10628
10585
|
).to.include.ordered.members(subset);
|
|
10629
10586
|
};
|
|
10630
|
-
|
|
10587
|
+
assert2.notIncludeOrderedMembers = function(superset, subset, msg) {
|
|
10631
10588
|
new Assertion(
|
|
10632
10589
|
superset,
|
|
10633
10590
|
msg,
|
|
10634
|
-
|
|
10591
|
+
assert2.notIncludeOrderedMembers,
|
|
10635
10592
|
true
|
|
10636
10593
|
).to.not.include.ordered.members(subset);
|
|
10637
10594
|
};
|
|
10638
|
-
|
|
10595
|
+
assert2.includeDeepOrderedMembers = function(superset, subset, msg) {
|
|
10639
10596
|
new Assertion(
|
|
10640
10597
|
superset,
|
|
10641
10598
|
msg,
|
|
10642
|
-
|
|
10599
|
+
assert2.includeDeepOrderedMembers,
|
|
10643
10600
|
true
|
|
10644
10601
|
).to.include.deep.ordered.members(subset);
|
|
10645
10602
|
};
|
|
10646
|
-
|
|
10603
|
+
assert2.notIncludeDeepOrderedMembers = function(superset, subset, msg) {
|
|
10647
10604
|
new Assertion(
|
|
10648
10605
|
superset,
|
|
10649
10606
|
msg,
|
|
10650
|
-
|
|
10607
|
+
assert2.notIncludeDeepOrderedMembers,
|
|
10651
10608
|
true
|
|
10652
10609
|
).to.not.include.deep.ordered.members(subset);
|
|
10653
10610
|
};
|
|
10654
|
-
|
|
10655
|
-
new Assertion(inList, msg,
|
|
10611
|
+
assert2.oneOf = function(inList, list, msg) {
|
|
10612
|
+
new Assertion(inList, msg, assert2.oneOf, true).to.be.oneOf(list);
|
|
10656
10613
|
};
|
|
10657
|
-
|
|
10614
|
+
assert2.isIterable = function(obj, msg) {
|
|
10658
10615
|
if (obj == void 0 || !obj[Symbol.iterator]) {
|
|
10659
10616
|
msg = msg ? `${msg} expected ${inspect22(obj)} to be an iterable` : `expected ${inspect22(obj)} to be an iterable`;
|
|
10660
|
-
throw new AssertionError(msg, void 0,
|
|
10617
|
+
throw new AssertionError(msg, void 0, assert2.isIterable);
|
|
10661
10618
|
}
|
|
10662
10619
|
};
|
|
10663
|
-
|
|
10620
|
+
assert2.changes = function(fn2, obj, prop, msg) {
|
|
10664
10621
|
if (arguments.length === 3 && typeof obj === "function") {
|
|
10665
10622
|
msg = prop;
|
|
10666
10623
|
prop = null;
|
|
10667
10624
|
}
|
|
10668
|
-
new Assertion(fn2, msg,
|
|
10625
|
+
new Assertion(fn2, msg, assert2.changes, true).to.change(obj, prop);
|
|
10669
10626
|
};
|
|
10670
|
-
|
|
10627
|
+
assert2.changesBy = function(fn2, obj, prop, delta, msg) {
|
|
10671
10628
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
10672
10629
|
let tmpMsg = delta;
|
|
10673
10630
|
delta = prop;
|
|
@@ -10676,19 +10633,19 @@ assert3.changesBy = function(fn2, obj, prop, delta, msg) {
|
|
|
10676
10633
|
delta = prop;
|
|
10677
10634
|
prop = null;
|
|
10678
10635
|
}
|
|
10679
|
-
new Assertion(fn2, msg,
|
|
10636
|
+
new Assertion(fn2, msg, assert2.changesBy, true).to.change(obj, prop).by(delta);
|
|
10680
10637
|
};
|
|
10681
|
-
|
|
10638
|
+
assert2.doesNotChange = function(fn2, obj, prop, msg) {
|
|
10682
10639
|
if (arguments.length === 3 && typeof obj === "function") {
|
|
10683
10640
|
msg = prop;
|
|
10684
10641
|
prop = null;
|
|
10685
10642
|
}
|
|
10686
|
-
return new Assertion(fn2, msg,
|
|
10643
|
+
return new Assertion(fn2, msg, assert2.doesNotChange, true).to.not.change(
|
|
10687
10644
|
obj,
|
|
10688
10645
|
prop
|
|
10689
10646
|
);
|
|
10690
10647
|
};
|
|
10691
|
-
|
|
10648
|
+
assert2.changesButNotBy = function(fn2, obj, prop, delta, msg) {
|
|
10692
10649
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
10693
10650
|
let tmpMsg = delta;
|
|
10694
10651
|
delta = prop;
|
|
@@ -10697,16 +10654,16 @@ assert3.changesButNotBy = function(fn2, obj, prop, delta, msg) {
|
|
|
10697
10654
|
delta = prop;
|
|
10698
10655
|
prop = null;
|
|
10699
10656
|
}
|
|
10700
|
-
new Assertion(fn2, msg,
|
|
10657
|
+
new Assertion(fn2, msg, assert2.changesButNotBy, true).to.change(obj, prop).but.not.by(delta);
|
|
10701
10658
|
};
|
|
10702
|
-
|
|
10659
|
+
assert2.increases = function(fn2, obj, prop, msg) {
|
|
10703
10660
|
if (arguments.length === 3 && typeof obj === "function") {
|
|
10704
10661
|
msg = prop;
|
|
10705
10662
|
prop = null;
|
|
10706
10663
|
}
|
|
10707
|
-
return new Assertion(fn2, msg,
|
|
10664
|
+
return new Assertion(fn2, msg, assert2.increases, true).to.increase(obj, prop);
|
|
10708
10665
|
};
|
|
10709
|
-
|
|
10666
|
+
assert2.increasesBy = function(fn2, obj, prop, delta, msg) {
|
|
10710
10667
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
10711
10668
|
let tmpMsg = delta;
|
|
10712
10669
|
delta = prop;
|
|
@@ -10715,19 +10672,19 @@ assert3.increasesBy = function(fn2, obj, prop, delta, msg) {
|
|
|
10715
10672
|
delta = prop;
|
|
10716
10673
|
prop = null;
|
|
10717
10674
|
}
|
|
10718
|
-
new Assertion(fn2, msg,
|
|
10675
|
+
new Assertion(fn2, msg, assert2.increasesBy, true).to.increase(obj, prop).by(delta);
|
|
10719
10676
|
};
|
|
10720
|
-
|
|
10677
|
+
assert2.doesNotIncrease = function(fn2, obj, prop, msg) {
|
|
10721
10678
|
if (arguments.length === 3 && typeof obj === "function") {
|
|
10722
10679
|
msg = prop;
|
|
10723
10680
|
prop = null;
|
|
10724
10681
|
}
|
|
10725
|
-
return new Assertion(fn2, msg,
|
|
10682
|
+
return new Assertion(fn2, msg, assert2.doesNotIncrease, true).to.not.increase(
|
|
10726
10683
|
obj,
|
|
10727
10684
|
prop
|
|
10728
10685
|
);
|
|
10729
10686
|
};
|
|
10730
|
-
|
|
10687
|
+
assert2.increasesButNotBy = function(fn2, obj, prop, delta, msg) {
|
|
10731
10688
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
10732
10689
|
let tmpMsg = delta;
|
|
10733
10690
|
delta = prop;
|
|
@@ -10736,16 +10693,16 @@ assert3.increasesButNotBy = function(fn2, obj, prop, delta, msg) {
|
|
|
10736
10693
|
delta = prop;
|
|
10737
10694
|
prop = null;
|
|
10738
10695
|
}
|
|
10739
|
-
new Assertion(fn2, msg,
|
|
10696
|
+
new Assertion(fn2, msg, assert2.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta);
|
|
10740
10697
|
};
|
|
10741
|
-
|
|
10698
|
+
assert2.decreases = function(fn2, obj, prop, msg) {
|
|
10742
10699
|
if (arguments.length === 3 && typeof obj === "function") {
|
|
10743
10700
|
msg = prop;
|
|
10744
10701
|
prop = null;
|
|
10745
10702
|
}
|
|
10746
|
-
return new Assertion(fn2, msg,
|
|
10703
|
+
return new Assertion(fn2, msg, assert2.decreases, true).to.decrease(obj, prop);
|
|
10747
10704
|
};
|
|
10748
|
-
|
|
10705
|
+
assert2.decreasesBy = function(fn2, obj, prop, delta, msg) {
|
|
10749
10706
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
10750
10707
|
let tmpMsg = delta;
|
|
10751
10708
|
delta = prop;
|
|
@@ -10754,19 +10711,19 @@ assert3.decreasesBy = function(fn2, obj, prop, delta, msg) {
|
|
|
10754
10711
|
delta = prop;
|
|
10755
10712
|
prop = null;
|
|
10756
10713
|
}
|
|
10757
|
-
new Assertion(fn2, msg,
|
|
10714
|
+
new Assertion(fn2, msg, assert2.decreasesBy, true).to.decrease(obj, prop).by(delta);
|
|
10758
10715
|
};
|
|
10759
|
-
|
|
10716
|
+
assert2.doesNotDecrease = function(fn2, obj, prop, msg) {
|
|
10760
10717
|
if (arguments.length === 3 && typeof obj === "function") {
|
|
10761
10718
|
msg = prop;
|
|
10762
10719
|
prop = null;
|
|
10763
10720
|
}
|
|
10764
|
-
return new Assertion(fn2, msg,
|
|
10721
|
+
return new Assertion(fn2, msg, assert2.doesNotDecrease, true).to.not.decrease(
|
|
10765
10722
|
obj,
|
|
10766
10723
|
prop
|
|
10767
10724
|
);
|
|
10768
10725
|
};
|
|
10769
|
-
|
|
10726
|
+
assert2.doesNotDecreaseBy = function(fn2, obj, prop, delta, msg) {
|
|
10770
10727
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
10771
10728
|
let tmpMsg = delta;
|
|
10772
10729
|
delta = prop;
|
|
@@ -10775,9 +10732,9 @@ assert3.doesNotDecreaseBy = function(fn2, obj, prop, delta, msg) {
|
|
|
10775
10732
|
delta = prop;
|
|
10776
10733
|
prop = null;
|
|
10777
10734
|
}
|
|
10778
|
-
return new Assertion(fn2, msg,
|
|
10735
|
+
return new Assertion(fn2, msg, assert2.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta);
|
|
10779
10736
|
};
|
|
10780
|
-
|
|
10737
|
+
assert2.decreasesButNotBy = function(fn2, obj, prop, delta, msg) {
|
|
10781
10738
|
if (arguments.length === 4 && typeof obj === "function") {
|
|
10782
10739
|
let tmpMsg = delta;
|
|
10783
10740
|
delta = prop;
|
|
@@ -10786,41 +10743,41 @@ assert3.decreasesButNotBy = function(fn2, obj, prop, delta, msg) {
|
|
|
10786
10743
|
delta = prop;
|
|
10787
10744
|
prop = null;
|
|
10788
10745
|
}
|
|
10789
|
-
new Assertion(fn2, msg,
|
|
10746
|
+
new Assertion(fn2, msg, assert2.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta);
|
|
10790
10747
|
};
|
|
10791
|
-
|
|
10748
|
+
assert2.ifError = function(val) {
|
|
10792
10749
|
if (val) {
|
|
10793
10750
|
throw val;
|
|
10794
10751
|
}
|
|
10795
10752
|
};
|
|
10796
|
-
|
|
10797
|
-
new Assertion(obj, msg,
|
|
10753
|
+
assert2.isExtensible = function(obj, msg) {
|
|
10754
|
+
new Assertion(obj, msg, assert2.isExtensible, true).to.be.extensible;
|
|
10798
10755
|
};
|
|
10799
|
-
|
|
10800
|
-
new Assertion(obj, msg,
|
|
10756
|
+
assert2.isNotExtensible = function(obj, msg) {
|
|
10757
|
+
new Assertion(obj, msg, assert2.isNotExtensible, true).to.not.be.extensible;
|
|
10801
10758
|
};
|
|
10802
|
-
|
|
10803
|
-
new Assertion(obj, msg,
|
|
10759
|
+
assert2.isSealed = function(obj, msg) {
|
|
10760
|
+
new Assertion(obj, msg, assert2.isSealed, true).to.be.sealed;
|
|
10804
10761
|
};
|
|
10805
|
-
|
|
10806
|
-
new Assertion(obj, msg,
|
|
10762
|
+
assert2.isNotSealed = function(obj, msg) {
|
|
10763
|
+
new Assertion(obj, msg, assert2.isNotSealed, true).to.not.be.sealed;
|
|
10807
10764
|
};
|
|
10808
|
-
|
|
10809
|
-
new Assertion(obj, msg,
|
|
10765
|
+
assert2.isFrozen = function(obj, msg) {
|
|
10766
|
+
new Assertion(obj, msg, assert2.isFrozen, true).to.be.frozen;
|
|
10810
10767
|
};
|
|
10811
|
-
|
|
10812
|
-
new Assertion(obj, msg,
|
|
10768
|
+
assert2.isNotFrozen = function(obj, msg) {
|
|
10769
|
+
new Assertion(obj, msg, assert2.isNotFrozen, true).to.not.be.frozen;
|
|
10813
10770
|
};
|
|
10814
|
-
|
|
10815
|
-
new Assertion(val, msg,
|
|
10771
|
+
assert2.isEmpty = function(val, msg) {
|
|
10772
|
+
new Assertion(val, msg, assert2.isEmpty, true).to.be.empty;
|
|
10816
10773
|
};
|
|
10817
|
-
|
|
10818
|
-
new Assertion(val, msg,
|
|
10774
|
+
assert2.isNotEmpty = function(val, msg) {
|
|
10775
|
+
new Assertion(val, msg, assert2.isNotEmpty, true).to.not.be.empty;
|
|
10819
10776
|
};
|
|
10820
|
-
|
|
10777
|
+
assert2.containsSubset = function(val, exp, msg) {
|
|
10821
10778
|
new Assertion(val, msg).to.containSubset(exp);
|
|
10822
10779
|
};
|
|
10823
|
-
|
|
10780
|
+
assert2.doesNotContainSubset = function(val, exp, msg) {
|
|
10824
10781
|
new Assertion(val, msg).to.not.containSubset(exp);
|
|
10825
10782
|
};
|
|
10826
10783
|
var aliases = [
|
|
@@ -10841,7 +10798,7 @@ var aliases = [
|
|
|
10841
10798
|
["containsSubset", "containSubset"]
|
|
10842
10799
|
];
|
|
10843
10800
|
for (const [name, as] of aliases) {
|
|
10844
|
-
|
|
10801
|
+
assert2[as] = assert2[name];
|
|
10845
10802
|
}
|
|
10846
10803
|
var used = [];
|
|
10847
10804
|
function use(fn2) {
|
|
@@ -10851,7 +10808,7 @@ function use(fn2) {
|
|
|
10851
10808
|
util: utils_exports,
|
|
10852
10809
|
config,
|
|
10853
10810
|
expect,
|
|
10854
|
-
assert:
|
|
10811
|
+
assert: assert2,
|
|
10855
10812
|
Assertion,
|
|
10856
10813
|
...should_exports
|
|
10857
10814
|
};
|
|
@@ -10863,7 +10820,7 @@ function use(fn2) {
|
|
|
10863
10820
|
}
|
|
10864
10821
|
__name(use, "use");
|
|
10865
10822
|
|
|
10866
|
-
//
|
|
10823
|
+
// ../../../../node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index.js
|
|
10867
10824
|
var MATCHERS_OBJECT = Symbol.for("matchers-object");
|
|
10868
10825
|
var JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object");
|
|
10869
10826
|
var GLOBAL_EXPECT = Symbol.for("expect-global");
|
|
@@ -10997,71 +10954,71 @@ function addCustomEqualityTesters(newTesters) {
|
|
|
10997
10954
|
function getCustomEqualityTesters() {
|
|
10998
10955
|
return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;
|
|
10999
10956
|
}
|
|
11000
|
-
function equals(a3,
|
|
10957
|
+
function equals(a3, b2, customTesters, strictCheck) {
|
|
11001
10958
|
customTesters = customTesters || [];
|
|
11002
|
-
return eq(a3,
|
|
10959
|
+
return eq(a3, b2, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);
|
|
11003
10960
|
}
|
|
11004
10961
|
var functionToString = Function.prototype.toString;
|
|
11005
10962
|
function isAsymmetric(obj) {
|
|
11006
10963
|
return !!obj && typeof obj === "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch);
|
|
11007
10964
|
}
|
|
11008
|
-
function asymmetricMatch(a3,
|
|
10965
|
+
function asymmetricMatch(a3, b2) {
|
|
11009
10966
|
const asymmetricA = isAsymmetric(a3);
|
|
11010
|
-
const asymmetricB = isAsymmetric(
|
|
10967
|
+
const asymmetricB = isAsymmetric(b2);
|
|
11011
10968
|
if (asymmetricA && asymmetricB) {
|
|
11012
10969
|
return void 0;
|
|
11013
10970
|
}
|
|
11014
10971
|
if (asymmetricA) {
|
|
11015
|
-
return a3.asymmetricMatch(
|
|
10972
|
+
return a3.asymmetricMatch(b2);
|
|
11016
10973
|
}
|
|
11017
10974
|
if (asymmetricB) {
|
|
11018
|
-
return
|
|
10975
|
+
return b2.asymmetricMatch(a3);
|
|
11019
10976
|
}
|
|
11020
10977
|
}
|
|
11021
|
-
function eq(a3,
|
|
10978
|
+
function eq(a3, b2, aStack, bStack, customTesters, hasKey2) {
|
|
11022
10979
|
let result = true;
|
|
11023
|
-
const asymmetricResult = asymmetricMatch(a3,
|
|
10980
|
+
const asymmetricResult = asymmetricMatch(a3, b2);
|
|
11024
10981
|
if (asymmetricResult !== void 0) {
|
|
11025
10982
|
return asymmetricResult;
|
|
11026
10983
|
}
|
|
11027
10984
|
const testerContext = { equals };
|
|
11028
10985
|
for (let i = 0; i < customTesters.length; i++) {
|
|
11029
|
-
const customTesterResult = customTesters[i].call(testerContext, a3,
|
|
10986
|
+
const customTesterResult = customTesters[i].call(testerContext, a3, b2, customTesters);
|
|
11030
10987
|
if (customTesterResult !== void 0) {
|
|
11031
10988
|
return customTesterResult;
|
|
11032
10989
|
}
|
|
11033
10990
|
}
|
|
11034
|
-
if (typeof URL === "function" && a3 instanceof URL &&
|
|
11035
|
-
return a3.href ===
|
|
10991
|
+
if (typeof URL === "function" && a3 instanceof URL && b2 instanceof URL) {
|
|
10992
|
+
return a3.href === b2.href;
|
|
11036
10993
|
}
|
|
11037
|
-
if (Object.is(a3,
|
|
10994
|
+
if (Object.is(a3, b2)) {
|
|
11038
10995
|
return true;
|
|
11039
10996
|
}
|
|
11040
|
-
if (a3 === null ||
|
|
11041
|
-
return a3 ===
|
|
10997
|
+
if (a3 === null || b2 === null) {
|
|
10998
|
+
return a3 === b2;
|
|
11042
10999
|
}
|
|
11043
11000
|
const className = Object.prototype.toString.call(a3);
|
|
11044
|
-
if (className !== Object.prototype.toString.call(
|
|
11001
|
+
if (className !== Object.prototype.toString.call(b2)) {
|
|
11045
11002
|
return false;
|
|
11046
11003
|
}
|
|
11047
11004
|
switch (className) {
|
|
11048
11005
|
case "[object Boolean]":
|
|
11049
11006
|
case "[object String]":
|
|
11050
11007
|
case "[object Number]":
|
|
11051
|
-
if (typeof a3 !== typeof
|
|
11008
|
+
if (typeof a3 !== typeof b2) {
|
|
11052
11009
|
return false;
|
|
11053
|
-
} else if (typeof a3 !== "object" && typeof
|
|
11054
|
-
return Object.is(a3,
|
|
11010
|
+
} else if (typeof a3 !== "object" && typeof b2 !== "object") {
|
|
11011
|
+
return Object.is(a3, b2);
|
|
11055
11012
|
} else {
|
|
11056
|
-
return Object.is(a3.valueOf(),
|
|
11013
|
+
return Object.is(a3.valueOf(), b2.valueOf());
|
|
11057
11014
|
}
|
|
11058
11015
|
case "[object Date]": {
|
|
11059
11016
|
const numA = +a3;
|
|
11060
|
-
const numB = +
|
|
11017
|
+
const numB = +b2;
|
|
11061
11018
|
return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);
|
|
11062
11019
|
}
|
|
11063
11020
|
case "[object RegExp]":
|
|
11064
|
-
return a3.source ===
|
|
11021
|
+
return a3.source === b2.source && a3.flags === b2.flags;
|
|
11065
11022
|
case "[object Temporal.Instant]":
|
|
11066
11023
|
case "[object Temporal.ZonedDateTime]":
|
|
11067
11024
|
case "[object Temporal.PlainDateTime]":
|
|
@@ -11069,32 +11026,32 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
|
|
|
11069
11026
|
case "[object Temporal.PlainTime]":
|
|
11070
11027
|
case "[object Temporal.PlainYearMonth]":
|
|
11071
11028
|
case "[object Temporal.PlainMonthDay]":
|
|
11072
|
-
return a3.equals(
|
|
11029
|
+
return a3.equals(b2);
|
|
11073
11030
|
case "[object Temporal.Duration]":
|
|
11074
|
-
return a3.toString() ===
|
|
11031
|
+
return a3.toString() === b2.toString();
|
|
11075
11032
|
}
|
|
11076
|
-
if (typeof a3 !== "object" || typeof
|
|
11033
|
+
if (typeof a3 !== "object" || typeof b2 !== "object") {
|
|
11077
11034
|
return false;
|
|
11078
11035
|
}
|
|
11079
|
-
if (isDomNode(a3) && isDomNode(
|
|
11080
|
-
return a3.isEqualNode(
|
|
11036
|
+
if (isDomNode(a3) && isDomNode(b2)) {
|
|
11037
|
+
return a3.isEqualNode(b2);
|
|
11081
11038
|
}
|
|
11082
11039
|
let length = aStack.length;
|
|
11083
11040
|
while (length--) {
|
|
11084
11041
|
if (aStack[length] === a3) {
|
|
11085
|
-
return bStack[length] ===
|
|
11086
|
-
} else if (bStack[length] ===
|
|
11042
|
+
return bStack[length] === b2;
|
|
11043
|
+
} else if (bStack[length] === b2) {
|
|
11087
11044
|
return false;
|
|
11088
11045
|
}
|
|
11089
11046
|
}
|
|
11090
11047
|
aStack.push(a3);
|
|
11091
|
-
bStack.push(
|
|
11092
|
-
if (className === "[object Array]" && a3.length !==
|
|
11048
|
+
bStack.push(b2);
|
|
11049
|
+
if (className === "[object Array]" && a3.length !== b2.length) {
|
|
11093
11050
|
return false;
|
|
11094
11051
|
}
|
|
11095
|
-
if (a3 instanceof Error &&
|
|
11052
|
+
if (a3 instanceof Error && b2 instanceof Error) {
|
|
11096
11053
|
try {
|
|
11097
|
-
return isErrorEqual(a3,
|
|
11054
|
+
return isErrorEqual(a3, b2, aStack, bStack, customTesters, hasKey2);
|
|
11098
11055
|
} finally {
|
|
11099
11056
|
aStack.pop();
|
|
11100
11057
|
bStack.pop();
|
|
@@ -11103,12 +11060,12 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
|
|
|
11103
11060
|
const aKeys = keys(a3, hasKey2);
|
|
11104
11061
|
let key;
|
|
11105
11062
|
let size = aKeys.length;
|
|
11106
|
-
if (keys(
|
|
11063
|
+
if (keys(b2, hasKey2).length !== size) {
|
|
11107
11064
|
return false;
|
|
11108
11065
|
}
|
|
11109
11066
|
while (size--) {
|
|
11110
11067
|
key = aKeys[size];
|
|
11111
|
-
result = hasKey2(
|
|
11068
|
+
result = hasKey2(b2, key) && eq(a3[key], b2[key], aStack, bStack, customTesters, hasKey2);
|
|
11112
11069
|
if (!result) {
|
|
11113
11070
|
return false;
|
|
11114
11071
|
}
|
|
@@ -11117,15 +11074,15 @@ function eq(a3, b, aStack, bStack, customTesters, hasKey2) {
|
|
|
11117
11074
|
bStack.pop();
|
|
11118
11075
|
return result;
|
|
11119
11076
|
}
|
|
11120
|
-
function isErrorEqual(a3,
|
|
11121
|
-
let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(
|
|
11122
|
-
if (typeof
|
|
11123
|
-
result && (result = eq(a3.cause,
|
|
11077
|
+
function isErrorEqual(a3, b2, aStack, bStack, customTesters, hasKey2) {
|
|
11078
|
+
let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b2) && a3.name === b2.name && a3.message === b2.message;
|
|
11079
|
+
if (typeof b2.cause !== "undefined") {
|
|
11080
|
+
result && (result = eq(a3.cause, b2.cause, aStack, bStack, customTesters, hasKey2));
|
|
11124
11081
|
}
|
|
11125
|
-
if (a3 instanceof AggregateError &&
|
|
11126
|
-
result && (result = eq(a3.errors,
|
|
11082
|
+
if (a3 instanceof AggregateError && b2 instanceof AggregateError) {
|
|
11083
|
+
result && (result = eq(a3.errors, b2.errors, aStack, bStack, customTesters, hasKey2));
|
|
11127
11084
|
}
|
|
11128
|
-
result && (result = eq({ ...a3 }, { ...
|
|
11085
|
+
result && (result = eq({ ...a3 }, { ...b2 }, aStack, bStack, customTesters, hasKey2));
|
|
11129
11086
|
return result;
|
|
11130
11087
|
}
|
|
11131
11088
|
function keys(obj, hasKey2) {
|
|
@@ -11179,34 +11136,34 @@ var IteratorSymbol = Symbol.iterator;
|
|
|
11179
11136
|
function hasIterator(object2) {
|
|
11180
11137
|
return !!(object2 != null && object2[IteratorSymbol]);
|
|
11181
11138
|
}
|
|
11182
|
-
function iterableEquality(a3,
|
|
11183
|
-
if (typeof a3 !== "object" || typeof
|
|
11139
|
+
function iterableEquality(a3, b2, customTesters = [], aStack = [], bStack = []) {
|
|
11140
|
+
if (typeof a3 !== "object" || typeof b2 !== "object" || Array.isArray(a3) || Array.isArray(b2) || !hasIterator(a3) || !hasIterator(b2)) {
|
|
11184
11141
|
return void 0;
|
|
11185
11142
|
}
|
|
11186
|
-
if (a3.constructor !==
|
|
11143
|
+
if (a3.constructor !== b2.constructor) {
|
|
11187
11144
|
return false;
|
|
11188
11145
|
}
|
|
11189
11146
|
let length = aStack.length;
|
|
11190
11147
|
while (length--) {
|
|
11191
11148
|
if (aStack[length] === a3) {
|
|
11192
|
-
return bStack[length] ===
|
|
11149
|
+
return bStack[length] === b2;
|
|
11193
11150
|
}
|
|
11194
11151
|
}
|
|
11195
11152
|
aStack.push(a3);
|
|
11196
|
-
bStack.push(
|
|
11153
|
+
bStack.push(b2);
|
|
11197
11154
|
const filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];
|
|
11198
|
-
function iterableEqualityWithStack(a4,
|
|
11199
|
-
return iterableEquality(a4,
|
|
11155
|
+
function iterableEqualityWithStack(a4, b3) {
|
|
11156
|
+
return iterableEquality(a4, b3, [...customTesters], [...aStack], [...bStack]);
|
|
11200
11157
|
}
|
|
11201
11158
|
if (a3.size !== void 0) {
|
|
11202
|
-
if (a3.size !==
|
|
11159
|
+
if (a3.size !== b2.size) {
|
|
11203
11160
|
return false;
|
|
11204
11161
|
} else if (isA("Set", a3) || isImmutableUnorderedSet(a3)) {
|
|
11205
11162
|
let allFound = true;
|
|
11206
11163
|
for (const aValue of a3) {
|
|
11207
|
-
if (!
|
|
11164
|
+
if (!b2.has(aValue)) {
|
|
11208
11165
|
let has = false;
|
|
11209
|
-
for (const bValue of
|
|
11166
|
+
for (const bValue of b2) {
|
|
11210
11167
|
const isEqual = equals(aValue, bValue, filteredCustomTesters);
|
|
11211
11168
|
if (isEqual === true) {
|
|
11212
11169
|
has = true;
|
|
@@ -11224,9 +11181,9 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
11224
11181
|
} else if (isA("Map", a3) || isImmutableUnorderedKeyed(a3)) {
|
|
11225
11182
|
let allFound = true;
|
|
11226
11183
|
for (const aEntry of a3) {
|
|
11227
|
-
if (!
|
|
11184
|
+
if (!b2.has(aEntry[0]) || !equals(aEntry[1], b2.get(aEntry[0]), filteredCustomTesters)) {
|
|
11228
11185
|
let has = false;
|
|
11229
|
-
for (const bEntry of
|
|
11186
|
+
for (const bEntry of b2) {
|
|
11230
11187
|
const matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters);
|
|
11231
11188
|
let matchedValue = false;
|
|
11232
11189
|
if (matchedKey === true) {
|
|
@@ -11247,7 +11204,7 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
11247
11204
|
return allFound;
|
|
11248
11205
|
}
|
|
11249
11206
|
}
|
|
11250
|
-
const bIterator =
|
|
11207
|
+
const bIterator = b2[IteratorSymbol]();
|
|
11251
11208
|
for (const aValue of a3) {
|
|
11252
11209
|
const nextB = bIterator.next();
|
|
11253
11210
|
if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) {
|
|
@@ -11259,7 +11216,7 @@ function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) {
|
|
|
11259
11216
|
}
|
|
11260
11217
|
if (!isImmutableList(a3) && !isImmutableOrderedKeyed(a3) && !isImmutableOrderedSet(a3) && !isImmutableRecord(a3)) {
|
|
11261
11218
|
const aEntries = Object.entries(a3);
|
|
11262
|
-
const bEntries = Object.entries(
|
|
11219
|
+
const bEntries = Object.entries(b2);
|
|
11263
11220
|
if (!equals(aEntries, bEntries, filteredCustomTesters)) {
|
|
11264
11221
|
return false;
|
|
11265
11222
|
}
|
|
@@ -11298,22 +11255,22 @@ function subsetEquality(object2, subset, customTesters = []) {
|
|
|
11298
11255
|
};
|
|
11299
11256
|
return subsetEqualityWithContext()(object2, subset);
|
|
11300
11257
|
}
|
|
11301
|
-
function typeEquality(a3,
|
|
11302
|
-
if (a3 == null ||
|
|
11258
|
+
function typeEquality(a3, b2) {
|
|
11259
|
+
if (a3 == null || b2 == null || a3.constructor === b2.constructor) {
|
|
11303
11260
|
return void 0;
|
|
11304
11261
|
}
|
|
11305
11262
|
return false;
|
|
11306
11263
|
}
|
|
11307
|
-
function arrayBufferEquality(a3,
|
|
11264
|
+
function arrayBufferEquality(a3, b2) {
|
|
11308
11265
|
let dataViewA = a3;
|
|
11309
|
-
let dataViewB =
|
|
11310
|
-
if (!(a3 instanceof DataView &&
|
|
11311
|
-
if (!(a3 instanceof ArrayBuffer) || !(
|
|
11266
|
+
let dataViewB = b2;
|
|
11267
|
+
if (!(a3 instanceof DataView && b2 instanceof DataView)) {
|
|
11268
|
+
if (!(a3 instanceof ArrayBuffer) || !(b2 instanceof ArrayBuffer)) {
|
|
11312
11269
|
return void 0;
|
|
11313
11270
|
}
|
|
11314
11271
|
try {
|
|
11315
11272
|
dataViewA = new DataView(a3);
|
|
11316
|
-
dataViewB = new DataView(
|
|
11273
|
+
dataViewB = new DataView(b2);
|
|
11317
11274
|
} catch {
|
|
11318
11275
|
return void 0;
|
|
11319
11276
|
}
|
|
@@ -11328,14 +11285,14 @@ function arrayBufferEquality(a3, b) {
|
|
|
11328
11285
|
}
|
|
11329
11286
|
return true;
|
|
11330
11287
|
}
|
|
11331
|
-
function sparseArrayEquality(a3,
|
|
11332
|
-
if (!Array.isArray(a3) || !Array.isArray(
|
|
11288
|
+
function sparseArrayEquality(a3, b2, customTesters = []) {
|
|
11289
|
+
if (!Array.isArray(a3) || !Array.isArray(b2)) {
|
|
11333
11290
|
return void 0;
|
|
11334
11291
|
}
|
|
11335
11292
|
const aKeys = Object.keys(a3);
|
|
11336
|
-
const bKeys = Object.keys(
|
|
11293
|
+
const bKeys = Object.keys(b2);
|
|
11337
11294
|
const filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality);
|
|
11338
|
-
return equals(a3,
|
|
11295
|
+
return equals(a3, b2, filteredCustomTesters, true) && equals(aKeys, bKeys);
|
|
11339
11296
|
}
|
|
11340
11297
|
function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") {
|
|
11341
11298
|
const toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;
|
|
@@ -12027,7 +11984,7 @@ var JestChaiExpect = (chai2, utils) => {
|
|
|
12027
11984
|
return this.assert(pass, `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, received, expected, false);
|
|
12028
11985
|
});
|
|
12029
11986
|
function assertIsMock(assertion) {
|
|
12030
|
-
if (!
|
|
11987
|
+
if (!isMockFunction(assertion._obj)) {
|
|
12031
11988
|
throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);
|
|
12032
11989
|
}
|
|
12033
11990
|
}
|
|
@@ -12067,8 +12024,8 @@ var JestChaiExpect = (chai2, utils) => {
|
|
|
12067
12024
|
throw new AssertionError2(msg);
|
|
12068
12025
|
}
|
|
12069
12026
|
});
|
|
12070
|
-
function equalsArgumentArray(a3,
|
|
12071
|
-
return a3.length ===
|
|
12027
|
+
function equalsArgumentArray(a3, b2) {
|
|
12028
|
+
return a3.length === b2.length && a3.every((aItem, i) => equals(aItem, b2[i], [...customTesters, iterableEquality]));
|
|
12072
12029
|
}
|
|
12073
12030
|
def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) {
|
|
12074
12031
|
const spy = getSpy(this);
|
|
@@ -12129,14 +12086,14 @@ var JestChaiExpect = (chai2, utils) => {
|
|
|
12129
12086
|
}
|
|
12130
12087
|
def(["toHaveBeenCalledBefore"], function(resultSpy, failIfNoFirstInvocation = true) {
|
|
12131
12088
|
const expectSpy = getSpy(this);
|
|
12132
|
-
if (!
|
|
12089
|
+
if (!isMockFunction(resultSpy)) {
|
|
12133
12090
|
throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
|
|
12134
12091
|
}
|
|
12135
12092
|
this.assert(isSpyCalledBeforeAnotherSpy(expectSpy, resultSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called before "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called before "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
|
|
12136
12093
|
});
|
|
12137
12094
|
def(["toHaveBeenCalledAfter"], function(resultSpy, failIfNoFirstInvocation = true) {
|
|
12138
12095
|
const expectSpy = getSpy(this);
|
|
12139
|
-
if (!
|
|
12096
|
+
if (!isMockFunction(resultSpy)) {
|
|
12140
12097
|
throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);
|
|
12141
12098
|
}
|
|
12142
12099
|
this.assert(isSpyCalledBeforeAnotherSpy(resultSpy, expectSpy, failIfNoFirstInvocation), `expected "${expectSpy.getMockName()}" to have been called after "${resultSpy.getMockName()}"`, `expected "${expectSpy.getMockName()}" to not have been called after "${resultSpy.getMockName()}"`, resultSpy, expectSpy);
|
|
@@ -12370,15 +12327,15 @@ var JestChaiExpect = (chai2, utils) => {
|
|
|
12370
12327
|
});
|
|
12371
12328
|
};
|
|
12372
12329
|
function ordinalOf(i) {
|
|
12373
|
-
const
|
|
12374
|
-
const
|
|
12375
|
-
if (
|
|
12330
|
+
const j2 = i % 10;
|
|
12331
|
+
const k2 = i % 100;
|
|
12332
|
+
if (j2 === 1 && k2 !== 11) {
|
|
12376
12333
|
return `${i}st`;
|
|
12377
12334
|
}
|
|
12378
|
-
if (
|
|
12335
|
+
if (j2 === 2 && k2 !== 12) {
|
|
12379
12336
|
return `${i}nd`;
|
|
12380
12337
|
}
|
|
12381
|
-
if (
|
|
12338
|
+
if (j2 === 3 && k2 !== 13) {
|
|
12382
12339
|
return `${i}rd`;
|
|
12383
12340
|
}
|
|
12384
12341
|
return `${i}th`;
|
|
@@ -12536,7 +12493,7 @@ var JestExtend = (chai2, utils) => {
|
|
|
12536
12493
|
});
|
|
12537
12494
|
};
|
|
12538
12495
|
|
|
12539
|
-
//
|
|
12496
|
+
// ../../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.27_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_ad9a99fae9beb8635e1487dc560ee7c6/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
|
|
12540
12497
|
var NAME_WORKER_STATE = "__vitest_worker__";
|
|
12541
12498
|
function getWorkerState() {
|
|
12542
12499
|
const workerState = globalThis[NAME_WORKER_STATE];
|
|
@@ -12588,13 +12545,13 @@ async function waitForImportsToResolve() {
|
|
|
12588
12545
|
await waitForImportsToResolve();
|
|
12589
12546
|
}
|
|
12590
12547
|
|
|
12591
|
-
//
|
|
12548
|
+
// ../../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.27_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_ad9a99fae9beb8635e1487dc560ee7c6/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
|
|
12592
12549
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
12593
|
-
function getDefaultExportFromCjs3(
|
|
12594
|
-
return
|
|
12550
|
+
function getDefaultExportFromCjs3(x2) {
|
|
12551
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
12595
12552
|
}
|
|
12596
12553
|
|
|
12597
|
-
//
|
|
12554
|
+
// ../../../../node_modules/.pnpm/@vitest+snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js
|
|
12598
12555
|
var comma2 = ",".charCodeAt(0);
|
|
12599
12556
|
var chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
12600
12557
|
var intToChar2 = new Uint8Array(64);
|
|
@@ -12690,8 +12647,8 @@ function decode(mappings) {
|
|
|
12690
12647
|
function sort(line) {
|
|
12691
12648
|
line.sort(sortComparator$1);
|
|
12692
12649
|
}
|
|
12693
|
-
function sortComparator$1(a3,
|
|
12694
|
-
return a3[0] -
|
|
12650
|
+
function sortComparator$1(a3, b2) {
|
|
12651
|
+
return a3[0] - b2[0];
|
|
12695
12652
|
}
|
|
12696
12653
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
12697
12654
|
var urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;
|
|
@@ -12899,8 +12856,8 @@ function nextUnsortedSegmentLine(mappings, start) {
|
|
|
12899
12856
|
return mappings.length;
|
|
12900
12857
|
}
|
|
12901
12858
|
function isSorted(line) {
|
|
12902
|
-
for (let
|
|
12903
|
-
if (line[
|
|
12859
|
+
for (let j2 = 1; j2 < line.length; j2++) {
|
|
12860
|
+
if (line[j2][COLUMN] < line[j2 - 1][COLUMN]) {
|
|
12904
12861
|
return false;
|
|
12905
12862
|
}
|
|
12906
12863
|
}
|
|
@@ -12911,8 +12868,8 @@ function sortSegments(line, owned) {
|
|
|
12911
12868
|
line = line.slice();
|
|
12912
12869
|
return line.sort(sortComparator);
|
|
12913
12870
|
}
|
|
12914
|
-
function sortComparator(a3,
|
|
12915
|
-
return a3[COLUMN] -
|
|
12871
|
+
function sortComparator(a3, b2) {
|
|
12872
|
+
return a3[COLUMN] - b2[COLUMN];
|
|
12916
12873
|
}
|
|
12917
12874
|
var found = false;
|
|
12918
12875
|
function binarySearch(haystack, needle, low, high) {
|
|
@@ -13045,8 +13002,8 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
|
13045
13002
|
return -1;
|
|
13046
13003
|
return index2;
|
|
13047
13004
|
}
|
|
13048
|
-
function notNullish2(
|
|
13049
|
-
return
|
|
13005
|
+
function notNullish2(v2) {
|
|
13006
|
+
return v2 != null;
|
|
13050
13007
|
}
|
|
13051
13008
|
function isPrimitive3(value) {
|
|
13052
13009
|
return value === null || typeof value !== "function" && typeof value !== "object";
|
|
@@ -13261,7 +13218,7 @@ function parseErrorStacktrace(e, options = {}) {
|
|
|
13261
13218
|
}
|
|
13262
13219
|
}
|
|
13263
13220
|
if (options.frameFilter) {
|
|
13264
|
-
stackFrames = stackFrames.filter((
|
|
13221
|
+
stackFrames = stackFrames.filter((f4) => options.frameFilter(e, f4) !== false);
|
|
13265
13222
|
}
|
|
13266
13223
|
e.stacks = stackFrames;
|
|
13267
13224
|
return stackFrames;
|
|
@@ -13281,8 +13238,8 @@ try {
|
|
|
13281
13238
|
} catch (notNode) {
|
|
13282
13239
|
}
|
|
13283
13240
|
var { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = plugins;
|
|
13284
|
-
function getDefaultExportFromCjs4(
|
|
13285
|
-
return
|
|
13241
|
+
function getDefaultExportFromCjs4(x2) {
|
|
13242
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
13286
13243
|
}
|
|
13287
13244
|
var jsTokens_12;
|
|
13288
13245
|
var hasRequiredJsTokens2;
|
|
@@ -13731,7 +13688,7 @@ var reservedWords2 = {
|
|
|
13731
13688
|
};
|
|
13732
13689
|
new Set(reservedWords2.keyword);
|
|
13733
13690
|
new Set(reservedWords2.strict);
|
|
13734
|
-
var
|
|
13691
|
+
var f3 = {
|
|
13735
13692
|
reset: [0, 0],
|
|
13736
13693
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
13737
13694
|
dim: [2, 22, "\x1B[22m\x1B[2m"],
|
|
@@ -13774,7 +13731,7 @@ var f2 = {
|
|
|
13774
13731
|
bgCyanBright: [106, 49],
|
|
13775
13732
|
bgWhiteBright: [107, 49]
|
|
13776
13733
|
};
|
|
13777
|
-
var
|
|
13734
|
+
var h3 = Object.entries(f3);
|
|
13778
13735
|
function a2(n) {
|
|
13779
13736
|
return String(n);
|
|
13780
13737
|
}
|
|
@@ -13786,27 +13743,27 @@ function C2(n = false) {
|
|
|
13786
13743
|
}
|
|
13787
13744
|
function p2(n = false) {
|
|
13788
13745
|
let e = C2(n), i = (r2, t, c, o) => {
|
|
13789
|
-
let
|
|
13746
|
+
let l2 = "", s2 = 0;
|
|
13790
13747
|
do
|
|
13791
|
-
|
|
13748
|
+
l2 += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
|
|
13792
13749
|
while (~o);
|
|
13793
|
-
return
|
|
13750
|
+
return l2 + r2.substring(s2);
|
|
13794
13751
|
}, g = (r2, t, c = r2) => {
|
|
13795
|
-
let o = (
|
|
13796
|
-
let s2 = String(
|
|
13797
|
-
return ~
|
|
13752
|
+
let o = (l2) => {
|
|
13753
|
+
let s2 = String(l2), b2 = s2.indexOf(t, r2.length);
|
|
13754
|
+
return ~b2 ? r2 + i(s2, t, c, b2) + t : r2 + s2 + t;
|
|
13798
13755
|
};
|
|
13799
13756
|
return o.open = r2, o.close = t, o;
|
|
13800
|
-
},
|
|
13757
|
+
}, u3 = {
|
|
13801
13758
|
isColorSupported: e
|
|
13802
13759
|
}, d = (r2) => `\x1B[${r2}m`;
|
|
13803
|
-
for (let [r2, t] of
|
|
13804
|
-
|
|
13760
|
+
for (let [r2, t] of h3)
|
|
13761
|
+
u3[r2] = e ? g(
|
|
13805
13762
|
d(t[0]),
|
|
13806
13763
|
d(t[1]),
|
|
13807
13764
|
t[2]
|
|
13808
13765
|
) : a2;
|
|
13809
|
-
return
|
|
13766
|
+
return u3;
|
|
13810
13767
|
}
|
|
13811
13768
|
p2();
|
|
13812
13769
|
var lineSplitRE = /\r?\n/;
|
|
@@ -13840,7 +13797,7 @@ function offsetToLineNumber(source, offset) {
|
|
|
13840
13797
|
return line + 1;
|
|
13841
13798
|
}
|
|
13842
13799
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
13843
|
-
const MagicString = (await import("./magic-string.es-
|
|
13800
|
+
const MagicString = (await import("./magic-string.es-26DP735G.mjs")).default;
|
|
13844
13801
|
const files = new Set(snapshots.map((i) => i.file));
|
|
13845
13802
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
13846
13803
|
const snaps = snapshots.filter((i) => i.file === file);
|
|
@@ -13992,7 +13949,7 @@ function requireNaturalCompare() {
|
|
|
13992
13949
|
if (hasRequiredNaturalCompare)
|
|
13993
13950
|
return naturalCompare$1.exports;
|
|
13994
13951
|
hasRequiredNaturalCompare = 1;
|
|
13995
|
-
var naturalCompare2 = function(a3,
|
|
13952
|
+
var naturalCompare2 = function(a3, b2) {
|
|
13996
13953
|
var i, codeA, codeB = 1, posA = 0, posB = 0, alphabet = String.alphabet;
|
|
13997
13954
|
function getCode(str, pos, code) {
|
|
13998
13955
|
if (code) {
|
|
@@ -14003,13 +13960,13 @@ function requireNaturalCompare() {
|
|
|
14003
13960
|
code = alphabet && alphabet.indexOf(str.charAt(pos));
|
|
14004
13961
|
return code > -1 ? code + 76 : (code = str.charCodeAt(pos) || 0, code < 45 || code > 127) ? code : code < 46 ? 65 : code < 48 ? code - 1 : code < 58 ? code + 18 : code < 65 ? code - 11 : code < 91 ? code + 11 : code < 97 ? code - 37 : code < 123 ? code + 5 : code - 63;
|
|
14005
13962
|
}
|
|
14006
|
-
if ((a3 += "") != (
|
|
13963
|
+
if ((a3 += "") != (b2 += ""))
|
|
14007
13964
|
for (; codeB; ) {
|
|
14008
13965
|
codeA = getCode(a3, posA++);
|
|
14009
|
-
codeB = getCode(
|
|
13966
|
+
codeB = getCode(b2, posB++);
|
|
14010
13967
|
if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
|
|
14011
13968
|
codeA = getCode(a3, posA, posA);
|
|
14012
|
-
codeB = getCode(
|
|
13969
|
+
codeB = getCode(b2, posB, posA = i);
|
|
14013
13970
|
posB = i;
|
|
14014
13971
|
}
|
|
14015
13972
|
if (codeA != codeB)
|
|
@@ -14201,14 +14158,14 @@ var CounterMap = class extends DefaultMap {
|
|
|
14201
14158
|
return this._total;
|
|
14202
14159
|
}
|
|
14203
14160
|
let total = 0;
|
|
14204
|
-
for (const
|
|
14205
|
-
total +=
|
|
14161
|
+
for (const x2 of this.values()) {
|
|
14162
|
+
total += x2;
|
|
14206
14163
|
}
|
|
14207
14164
|
return total;
|
|
14208
14165
|
}
|
|
14209
14166
|
};
|
|
14210
|
-
function isSameStackPosition(
|
|
14211
|
-
return
|
|
14167
|
+
function isSameStackPosition(x2, y2) {
|
|
14168
|
+
return x2.file === y2.file && x2.column === y2.column && x2.line === y2.line;
|
|
14212
14169
|
}
|
|
14213
14170
|
var SnapshotState = class {
|
|
14214
14171
|
_counters = new CounterMap();
|
|
@@ -14621,11 +14578,11 @@ var SnapshotClient = class {
|
|
|
14621
14578
|
}
|
|
14622
14579
|
};
|
|
14623
14580
|
|
|
14624
|
-
//
|
|
14581
|
+
// ../../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.27_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_ad9a99fae9beb8635e1487dc560ee7c6/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
|
|
14625
14582
|
var RealDate = Date;
|
|
14626
14583
|
var now2 = null;
|
|
14627
14584
|
var MockDate = class extends RealDate {
|
|
14628
|
-
constructor(
|
|
14585
|
+
constructor(y2, m2, d, h4, M2, s2, ms) {
|
|
14629
14586
|
super();
|
|
14630
14587
|
let date;
|
|
14631
14588
|
switch (arguments.length) {
|
|
@@ -14636,15 +14593,15 @@ var MockDate = class extends RealDate {
|
|
|
14636
14593
|
date = new RealDate();
|
|
14637
14594
|
break;
|
|
14638
14595
|
case 1:
|
|
14639
|
-
date = new RealDate(
|
|
14596
|
+
date = new RealDate(y2);
|
|
14640
14597
|
break;
|
|
14641
14598
|
default:
|
|
14642
14599
|
d = typeof d === "undefined" ? 1 : d;
|
|
14643
|
-
|
|
14644
|
-
|
|
14600
|
+
h4 = h4 || 0;
|
|
14601
|
+
M2 = M2 || 0;
|
|
14645
14602
|
s2 = s2 || 0;
|
|
14646
14603
|
ms = ms || 0;
|
|
14647
|
-
date = new RealDate(
|
|
14604
|
+
date = new RealDate(y2, m2, d, h4, M2, s2, ms);
|
|
14648
14605
|
break;
|
|
14649
14606
|
}
|
|
14650
14607
|
Object.setPrototypeOf(date, MockDate.prototype);
|
|
@@ -14672,7 +14629,7 @@ function resetDate() {
|
|
|
14672
14629
|
globalThis.Date = RealDate;
|
|
14673
14630
|
}
|
|
14674
14631
|
|
|
14675
|
-
//
|
|
14632
|
+
// ../../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.27_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_ad9a99fae9beb8635e1487dc560ee7c6/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
|
|
14676
14633
|
var unsupported = [
|
|
14677
14634
|
"matchSnapshot",
|
|
14678
14635
|
"toMatchSnapshot",
|
|
@@ -15070,12 +15027,12 @@ function createExpect(test5) {
|
|
|
15070
15027
|
const expect2 = (value, message) => {
|
|
15071
15028
|
const { assertionCalls } = getState(expect2);
|
|
15072
15029
|
setState({ assertionCalls: assertionCalls + 1 }, expect2);
|
|
15073
|
-
const
|
|
15030
|
+
const assert3 = expect(value, message);
|
|
15074
15031
|
const _test2 = test5 || getCurrentTest();
|
|
15075
15032
|
if (_test2)
|
|
15076
|
-
return
|
|
15033
|
+
return assert3.withTest(_test2);
|
|
15077
15034
|
else
|
|
15078
|
-
return
|
|
15035
|
+
return assert3;
|
|
15079
15036
|
};
|
|
15080
15037
|
Object.assign(expect2, expect);
|
|
15081
15038
|
Object.assign(expect2, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);
|
|
@@ -15102,7 +15059,7 @@ function createExpect(test5) {
|
|
|
15102
15059
|
};
|
|
15103
15060
|
expect2.poll = createExpectPoll(expect2);
|
|
15104
15061
|
expect2.unreachable = (message) => {
|
|
15105
|
-
|
|
15062
|
+
assert2.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`);
|
|
15106
15063
|
};
|
|
15107
15064
|
function assertions(expected) {
|
|
15108
15065
|
const errorGen = () => new Error(`expected number of assertions to be ${expected}, but got ${expect2.getState().assertionCalls}`);
|
|
@@ -15226,10 +15183,10 @@ function requireCalledInOrder() {
|
|
|
15226
15183
|
}
|
|
15227
15184
|
return callMap[spy.id] < spy.callCount;
|
|
15228
15185
|
}
|
|
15229
|
-
function checkAdjacentCalls(callMap, spy, index2,
|
|
15186
|
+
function checkAdjacentCalls(callMap, spy, index2, spies) {
|
|
15230
15187
|
var calledBeforeNext = true;
|
|
15231
|
-
if (index2 !==
|
|
15232
|
-
calledBeforeNext = spy.calledBefore(
|
|
15188
|
+
if (index2 !== spies.length - 1) {
|
|
15189
|
+
calledBeforeNext = spy.calledBefore(spies[index2 + 1]);
|
|
15233
15190
|
}
|
|
15234
15191
|
if (hasCallsLeft(callMap, spy) && calledBeforeNext) {
|
|
15235
15192
|
callMap[spy.id] += 1;
|
|
@@ -15237,9 +15194,9 @@ function requireCalledInOrder() {
|
|
|
15237
15194
|
}
|
|
15238
15195
|
return false;
|
|
15239
15196
|
}
|
|
15240
|
-
function calledInOrder(
|
|
15197
|
+
function calledInOrder(spies) {
|
|
15241
15198
|
var callMap = {};
|
|
15242
|
-
var _spies = arguments.length > 1 ? arguments :
|
|
15199
|
+
var _spies = arguments.length > 1 ? arguments : spies;
|
|
15243
15200
|
return every2(_spies, checkAdjacentCalls.bind(null, callMap));
|
|
15244
15201
|
}
|
|
15245
15202
|
calledInOrder_1 = calledInOrder;
|
|
@@ -15341,15 +15298,15 @@ function requireOrderByFirstCall() {
|
|
|
15341
15298
|
hasRequiredOrderByFirstCall = 1;
|
|
15342
15299
|
var sort2 = requireArray().sort;
|
|
15343
15300
|
var slice = requireArray().slice;
|
|
15344
|
-
function comparator(a3,
|
|
15301
|
+
function comparator(a3, b2) {
|
|
15345
15302
|
var aCall = a3.getCall(0);
|
|
15346
|
-
var bCall =
|
|
15303
|
+
var bCall = b2.getCall(0);
|
|
15347
15304
|
var aId = aCall && aCall.callId || -1;
|
|
15348
15305
|
var bId = bCall && bCall.callId || -1;
|
|
15349
15306
|
return aId < bId ? -1 : 1;
|
|
15350
15307
|
}
|
|
15351
|
-
function orderByFirstCall(
|
|
15352
|
-
return sort2(slice(
|
|
15308
|
+
function orderByFirstCall(spies) {
|
|
15309
|
+
return sort2(slice(spies), comparator);
|
|
15353
15310
|
}
|
|
15354
15311
|
orderByFirstCall_1 = orderByFirstCall;
|
|
15355
15312
|
return orderByFirstCall_1;
|
|
@@ -15687,11 +15644,11 @@ function requireFakeTimersSrc() {
|
|
|
15687
15644
|
return 0;
|
|
15688
15645
|
}
|
|
15689
15646
|
const strings = str.split(":");
|
|
15690
|
-
const
|
|
15691
|
-
let i =
|
|
15647
|
+
const l2 = strings.length;
|
|
15648
|
+
let i = l2;
|
|
15692
15649
|
let ms = 0;
|
|
15693
15650
|
let parsed;
|
|
15694
|
-
if (
|
|
15651
|
+
if (l2 > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) {
|
|
15695
15652
|
throw new Error(
|
|
15696
15653
|
"tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits"
|
|
15697
15654
|
);
|
|
@@ -15701,7 +15658,7 @@ function requireFakeTimersSrc() {
|
|
|
15701
15658
|
if (parsed >= 60) {
|
|
15702
15659
|
throw new Error(`Invalid time ${str}`);
|
|
15703
15660
|
}
|
|
15704
|
-
ms += parsed * Math.pow(60,
|
|
15661
|
+
ms += parsed * Math.pow(60, l2 - i - 1);
|
|
15705
15662
|
}
|
|
15706
15663
|
return ms * 1e3;
|
|
15707
15664
|
}
|
|
@@ -15940,29 +15897,29 @@ ${job.error.stack.split("\n").slice(matchedLineIndex + 1).join("\n")}`;
|
|
|
15940
15897
|
}
|
|
15941
15898
|
return timer.id;
|
|
15942
15899
|
}
|
|
15943
|
-
function compareTimers(a3,
|
|
15944
|
-
if (a3.callAt <
|
|
15900
|
+
function compareTimers(a3, b2) {
|
|
15901
|
+
if (a3.callAt < b2.callAt) {
|
|
15945
15902
|
return -1;
|
|
15946
15903
|
}
|
|
15947
|
-
if (a3.callAt >
|
|
15904
|
+
if (a3.callAt > b2.callAt) {
|
|
15948
15905
|
return 1;
|
|
15949
15906
|
}
|
|
15950
|
-
if (a3.immediate && !
|
|
15907
|
+
if (a3.immediate && !b2.immediate) {
|
|
15951
15908
|
return -1;
|
|
15952
15909
|
}
|
|
15953
|
-
if (!a3.immediate &&
|
|
15910
|
+
if (!a3.immediate && b2.immediate) {
|
|
15954
15911
|
return 1;
|
|
15955
15912
|
}
|
|
15956
|
-
if (a3.createdAt <
|
|
15913
|
+
if (a3.createdAt < b2.createdAt) {
|
|
15957
15914
|
return -1;
|
|
15958
15915
|
}
|
|
15959
|
-
if (a3.createdAt >
|
|
15916
|
+
if (a3.createdAt > b2.createdAt) {
|
|
15960
15917
|
return 1;
|
|
15961
15918
|
}
|
|
15962
|
-
if (a3.id <
|
|
15919
|
+
if (a3.id < b2.id) {
|
|
15963
15920
|
return -1;
|
|
15964
15921
|
}
|
|
15965
|
-
if (a3.id >
|
|
15922
|
+
if (a3.id > b2.id) {
|
|
15966
15923
|
return 1;
|
|
15967
15924
|
}
|
|
15968
15925
|
}
|
|
@@ -16073,10 +16030,10 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
|
|
|
16073
16030
|
}
|
|
16074
16031
|
}
|
|
16075
16032
|
function uninstall(clock, config2) {
|
|
16076
|
-
let method, i,
|
|
16033
|
+
let method, i, l2;
|
|
16077
16034
|
const installedHrTime = "_hrtime";
|
|
16078
16035
|
const installedNextTick = "_nextTick";
|
|
16079
|
-
for (i = 0,
|
|
16036
|
+
for (i = 0, l2 = clock.methods.length; i < l2; i++) {
|
|
16080
16037
|
method = clock.methods[i];
|
|
16081
16038
|
if (method === "hrtime" && _global.process) {
|
|
16082
16039
|
_global.process.hrtime = clock[installedHrTime];
|
|
@@ -16107,14 +16064,14 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
|
|
|
16107
16064
|
}
|
|
16108
16065
|
}
|
|
16109
16066
|
if (clock.timersModuleMethods !== void 0) {
|
|
16110
|
-
for (let
|
|
16111
|
-
const entry = clock.timersModuleMethods[
|
|
16067
|
+
for (let j2 = 0; j2 < clock.timersModuleMethods.length; j2++) {
|
|
16068
|
+
const entry = clock.timersModuleMethods[j2];
|
|
16112
16069
|
timersModule[entry.methodName] = entry.original;
|
|
16113
16070
|
}
|
|
16114
16071
|
}
|
|
16115
16072
|
if (clock.timersPromisesModuleMethods !== void 0) {
|
|
16116
|
-
for (let
|
|
16117
|
-
const entry = clock.timersPromisesModuleMethods[
|
|
16073
|
+
for (let j2 = 0; j2 < clock.timersPromisesModuleMethods.length; j2++) {
|
|
16074
|
+
const entry = clock.timersPromisesModuleMethods[j2];
|
|
16118
16075
|
timersPromisesModule[entry.methodName] = entry.original;
|
|
16119
16076
|
}
|
|
16120
16077
|
}
|
|
@@ -16619,7 +16576,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
|
|
|
16619
16576
|
});
|
|
16620
16577
|
};
|
|
16621
16578
|
}
|
|
16622
|
-
clock.reset = function
|
|
16579
|
+
clock.reset = function reset() {
|
|
16623
16580
|
nanos = 0;
|
|
16624
16581
|
clock.timers = {};
|
|
16625
16582
|
clock.jobs = [];
|
|
@@ -16690,7 +16647,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
|
|
|
16690
16647
|
`non-existent timers and/or objects cannot be faked: '${timer}'`
|
|
16691
16648
|
);
|
|
16692
16649
|
}
|
|
16693
|
-
let i,
|
|
16650
|
+
let i, l2;
|
|
16694
16651
|
const clock = createClock(config2.now, config2.loopLimit);
|
|
16695
16652
|
clock.shouldClearNativeTimers = config2.shouldClearNativeTimers;
|
|
16696
16653
|
clock.uninstall = function() {
|
|
@@ -16741,7 +16698,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
|
|
|
16741
16698
|
if (_global === globalObject && timersPromisesModule) {
|
|
16742
16699
|
clock.timersPromisesModuleMethods = [];
|
|
16743
16700
|
}
|
|
16744
|
-
for (i = 0,
|
|
16701
|
+
for (i = 0, l2 = clock.methods.length; i < l2; i++) {
|
|
16745
16702
|
const nameOfMethodToReplace = clock.methods[i];
|
|
16746
16703
|
if (!isPresent[nameOfMethodToReplace]) {
|
|
16747
16704
|
handleMissingTimer(nameOfMethodToReplace);
|
|
@@ -17370,7 +17327,7 @@ function createVitest() {
|
|
|
17370
17327
|
return item;
|
|
17371
17328
|
},
|
|
17372
17329
|
isMockFunction(fn2) {
|
|
17373
|
-
return
|
|
17330
|
+
return isMockFunction(fn2);
|
|
17374
17331
|
},
|
|
17375
17332
|
clearAllMocks() {
|
|
17376
17333
|
[...mocks].reverse().forEach((spy) => spy.mockClear());
|
|
@@ -17462,7 +17419,7 @@ function getImporter(name) {
|
|
|
17462
17419
|
return (stack == null ? void 0 : stack.file) || "";
|
|
17463
17420
|
}
|
|
17464
17421
|
|
|
17465
|
-
//
|
|
17422
|
+
// ../../../../node_modules/.pnpm/vitest@3.2.4_@types+debug@4.1.12_@types+node@20.19.27_@vitest+ui@3.2.4_jiti@2.6.1_jsdom_ad9a99fae9beb8635e1487dc560ee7c6/node_modules/vitest/dist/index.js
|
|
17466
17423
|
var import_expect_type = __toESM(require_dist(), 1);
|
|
17467
17424
|
|
|
17468
17425
|
export {
|
|
@@ -17511,7 +17468,7 @@ export {
|
|
|
17511
17468
|
* LICENSE file in the root directory of this source tree.
|
|
17512
17469
|
*)
|
|
17513
17470
|
|
|
17514
|
-
chai/
|
|
17471
|
+
chai/index.js:
|
|
17515
17472
|
(*!
|
|
17516
17473
|
* Chai - flag utility
|
|
17517
17474
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
@@ -17762,4 +17719,4 @@ chai/chai.js:
|
|
|
17762
17719
|
* @license MIT License
|
|
17763
17720
|
*)
|
|
17764
17721
|
*/
|
|
17765
|
-
//# sourceMappingURL=chunk-
|
|
17722
|
+
//# sourceMappingURL=chunk-L6PM6AT3.mjs.map
|