@noma.to/qwik-testing-library 1.3.0 → 1.3.1
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/lib/lib/mock.qwik.cjs +3 -3
- package/lib/lib/mock.qwik.mjs +1 -1
- package/lib/lib/qwik-testing-library.qwik.cjs +2 -2
- package/lib/lib/qwik-testing-library.qwik.mjs +3 -3
- package/lib/lib/qwikloader.qwik.cjs +1 -1
- package/lib/lib/qwikloader.qwik.mjs +1 -1
- package/lib/node_modules/.pnpm/{@vitest_expect@2.1.8 → @vitest_expect@3.0.5}/node_modules/@vitest/expect/dist/index.qwik.cjs +175 -35
- package/lib/node_modules/.pnpm/{@vitest_expect@2.1.8 → @vitest_expect@3.0.5}/node_modules/@vitest/expect/dist/index.qwik.mjs +180 -40
- package/lib/node_modules/.pnpm/{@vitest_pretty-format@2.1.8 → @vitest_pretty-format@3.0.5}/node_modules/@vitest/pretty-format/dist/index.qwik.cjs +301 -10
- package/lib/node_modules/.pnpm/{@vitest_pretty-format@2.1.8 → @vitest_pretty-format@3.0.5}/node_modules/@vitest/pretty-format/dist/index.qwik.mjs +306 -15
- package/lib/node_modules/.pnpm/{@vitest_runner@2.1.8 → @vitest_runner@3.0.5}/node_modules/@vitest/runner/dist/chunk-tasks.qwik.cjs +1 -1
- package/lib/node_modules/.pnpm/{@vitest_runner@2.1.8 → @vitest_runner@3.0.5}/node_modules/@vitest/runner/dist/chunk-tasks.qwik.mjs +1 -1
- package/lib/node_modules/.pnpm/{@vitest_runner@2.1.8 → @vitest_runner@3.0.5}/node_modules/@vitest/runner/dist/index.qwik.cjs +130 -44
- package/lib/node_modules/.pnpm/{@vitest_runner@2.1.8 → @vitest_runner@3.0.5}/node_modules/@vitest/runner/dist/index.qwik.mjs +130 -44
- package/lib/node_modules/.pnpm/{@vitest_snapshot@2.1.8 → @vitest_snapshot@3.0.5}/node_modules/@vitest/snapshot/dist/index.qwik.cjs +119 -84
- package/lib/node_modules/.pnpm/{@vitest_snapshot@2.1.8 → @vitest_snapshot@3.0.5}/node_modules/@vitest/snapshot/dist/index.qwik.mjs +119 -84
- package/lib/node_modules/.pnpm/{@vitest_spy@2.1.8 → @vitest_spy@3.0.5}/node_modules/@vitest/spy/dist/index.qwik.cjs +20 -3
- package/lib/node_modules/.pnpm/{@vitest_spy@2.1.8 → @vitest_spy@3.0.5}/node_modules/@vitest/spy/dist/index.qwik.mjs +20 -3
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.qwik.cjs +3 -3
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.qwik.mjs +3 -3
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/diff.qwik.cjs +37 -21
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/diff.qwik.mjs +37 -21
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/error.qwik.cjs +2 -2
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/error.qwik.mjs +2 -2
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/helpers.qwik.cjs +1 -1
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/helpers.qwik.mjs +1 -1
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/index.qwik.cjs +6 -4
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/index.qwik.mjs +6 -4
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/source-map.qwik.cjs +1 -1
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.8 → @vitest_utils@3.0.5}/node_modules/@vitest/utils/dist/source-map.qwik.mjs +1 -1
- package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/index.qwik.mjs +6 -6
- package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/map.qwik.cjs +1 -3
- package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/map.qwik.mjs +1 -3
- package/lib/node_modules/.pnpm/{pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.qwik.cjs → pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.qwik.cjs} +2 -2
- package/lib/node_modules/.pnpm/{pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.qwik.mjs → pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.qwik.mjs} +2 -2
- package/lib/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.cjs +4 -0
- package/lib/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.mjs +5 -0
- package/lib/node_modules/.pnpm/{vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/utils.C8RiOc4B.qwik.cjs +1 -1
- package/lib/node_modules/.pnpm/{vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/utils.C8RiOc4B.qwik.mjs +1 -1
- package/lib/node_modules/.pnpm/{vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.DgezovHB.qwik.cjs → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.CjhMlMwf.qwik.cjs} +439 -211
- package/lib/node_modules/.pnpm/{vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.DgezovHB.qwik.mjs → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.CjhMlMwf.qwik.mjs} +415 -187
- package/package.json +8 -8
- package/lib/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/browser.qwik.cjs +0 -7
- package/lib/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/browser.qwik.mjs +0 -8
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/arguments.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/arguments.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/array.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/array.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/bigint.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/bigint.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/class.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/class.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/date.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/date.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/error.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/error.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/function.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/function.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/helpers.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/helpers.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/html.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/html.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/index.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/number.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/number.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/object.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/object.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/promise.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/promise.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/regexp.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/regexp.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/set.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/set.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/string.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/string.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/symbol.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/symbol.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/typedarray.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/typedarray.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{tinyrainbow@1.2.0 → tinyrainbow@2.0.0}/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{tinyrainbow@1.2.0 → tinyrainbow@2.0.0}/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/date.W2xKR2qe.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0 → vitest@3.0.5_@types_node@22.13.1_@vitest_ui@3.0.5_jiti@2.4.2_jsdom@26.0.0}/node_modules/vitest/dist/chunks/date.W2xKR2qe.qwik.mjs +0 -0
|
@@ -3,11 +3,11 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
6
|
-
const index = require("../../../../../@vitest_pretty-format@
|
|
7
|
-
const browser = require("../../../../../tinyrainbow@
|
|
6
|
+
const index = require("../../../../../@vitest_pretty-format@3.0.5/node_modules/@vitest/pretty-format/dist/index.qwik.cjs");
|
|
7
|
+
const browser = require("../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.cjs");
|
|
8
8
|
const chunk_commonjsHelpers = require("./chunk-_commonjsHelpers.qwik.cjs");
|
|
9
9
|
const helpers = require("./helpers.qwik.cjs");
|
|
10
|
-
require("../../../../../loupe@3.1.
|
|
10
|
+
require("../../../../../loupe@3.1.3/node_modules/loupe/lib/index.qwik.cjs");
|
|
11
11
|
const DIFF_DELETE = -1;
|
|
12
12
|
const DIFF_INSERT = 1;
|
|
13
13
|
const DIFF_EQUAL = 0;
|
|
@@ -1064,14 +1064,14 @@ const DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0;
|
|
|
1064
1064
|
function getDefaultOptions() {
|
|
1065
1065
|
return {
|
|
1066
1066
|
aAnnotation: "Expected",
|
|
1067
|
-
aColor: browser.
|
|
1067
|
+
aColor: browser.green,
|
|
1068
1068
|
aIndicator: "-",
|
|
1069
1069
|
bAnnotation: "Received",
|
|
1070
|
-
bColor: browser.
|
|
1070
|
+
bColor: browser.red,
|
|
1071
1071
|
bIndicator: "+",
|
|
1072
|
-
changeColor: browser.
|
|
1072
|
+
changeColor: browser.inverse,
|
|
1073
1073
|
changeLineTrailingSpaceColor: noColor,
|
|
1074
|
-
commonColor: browser.
|
|
1074
|
+
commonColor: browser.dim,
|
|
1075
1075
|
commonIndicator: " ",
|
|
1076
1076
|
commonLineTrailingSpaceColor: noColor,
|
|
1077
1077
|
compareKeys: void 0,
|
|
@@ -1080,7 +1080,8 @@ function getDefaultOptions() {
|
|
|
1080
1080
|
expand: true,
|
|
1081
1081
|
includeChangeCounts: false,
|
|
1082
1082
|
omitAnnotationLines: false,
|
|
1083
|
-
patchColor: browser.
|
|
1083
|
+
patchColor: browser.yellow,
|
|
1084
|
+
printBasicPrototype: false,
|
|
1084
1085
|
truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT,
|
|
1085
1086
|
truncateAnnotation: "... Diff result is truncated",
|
|
1086
1087
|
truncateAnnotationColor: noColor
|
|
@@ -1514,14 +1515,15 @@ const PLUGINS = [
|
|
|
1514
1515
|
DOMElement,
|
|
1515
1516
|
DOMCollection,
|
|
1516
1517
|
Immutable,
|
|
1517
|
-
AsymmetricMatcher
|
|
1518
|
+
AsymmetricMatcher,
|
|
1519
|
+
index.plugins.Error
|
|
1518
1520
|
];
|
|
1519
1521
|
const FORMAT_OPTIONS = {
|
|
1520
1522
|
plugins: PLUGINS
|
|
1521
1523
|
};
|
|
1522
1524
|
const FALLBACK_FORMAT_OPTIONS = {
|
|
1523
1525
|
callToJSON: false,
|
|
1524
|
-
maxDepth:
|
|
1526
|
+
maxDepth: 8,
|
|
1525
1527
|
plugins: PLUGINS
|
|
1526
1528
|
};
|
|
1527
1529
|
function diff(a, b, options) {
|
|
@@ -1542,10 +1544,16 @@ function diff(a, b, options) {
|
|
|
1542
1544
|
omitDifference = expectedType === "string";
|
|
1543
1545
|
}
|
|
1544
1546
|
if (expectedType !== getType(b)) {
|
|
1547
|
+
let truncate2 = function(s) {
|
|
1548
|
+
return s.length <= MAX_LENGTH ? s : `${s.slice(0, MAX_LENGTH)}...`;
|
|
1549
|
+
};
|
|
1545
1550
|
const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);
|
|
1546
1551
|
const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
|
|
1547
|
-
|
|
1548
|
-
|
|
1552
|
+
let aDisplay = index.format(a, formatOptions);
|
|
1553
|
+
let bDisplay = index.format(b, formatOptions);
|
|
1554
|
+
const MAX_LENGTH = 1e5;
|
|
1555
|
+
aDisplay = truncate2(aDisplay);
|
|
1556
|
+
bDisplay = truncate2(bDisplay);
|
|
1549
1557
|
const aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)}
|
|
1550
1558
|
${aDisplay}`;
|
|
1551
1559
|
const bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)}
|
|
@@ -1607,10 +1615,11 @@ ${difference}`;
|
|
|
1607
1615
|
return difference;
|
|
1608
1616
|
}
|
|
1609
1617
|
function getFormatOptions(formatOptions, options) {
|
|
1610
|
-
const { compareKeys } = normalizeDiffOptions(options);
|
|
1618
|
+
const { compareKeys, printBasicPrototype } = normalizeDiffOptions(options);
|
|
1611
1619
|
return {
|
|
1612
1620
|
...formatOptions,
|
|
1613
|
-
compareKeys
|
|
1621
|
+
compareKeys,
|
|
1622
|
+
printBasicPrototype
|
|
1614
1623
|
};
|
|
1615
1624
|
}
|
|
1616
1625
|
function getObjectsDifference(a, b, formatOptions, options) {
|
|
@@ -1641,13 +1650,13 @@ function isReplaceable(obj1, obj2) {
|
|
|
1641
1650
|
const obj2Type = helpers.getType(obj2);
|
|
1642
1651
|
return obj1Type === obj2Type && (obj1Type === "Object" || obj1Type === "Array");
|
|
1643
1652
|
}
|
|
1644
|
-
function printDiffOrStringify(
|
|
1653
|
+
function printDiffOrStringify(received, expected, options) {
|
|
1645
1654
|
const { aAnnotation, bAnnotation } = normalizeDiffOptions(options);
|
|
1646
1655
|
if (typeof expected === "string" && typeof received === "string" && expected.length > 0 && received.length > 0 && expected.length <= MAX_DIFF_STRING_LENGTH && received.length <= MAX_DIFF_STRING_LENGTH && expected !== received) {
|
|
1647
1656
|
if (expected.includes("\n") || received.includes("\n")) {
|
|
1648
|
-
return diffStringsUnified(
|
|
1657
|
+
return diffStringsUnified(expected, received, options);
|
|
1649
1658
|
}
|
|
1650
|
-
const [diffs] = diffStringsRaw(
|
|
1659
|
+
const [diffs] = diffStringsRaw(expected, received);
|
|
1651
1660
|
const hasCommonDiff2 = diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
|
|
1652
1661
|
const printLabel = getLabelPrinter(aAnnotation, bAnnotation);
|
|
1653
1662
|
const expectedLine = printLabel(aAnnotation) + printExpected(
|
|
@@ -1661,11 +1670,18 @@ ${receivedLine}`;
|
|
|
1661
1670
|
}
|
|
1662
1671
|
const clonedExpected = helpers.deepClone(expected, { forceWritable: true });
|
|
1663
1672
|
const clonedReceived = helpers.deepClone(received, { forceWritable: true });
|
|
1664
|
-
const { replacedExpected, replacedActual } = replaceAsymmetricMatcher(
|
|
1673
|
+
const { replacedExpected, replacedActual } = replaceAsymmetricMatcher(clonedReceived, clonedExpected);
|
|
1665
1674
|
const difference = diff(replacedExpected, replacedActual, options);
|
|
1666
1675
|
return difference;
|
|
1667
1676
|
}
|
|
1668
1677
|
function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {
|
|
1678
|
+
if (actual instanceof Error && expected instanceof Error && typeof actual.cause !== "undefined" && typeof expected.cause === "undefined") {
|
|
1679
|
+
delete actual.cause;
|
|
1680
|
+
return {
|
|
1681
|
+
replacedActual: actual,
|
|
1682
|
+
replacedExpected: expected
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1669
1685
|
if (!isReplaceable(actual, expected)) {
|
|
1670
1686
|
return { replacedActual: actual, replacedExpected: expected };
|
|
1671
1687
|
}
|
|
@@ -1713,14 +1729,14 @@ function replaceTrailingSpaces(text) {
|
|
|
1713
1729
|
return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));
|
|
1714
1730
|
}
|
|
1715
1731
|
function printReceived(object) {
|
|
1716
|
-
return browser.
|
|
1732
|
+
return browser.red(replaceTrailingSpaces(chunk_commonjsHelpers.s(object)));
|
|
1717
1733
|
}
|
|
1718
1734
|
function printExpected(value) {
|
|
1719
|
-
return browser.
|
|
1735
|
+
return browser.green(replaceTrailingSpaces(chunk_commonjsHelpers.s(value)));
|
|
1720
1736
|
}
|
|
1721
1737
|
function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
|
|
1722
1738
|
return diffs.reduce(
|
|
1723
|
-
(reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? browser.
|
|
1739
|
+
(reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? browser.inverse(diff2[1]) : diff2[1] : ""),
|
|
1724
1740
|
""
|
|
1725
1741
|
);
|
|
1726
1742
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { format, plugins } from "../../../../../@vitest_pretty-format@
|
|
5
|
-
import
|
|
4
|
+
import { format, plugins } from "../../../../../@vitest_pretty-format@3.0.5/node_modules/@vitest/pretty-format/dist/index.qwik.mjs";
|
|
5
|
+
import s from "../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.mjs";
|
|
6
6
|
import { s as stringify, g as getDefaultExportFromCjs } from "./chunk-_commonjsHelpers.qwik.mjs";
|
|
7
7
|
import { deepClone, getOwnProperties, getType as getType$1 } from "./helpers.qwik.mjs";
|
|
8
|
-
import "../../../../../loupe@3.1.
|
|
8
|
+
import "../../../../../loupe@3.1.3/node_modules/loupe/lib/index.qwik.mjs";
|
|
9
9
|
const DIFF_DELETE = -1;
|
|
10
10
|
const DIFF_INSERT = 1;
|
|
11
11
|
const DIFF_EQUAL = 0;
|
|
@@ -1062,14 +1062,14 @@ const DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0;
|
|
|
1062
1062
|
function getDefaultOptions() {
|
|
1063
1063
|
return {
|
|
1064
1064
|
aAnnotation: "Expected",
|
|
1065
|
-
aColor:
|
|
1065
|
+
aColor: s.green,
|
|
1066
1066
|
aIndicator: "-",
|
|
1067
1067
|
bAnnotation: "Received",
|
|
1068
|
-
bColor:
|
|
1068
|
+
bColor: s.red,
|
|
1069
1069
|
bIndicator: "+",
|
|
1070
|
-
changeColor:
|
|
1070
|
+
changeColor: s.inverse,
|
|
1071
1071
|
changeLineTrailingSpaceColor: noColor,
|
|
1072
|
-
commonColor:
|
|
1072
|
+
commonColor: s.dim,
|
|
1073
1073
|
commonIndicator: " ",
|
|
1074
1074
|
commonLineTrailingSpaceColor: noColor,
|
|
1075
1075
|
compareKeys: void 0,
|
|
@@ -1078,7 +1078,8 @@ function getDefaultOptions() {
|
|
|
1078
1078
|
expand: true,
|
|
1079
1079
|
includeChangeCounts: false,
|
|
1080
1080
|
omitAnnotationLines: false,
|
|
1081
|
-
patchColor:
|
|
1081
|
+
patchColor: s.yellow,
|
|
1082
|
+
printBasicPrototype: false,
|
|
1082
1083
|
truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT,
|
|
1083
1084
|
truncateAnnotation: "... Diff result is truncated",
|
|
1084
1085
|
truncateAnnotationColor: noColor
|
|
@@ -1512,14 +1513,15 @@ const PLUGINS = [
|
|
|
1512
1513
|
DOMElement,
|
|
1513
1514
|
DOMCollection,
|
|
1514
1515
|
Immutable,
|
|
1515
|
-
AsymmetricMatcher
|
|
1516
|
+
AsymmetricMatcher,
|
|
1517
|
+
plugins.Error
|
|
1516
1518
|
];
|
|
1517
1519
|
const FORMAT_OPTIONS = {
|
|
1518
1520
|
plugins: PLUGINS
|
|
1519
1521
|
};
|
|
1520
1522
|
const FALLBACK_FORMAT_OPTIONS = {
|
|
1521
1523
|
callToJSON: false,
|
|
1522
|
-
maxDepth:
|
|
1524
|
+
maxDepth: 8,
|
|
1523
1525
|
plugins: PLUGINS
|
|
1524
1526
|
};
|
|
1525
1527
|
function diff(a, b, options) {
|
|
@@ -1540,10 +1542,16 @@ function diff(a, b, options) {
|
|
|
1540
1542
|
omitDifference = expectedType === "string";
|
|
1541
1543
|
}
|
|
1542
1544
|
if (expectedType !== getType(b)) {
|
|
1545
|
+
let truncate2 = function(s2) {
|
|
1546
|
+
return s2.length <= MAX_LENGTH ? s2 : `${s2.slice(0, MAX_LENGTH)}...`;
|
|
1547
|
+
};
|
|
1543
1548
|
const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);
|
|
1544
1549
|
const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
|
|
1545
|
-
|
|
1546
|
-
|
|
1550
|
+
let aDisplay = format(a, formatOptions);
|
|
1551
|
+
let bDisplay = format(b, formatOptions);
|
|
1552
|
+
const MAX_LENGTH = 1e5;
|
|
1553
|
+
aDisplay = truncate2(aDisplay);
|
|
1554
|
+
bDisplay = truncate2(bDisplay);
|
|
1547
1555
|
const aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)}
|
|
1548
1556
|
${aDisplay}`;
|
|
1549
1557
|
const bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)}
|
|
@@ -1605,10 +1613,11 @@ ${difference}`;
|
|
|
1605
1613
|
return difference;
|
|
1606
1614
|
}
|
|
1607
1615
|
function getFormatOptions(formatOptions, options) {
|
|
1608
|
-
const { compareKeys } = normalizeDiffOptions(options);
|
|
1616
|
+
const { compareKeys, printBasicPrototype } = normalizeDiffOptions(options);
|
|
1609
1617
|
return {
|
|
1610
1618
|
...formatOptions,
|
|
1611
|
-
compareKeys
|
|
1619
|
+
compareKeys,
|
|
1620
|
+
printBasicPrototype
|
|
1612
1621
|
};
|
|
1613
1622
|
}
|
|
1614
1623
|
function getObjectsDifference(a, b, formatOptions, options) {
|
|
@@ -1639,13 +1648,13 @@ function isReplaceable(obj1, obj2) {
|
|
|
1639
1648
|
const obj2Type = getType$1(obj2);
|
|
1640
1649
|
return obj1Type === obj2Type && (obj1Type === "Object" || obj1Type === "Array");
|
|
1641
1650
|
}
|
|
1642
|
-
function printDiffOrStringify(
|
|
1651
|
+
function printDiffOrStringify(received, expected, options) {
|
|
1643
1652
|
const { aAnnotation, bAnnotation } = normalizeDiffOptions(options);
|
|
1644
1653
|
if (typeof expected === "string" && typeof received === "string" && expected.length > 0 && received.length > 0 && expected.length <= MAX_DIFF_STRING_LENGTH && received.length <= MAX_DIFF_STRING_LENGTH && expected !== received) {
|
|
1645
1654
|
if (expected.includes("\n") || received.includes("\n")) {
|
|
1646
|
-
return diffStringsUnified(
|
|
1655
|
+
return diffStringsUnified(expected, received, options);
|
|
1647
1656
|
}
|
|
1648
|
-
const [diffs] = diffStringsRaw(
|
|
1657
|
+
const [diffs] = diffStringsRaw(expected, received);
|
|
1649
1658
|
const hasCommonDiff2 = diffs.some((diff2) => diff2[0] === DIFF_EQUAL);
|
|
1650
1659
|
const printLabel = getLabelPrinter(aAnnotation, bAnnotation);
|
|
1651
1660
|
const expectedLine = printLabel(aAnnotation) + printExpected(
|
|
@@ -1659,11 +1668,18 @@ ${receivedLine}`;
|
|
|
1659
1668
|
}
|
|
1660
1669
|
const clonedExpected = deepClone(expected, { forceWritable: true });
|
|
1661
1670
|
const clonedReceived = deepClone(received, { forceWritable: true });
|
|
1662
|
-
const { replacedExpected, replacedActual } = replaceAsymmetricMatcher(
|
|
1671
|
+
const { replacedExpected, replacedActual } = replaceAsymmetricMatcher(clonedReceived, clonedExpected);
|
|
1663
1672
|
const difference = diff(replacedExpected, replacedActual, options);
|
|
1664
1673
|
return difference;
|
|
1665
1674
|
}
|
|
1666
1675
|
function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {
|
|
1676
|
+
if (actual instanceof Error && expected instanceof Error && typeof actual.cause !== "undefined" && typeof expected.cause === "undefined") {
|
|
1677
|
+
delete actual.cause;
|
|
1678
|
+
return {
|
|
1679
|
+
replacedActual: actual,
|
|
1680
|
+
replacedExpected: expected
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1667
1683
|
if (!isReplaceable(actual, expected)) {
|
|
1668
1684
|
return { replacedActual: actual, replacedExpected: expected };
|
|
1669
1685
|
}
|
|
@@ -1711,14 +1727,14 @@ function replaceTrailingSpaces(text) {
|
|
|
1711
1727
|
return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));
|
|
1712
1728
|
}
|
|
1713
1729
|
function printReceived(object) {
|
|
1714
|
-
return
|
|
1730
|
+
return s.red(replaceTrailingSpaces(stringify(object)));
|
|
1715
1731
|
}
|
|
1716
1732
|
function printExpected(value) {
|
|
1717
|
-
return
|
|
1733
|
+
return s.green(replaceTrailingSpaces(stringify(value)));
|
|
1718
1734
|
}
|
|
1719
1735
|
function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
|
|
1720
1736
|
return diffs.reduce(
|
|
1721
|
-
(reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ?
|
|
1737
|
+
(reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? s.inverse(diff2[1]) : diff2[1] : ""),
|
|
1722
1738
|
""
|
|
1723
1739
|
);
|
|
1724
1740
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const diff = require("./diff.qwik.cjs");
|
|
4
4
|
const chunk_commonjsHelpers = require("./chunk-_commonjsHelpers.qwik.cjs");
|
|
5
|
-
require("../../../../../tinyrainbow@
|
|
6
|
-
require("../../../../../loupe@3.1.
|
|
5
|
+
require("../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.cjs");
|
|
6
|
+
require("../../../../../loupe@3.1.3/node_modules/loupe/lib/index.qwik.cjs");
|
|
7
7
|
const IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
|
|
8
8
|
const IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
9
9
|
function isImmutable(v) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { printDiffOrStringify } from "./diff.qwik.mjs";
|
|
2
2
|
import { s as stringify, f as format } from "./chunk-_commonjsHelpers.qwik.mjs";
|
|
3
|
-
import "../../../../../tinyrainbow@
|
|
4
|
-
import "../../../../../loupe@3.1.
|
|
3
|
+
import "../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.mjs";
|
|
4
|
+
import "../../../../../loupe@3.1.3/node_modules/loupe/lib/index.qwik.mjs";
|
|
5
5
|
const IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
|
|
6
6
|
const IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
7
7
|
function isImmutable(v) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
function createSimpleStackTrace(options) {
|
|
4
|
-
const { message = "$$stack trace error", stackTraceLimit = 1 } = options;
|
|
4
|
+
const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
|
|
5
5
|
const limit = Error.stackTraceLimit;
|
|
6
6
|
const prepareStackTrace = Error.prepareStackTrace;
|
|
7
7
|
Error.stackTraceLimit = stackTraceLimit;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function createSimpleStackTrace(options) {
|
|
2
|
-
const { message = "$$stack trace error", stackTraceLimit = 1 } = options;
|
|
2
|
+
const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
|
|
3
3
|
const limit = Error.stackTraceLimit;
|
|
4
4
|
const prepareStackTrace = Error.prepareStackTrace;
|
|
5
5
|
Error.stackTraceLimit = stackTraceLimit;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("../../../../../tinyrainbow@
|
|
4
|
-
require("../../../../../loupe@3.1.
|
|
3
|
+
require("../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.cjs");
|
|
4
|
+
require("../../../../../loupe@3.1.3/node_modules/loupe/lib/index.qwik.cjs");
|
|
5
5
|
var jsTokens_1;
|
|
6
6
|
var hasRequiredJsTokens;
|
|
7
7
|
function requireJsTokens() {
|
|
@@ -456,7 +456,8 @@ function getSafeTimers() {
|
|
|
456
456
|
clearInterval: safeClearInterval,
|
|
457
457
|
clearTimeout: safeClearTimeout,
|
|
458
458
|
setImmediate: safeSetImmediate,
|
|
459
|
-
clearImmediate: safeClearImmediate
|
|
459
|
+
clearImmediate: safeClearImmediate,
|
|
460
|
+
queueMicrotask: safeQueueMicrotask
|
|
460
461
|
} = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
|
461
462
|
const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() };
|
|
462
463
|
return {
|
|
@@ -466,7 +467,8 @@ function getSafeTimers() {
|
|
|
466
467
|
clearInterval: safeClearInterval,
|
|
467
468
|
clearTimeout: safeClearTimeout,
|
|
468
469
|
setImmediate: safeSetImmediate,
|
|
469
|
-
clearImmediate: safeClearImmediate
|
|
470
|
+
clearImmediate: safeClearImmediate,
|
|
471
|
+
queueMicrotask: safeQueueMicrotask
|
|
470
472
|
};
|
|
471
473
|
}
|
|
472
474
|
exports.getSafeTimers = getSafeTimers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../../../tinyrainbow@
|
|
2
|
-
import "../../../../../loupe@3.1.
|
|
1
|
+
import "../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.mjs";
|
|
2
|
+
import "../../../../../loupe@3.1.3/node_modules/loupe/lib/index.qwik.mjs";
|
|
3
3
|
var jsTokens_1;
|
|
4
4
|
var hasRequiredJsTokens;
|
|
5
5
|
function requireJsTokens() {
|
|
@@ -454,7 +454,8 @@ function getSafeTimers() {
|
|
|
454
454
|
clearInterval: safeClearInterval,
|
|
455
455
|
clearTimeout: safeClearTimeout,
|
|
456
456
|
setImmediate: safeSetImmediate,
|
|
457
|
-
clearImmediate: safeClearImmediate
|
|
457
|
+
clearImmediate: safeClearImmediate,
|
|
458
|
+
queueMicrotask: safeQueueMicrotask
|
|
458
459
|
} = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
|
459
460
|
const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() };
|
|
460
461
|
return {
|
|
@@ -464,7 +465,8 @@ function getSafeTimers() {
|
|
|
464
465
|
clearInterval: safeClearInterval,
|
|
465
466
|
clearTimeout: safeClearTimeout,
|
|
466
467
|
setImmediate: safeSetImmediate,
|
|
467
|
-
clearImmediate: safeClearImmediate
|
|
468
|
+
clearImmediate: safeClearImmediate,
|
|
469
|
+
queueMicrotask: safeQueueMicrotask
|
|
468
470
|
};
|
|
469
471
|
}
|
|
470
472
|
export {
|
|
@@ -200,7 +200,7 @@ function parseSingleV8Stack(raw) {
|
|
|
200
200
|
if (file.startsWith("file://")) {
|
|
201
201
|
file = file.slice(7);
|
|
202
202
|
}
|
|
203
|
-
file = resolve(file);
|
|
203
|
+
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
|
|
204
204
|
if (method) {
|
|
205
205
|
method = method.replace(/__vite_ssr_import_\d+__\./g, "");
|
|
206
206
|
}
|
|
@@ -198,7 +198,7 @@ function parseSingleV8Stack(raw) {
|
|
|
198
198
|
if (file.startsWith("file://")) {
|
|
199
199
|
file = file.slice(7);
|
|
200
200
|
}
|
|
201
|
-
file = resolve(file);
|
|
201
|
+
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
|
|
202
202
|
if (method) {
|
|
203
203
|
method = method.replace(/__vite_ssr_import_\d+__\./g, "");
|
|
204
204
|
}
|
package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/index.qwik.mjs
RENAMED
|
@@ -11,9 +11,9 @@ import inspectString from "./string.qwik.mjs";
|
|
|
11
11
|
import inspectSymbol from "./symbol.qwik.mjs";
|
|
12
12
|
import inspectPromise from "./promise.qwik.mjs";
|
|
13
13
|
import inspectClass from "./class.qwik.mjs";
|
|
14
|
-
import inspectObject from "./object.qwik.mjs";
|
|
14
|
+
import inspectObject$1 from "./object.qwik.mjs";
|
|
15
15
|
import inspectArguments from "./arguments.qwik.mjs";
|
|
16
|
-
import inspectObject
|
|
16
|
+
import inspectObject from "./error.qwik.mjs";
|
|
17
17
|
import inspectHTML, { inspectHTMLCollection } from "./html.qwik.mjs";
|
|
18
18
|
import { normaliseOptions } from "./helpers.qwik.mjs";
|
|
19
19
|
const symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function";
|
|
@@ -65,7 +65,7 @@ const baseTypesMap = {
|
|
|
65
65
|
Generator: () => "",
|
|
66
66
|
DataView: () => "",
|
|
67
67
|
ArrayBuffer: () => "",
|
|
68
|
-
Error: inspectObject
|
|
68
|
+
Error: inspectObject,
|
|
69
69
|
HTMLCollection: inspectHTMLCollection,
|
|
70
70
|
NodeList: inspectHTMLCollection
|
|
71
71
|
};
|
|
@@ -108,7 +108,7 @@ function inspect(value, opts = {}) {
|
|
|
108
108
|
}
|
|
109
109
|
const proto = value ? Object.getPrototypeOf(value) : false;
|
|
110
110
|
if (proto === Object.prototype || proto === null) {
|
|
111
|
-
return inspectObject(value, options);
|
|
111
|
+
return inspectObject$1(value, options);
|
|
112
112
|
}
|
|
113
113
|
if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) {
|
|
114
114
|
return inspectHTML(value, options);
|
|
@@ -117,10 +117,10 @@ function inspect(value, opts = {}) {
|
|
|
117
117
|
if (value.constructor !== Object) {
|
|
118
118
|
return inspectClass(value, options);
|
|
119
119
|
}
|
|
120
|
-
return inspectObject(value, options);
|
|
120
|
+
return inspectObject$1(value, options);
|
|
121
121
|
}
|
|
122
122
|
if (value === Object(value)) {
|
|
123
|
-
return inspectObject(value, options);
|
|
123
|
+
return inspectObject$1(value, options);
|
|
124
124
|
}
|
|
125
125
|
return options.stylize(String(value), type);
|
|
126
126
|
}
|
package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/map.qwik.cjs
RENAMED
|
@@ -15,10 +15,8 @@ function mapToEntries(map) {
|
|
|
15
15
|
return entries;
|
|
16
16
|
}
|
|
17
17
|
function inspectMap(map, options) {
|
|
18
|
-
|
|
19
|
-
if (size <= 0) {
|
|
18
|
+
if (map.size === 0)
|
|
20
19
|
return "Map{}";
|
|
21
|
-
}
|
|
22
20
|
options.truncate -= 7;
|
|
23
21
|
return `Map{ ${helpers.inspectList(mapToEntries(map), options, inspectMapEntry)} }`;
|
|
24
22
|
}
|
package/lib/node_modules/.pnpm/{loupe@3.1.2 → loupe@3.1.3}/node_modules/loupe/lib/map.qwik.mjs
RENAMED
|
@@ -14,10 +14,8 @@ function mapToEntries(map) {
|
|
|
14
14
|
return entries;
|
|
15
15
|
}
|
|
16
16
|
function inspectMap(map, options) {
|
|
17
|
-
|
|
18
|
-
if (size <= 0) {
|
|
17
|
+
if (map.size === 0)
|
|
19
18
|
return "Map{}";
|
|
20
|
-
}
|
|
21
19
|
options.truncate -= 7;
|
|
22
20
|
return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;
|
|
23
21
|
}
|
|
@@ -95,7 +95,7 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
95
95
|
const isAbsolute = function(p) {
|
|
96
96
|
return _IS_ABSOLUTE_RE.test(p);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
98
|
+
exports.a = normalizeString;
|
|
99
|
+
exports.g = normalizeWindowsPath;
|
|
99
100
|
exports.i = isAbsolute;
|
|
100
|
-
exports.n = normalizeWindowsPath;
|
|
101
101
|
exports.r = resolve;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../@vitest_utils@
|
|
3
|
+
const index = require("../../../../../@vitest_utils@3.0.5/node_modules/@vitest/utils/dist/index.qwik.cjs");
|
|
4
4
|
const NAME_WORKER_STATE = "__vitest_worker__";
|
|
5
5
|
function getWorkerState() {
|
|
6
6
|
const workerState = globalThis[NAME_WORKER_STATE];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSafeTimers } from "../../../../../@vitest_utils@
|
|
1
|
+
import { getSafeTimers } from "../../../../../@vitest_utils@3.0.5/node_modules/@vitest/utils/dist/index.qwik.mjs";
|
|
2
2
|
const NAME_WORKER_STATE = "__vitest_worker__";
|
|
3
3
|
function getWorkerState() {
|
|
4
4
|
const workerState = globalThis[NAME_WORKER_STATE];
|