@antdv-next/x-sdk 0.0.2 → 0.0.4
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/LICENSE +21 -0
- package/dist/chat-providers/types/model.d.ts +1 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +76 -0
- package/dist/node_modules/{vitest/dist/@vitest/expect → .pnpm/@vitest_expect@4.1.10/node_modules/@vitest/expect/dist}/index.js +76 -51
- package/dist/node_modules/{vitest/dist/@vitest/pretty-format → .pnpm/@vitest_pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist}/index.js +11 -10
- package/dist/node_modules/{vitest/dist/@vitest/runner → .pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist}/chunk-artifact.js +18 -41
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/index.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/utils.js +2 -0
- package/dist/node_modules/{vitest/dist/@vitest/snapshot → .pnpm/@vitest_snapshot@4.1.10/node_modules/@vitest/snapshot/dist}/index.js +455 -195
- package/dist/node_modules/{vitest/dist/@vitest/spy → .pnpm/@vitest_spy@4.1.10/node_modules/@vitest/spy/dist}/index.js +3 -3
- package/dist/node_modules/{vitest/dist/@vitest/utils → .pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/chunk-pathe.M-eThtNZ.js +2 -2
- package/dist/node_modules/{vitest/dist/@vitest/utils → .pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/diff.js +40 -30
- package/dist/node_modules/{vitest/dist/@vitest/utils → .pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/display.js +3 -3
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/error.js +34 -0
- package/dist/node_modules/{vitest/dist/@vitest/utils → .pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/helpers.js +3 -3
- package/dist/node_modules/{vitest/dist/@vitest/utils → .pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/offset.js +1 -1
- package/dist/node_modules/{vitest/dist/@vitest/utils → .pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/serialize.js +1 -1
- package/dist/node_modules/{vitest/dist/@vitest/utils → .pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/source-map.js +6 -6
- package/dist/node_modules/{vitest/dist/@vitest/utils → .pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/timers.js +1 -1
- package/dist/node_modules/{vitest/dist/vendor/chai.js → .pnpm/chai@6.2.2/node_modules/chai/index.js} +103 -3
- package/dist/node_modules/{vitest/dist/vendor/magic-string.js → .pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js} +4 -76
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.1/node_modules/tinyrainbow/dist/index.js +84 -0
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +4 -0
- package/dist/node_modules/{vitest → .pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest}/dist/chunks/rpc.MzXet3jl.js +2 -2
- package/dist/node_modules/{vitest/dist/chunks/test.CBQUpOM3.js → .pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js} +383 -327
- package/dist/node_modules/{vitest → .pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest}/dist/chunks/utils.BX5Fg8C4.js +3 -3
- package/dist/x-chat/__tests__/index.test.js +3 -2
- package/dist/x-chat/index.js +3 -2
- package/dist/x-conversations/__tests__/index.test.js +2 -2
- package/dist/x-request/__tests__/index.test.js +2 -2
- package/dist/x-stream/__tests__/index.test.d.ts +1 -0
- package/dist/x-stream/__tests__/index.test.js +62 -0
- package/dist/x-stream/index.js +16 -5
- package/package.json +2 -1
- package/dist/node_modules/vitest/dist/@vitest/utils/error.js +0 -27
- package/dist/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -4
- package/dist/node_modules/vitest/dist/vendor/tinyrainbow.js +0 -84
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vitest+spy@4.1.10/node_modules/@vitest/spy/dist/index.js
|
|
2
2
|
function isMockFunction(fn) {
|
|
3
3
|
return typeof fn === "function" && "_isMockFunction" in fn && fn._isMockFunction === true;
|
|
4
4
|
}
|
|
@@ -322,7 +322,7 @@ function copyOriginalStaticProperties(mock, original) {
|
|
|
322
322
|
Object.defineProperty(mock, key, descriptor);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
var ignoreProperties = new Set([
|
|
325
|
+
var ignoreProperties = /* @__PURE__ */ new Set([
|
|
326
326
|
"length",
|
|
327
327
|
"name",
|
|
328
328
|
"prototype",
|
|
@@ -381,4 +381,4 @@ function throwConstructorError(shorthand) {
|
|
|
381
381
|
throw new TypeError(`Cannot use \`${shorthand}\` when called with \`new\`. Use \`mockImplementation\` with a \`class\` keyword instead. See https://vitest.dev/api/mock#class-support for more information.`);
|
|
382
382
|
}
|
|
383
383
|
//#endregion
|
|
384
|
-
export { clearAllMocks, fn, isMockFunction, resetAllMocks, restoreAllMocks, spyOn };
|
|
384
|
+
export { clearAllMocks, createMockInstance, fn, isMockFunction, resetAllMocks, restoreAllMocks, spyOn };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
|
|
2
2
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
3
3
|
function normalizeWindowsPath(input = "") {
|
|
4
4
|
if (!input) return input;
|
|
@@ -77,4 +77,4 @@ var isAbsolute = function(p) {
|
|
|
77
77
|
return _IS_ABSOLUTE_RE.test(p);
|
|
78
78
|
};
|
|
79
79
|
//#endregion
|
|
80
|
-
export { resolve };
|
|
80
|
+
export { resolve as r };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { format, plugins } from "
|
|
1
|
+
import y from "../../../../../tinyrainbow@3.1.1/node_modules/tinyrainbow/dist/index.js";
|
|
2
|
+
import { format, plugins } from "../../../../../@vitest_pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.js";
|
|
3
3
|
import { stringify } from "./display.js";
|
|
4
4
|
import { deepClone, getOwnProperties, getType as getType$1 } from "./helpers.js";
|
|
5
5
|
/**
|
|
@@ -641,7 +641,7 @@ function requireBuild() {
|
|
|
641
641
|
}
|
|
642
642
|
return build;
|
|
643
643
|
}
|
|
644
|
-
var diffSequences =
|
|
644
|
+
var diffSequences = /*@__PURE__*/ getDefaultExportFromCjs(/* @__PURE__ */ requireBuild());
|
|
645
645
|
function formatTrailingSpaces(line, trailingSpaceFormatter) {
|
|
646
646
|
return line.replace(/\s+$/, (match) => trailingSpaceFormatter(match));
|
|
647
647
|
}
|
|
@@ -779,14 +779,14 @@ var DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0;
|
|
|
779
779
|
function getDefaultOptions() {
|
|
780
780
|
return {
|
|
781
781
|
aAnnotation: "Expected",
|
|
782
|
-
aColor:
|
|
782
|
+
aColor: y.green,
|
|
783
783
|
aIndicator: "-",
|
|
784
784
|
bAnnotation: "Received",
|
|
785
|
-
bColor:
|
|
785
|
+
bColor: y.red,
|
|
786
786
|
bIndicator: "+",
|
|
787
|
-
changeColor:
|
|
787
|
+
changeColor: y.inverse,
|
|
788
788
|
changeLineTrailingSpaceColor: noColor,
|
|
789
|
-
commonColor:
|
|
789
|
+
commonColor: y.dim,
|
|
790
790
|
commonIndicator: " ",
|
|
791
791
|
commonLineTrailingSpaceColor: noColor,
|
|
792
792
|
compareKeys: void 0,
|
|
@@ -795,7 +795,7 @@ function getDefaultOptions() {
|
|
|
795
795
|
expand: false,
|
|
796
796
|
includeChangeCounts: false,
|
|
797
797
|
omitAnnotationLines: false,
|
|
798
|
-
patchColor:
|
|
798
|
+
patchColor: y.yellow,
|
|
799
799
|
printBasicPrototype: false,
|
|
800
800
|
truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT,
|
|
801
801
|
truncateAnnotation: "... Diff result is truncated",
|
|
@@ -1127,13 +1127,14 @@ var FALLBACK_FORMAT_OPTIONS = {
|
|
|
1127
1127
|
maxDepth: 8,
|
|
1128
1128
|
plugins: PLUGINS
|
|
1129
1129
|
};
|
|
1130
|
+
var DEFAULT_MEMORIZE = (_, v) => v;
|
|
1130
1131
|
/**
|
|
1131
1132
|
* @param a Expected value
|
|
1132
1133
|
* @param b Received value
|
|
1133
1134
|
* @param options Diff options
|
|
1134
1135
|
* @returns {string | null} a string diff
|
|
1135
1136
|
*/
|
|
1136
|
-
function diff(a, b, options) {
|
|
1137
|
+
function diff(a, b, options, memorize = DEFAULT_MEMORIZE) {
|
|
1137
1138
|
if (Object.is(a, b)) return "";
|
|
1138
1139
|
const aType = getType(a);
|
|
1139
1140
|
let expectedType = aType;
|
|
@@ -1153,23 +1154,29 @@ function diff(a, b, options) {
|
|
|
1153
1154
|
function truncate(s) {
|
|
1154
1155
|
return s.length <= MAX_LENGTH ? s : `${s.slice(0, MAX_LENGTH)}...`;
|
|
1155
1156
|
}
|
|
1156
|
-
aDisplay = truncate(aDisplay);
|
|
1157
|
-
bDisplay = truncate(bDisplay);
|
|
1157
|
+
aDisplay = memorize("expected", truncate(aDisplay));
|
|
1158
|
+
bDisplay = memorize("actual", truncate(bDisplay));
|
|
1158
1159
|
return `${`${aColor(`${aIndicator} ${aAnnotation}:`)}\n${aDisplay}`}\n\n${`${bColor(`${bIndicator} ${bAnnotation}:`)}\n${bDisplay}`}`;
|
|
1159
1160
|
}
|
|
1160
1161
|
if (omitDifference) return;
|
|
1161
1162
|
switch (aType) {
|
|
1162
1163
|
case "string": return diffLinesUnified(a.split("\n"), b.split("\n"), options);
|
|
1163
1164
|
case "boolean":
|
|
1164
|
-
case "number": return comparePrimitive(a, b, options);
|
|
1165
|
-
case "map": return compareObjects(sortMap(a), sortMap(b), options);
|
|
1166
|
-
case "set": return compareObjects(sortSet(a), sortSet(b), options);
|
|
1167
|
-
default: return compareObjects(a, b, options);
|
|
1165
|
+
case "number": return comparePrimitive(a, b, options, memorize);
|
|
1166
|
+
case "map": return compareObjects(sortMap(a), sortMap(b), options, memorize);
|
|
1167
|
+
case "set": return compareObjects(sortSet(a), sortSet(b), options, memorize);
|
|
1168
|
+
default: return compareObjects(a, b, options, memorize);
|
|
1168
1169
|
}
|
|
1169
1170
|
}
|
|
1170
|
-
function
|
|
1171
|
-
|
|
1172
|
-
|
|
1171
|
+
function createMemorize(memory) {
|
|
1172
|
+
return (pointer, stringifiedValue) => {
|
|
1173
|
+
memory[pointer] = stringifiedValue;
|
|
1174
|
+
return stringifiedValue;
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
function comparePrimitive(a, b, options, memorize = DEFAULT_MEMORIZE) {
|
|
1178
|
+
const aFormat = memorize("expected", format(a, FORMAT_OPTIONS));
|
|
1179
|
+
const bFormat = memorize("actual", format(b, FORMAT_OPTIONS));
|
|
1173
1180
|
return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split("\n"), bFormat.split("\n"), options);
|
|
1174
1181
|
}
|
|
1175
1182
|
function sortMap(map) {
|
|
@@ -1178,21 +1185,24 @@ function sortMap(map) {
|
|
|
1178
1185
|
function sortSet(set) {
|
|
1179
1186
|
return new Set(Array.from(set.values()).sort());
|
|
1180
1187
|
}
|
|
1181
|
-
function compareObjects(a, b, options) {
|
|
1188
|
+
function compareObjects(a, b, options, memorize = DEFAULT_MEMORIZE) {
|
|
1182
1189
|
let difference;
|
|
1183
1190
|
let hasThrown = false;
|
|
1184
1191
|
try {
|
|
1185
|
-
difference = getObjectsDifference(a, b, getFormatOptions(FORMAT_OPTIONS, options), options);
|
|
1192
|
+
difference = getObjectsDifference(a, b, getFormatOptions(FORMAT_OPTIONS, options), options, memorize);
|
|
1186
1193
|
} catch {
|
|
1187
1194
|
hasThrown = true;
|
|
1188
1195
|
}
|
|
1189
1196
|
const noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);
|
|
1190
1197
|
if (difference === void 0 || difference === noDiffMessage) {
|
|
1191
|
-
difference = getObjectsDifference(a, b, getFormatOptions(FALLBACK_FORMAT_OPTIONS, options), options);
|
|
1198
|
+
difference = getObjectsDifference(a, b, getFormatOptions(FALLBACK_FORMAT_OPTIONS, options), options, memorize);
|
|
1192
1199
|
if (difference !== noDiffMessage && !hasThrown) difference = `${getCommonMessage(SIMILAR_MESSAGE, options)}\n\n${difference}`;
|
|
1193
1200
|
}
|
|
1194
1201
|
return difference;
|
|
1195
1202
|
}
|
|
1203
|
+
function getDefaultFormatOptions(options) {
|
|
1204
|
+
return getFormatOptions(FORMAT_OPTIONS, options);
|
|
1205
|
+
}
|
|
1196
1206
|
function getFormatOptions(formatOptions, options) {
|
|
1197
1207
|
const { compareKeys, printBasicPrototype, maxDepth } = normalizeDiffOptions(options);
|
|
1198
1208
|
return {
|
|
@@ -1202,7 +1212,7 @@ function getFormatOptions(formatOptions, options) {
|
|
|
1202
1212
|
maxDepth: maxDepth ?? formatOptions.maxDepth
|
|
1203
1213
|
};
|
|
1204
1214
|
}
|
|
1205
|
-
function getObjectsDifference(a, b, formatOptions, options) {
|
|
1215
|
+
function getObjectsDifference(a, b, formatOptions, options, memorize = DEFAULT_MEMORIZE) {
|
|
1206
1216
|
const formatOptionsZeroIndent = {
|
|
1207
1217
|
...formatOptions,
|
|
1208
1218
|
indent: 0
|
|
@@ -1211,8 +1221,8 @@ function getObjectsDifference(a, b, formatOptions, options) {
|
|
|
1211
1221
|
const bCompare = format(b, formatOptionsZeroIndent);
|
|
1212
1222
|
if (aCompare === bCompare) return getCommonMessage(NO_DIFF_MESSAGE, options);
|
|
1213
1223
|
else {
|
|
1214
|
-
const aDisplay = format(a, formatOptions);
|
|
1215
|
-
const bDisplay = format(b, formatOptions);
|
|
1224
|
+
const aDisplay = memorize("expected", format(a, formatOptions));
|
|
1225
|
+
const bDisplay = memorize("actual", format(b, formatOptions));
|
|
1216
1226
|
return diffLinesUnified2(aDisplay.split("\n"), bDisplay.split("\n"), aCompare.split("\n"), bCompare.split("\n"), options);
|
|
1217
1227
|
}
|
|
1218
1228
|
}
|
|
@@ -1224,7 +1234,7 @@ function isReplaceable(obj1, obj2) {
|
|
|
1224
1234
|
const obj1Type = getType$1(obj1);
|
|
1225
1235
|
return obj1Type === getType$1(obj2) && (obj1Type === "Object" || obj1Type === "Array");
|
|
1226
1236
|
}
|
|
1227
|
-
function printDiffOrStringify(received, expected, options) {
|
|
1237
|
+
function printDiffOrStringify(received, expected, options, memory) {
|
|
1228
1238
|
const { aAnnotation, bAnnotation } = normalizeDiffOptions(options);
|
|
1229
1239
|
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) {
|
|
1230
1240
|
if (expected.includes("\n") || received.includes("\n")) return diffStringsUnified(expected, received, options);
|
|
@@ -1235,7 +1245,7 @@ function printDiffOrStringify(received, expected, options) {
|
|
|
1235
1245
|
}
|
|
1236
1246
|
const clonedExpected = deepClone(expected, { forceWritable: true });
|
|
1237
1247
|
const { replacedExpected, replacedActual } = replaceAsymmetricMatcher(deepClone(received, { forceWritable: true }), clonedExpected);
|
|
1238
|
-
return diff(replacedExpected, replacedActual, options);
|
|
1248
|
+
return diff(replacedExpected, replacedActual, options, memory ? createMemorize(memory) : DEFAULT_MEMORIZE);
|
|
1239
1249
|
}
|
|
1240
1250
|
function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {
|
|
1241
1251
|
if (actual instanceof Error && expected instanceof Error && typeof actual.cause !== "undefined" && typeof expected.cause === "undefined") {
|
|
@@ -1292,13 +1302,13 @@ function replaceTrailingSpaces(text) {
|
|
|
1292
1302
|
return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));
|
|
1293
1303
|
}
|
|
1294
1304
|
function printReceived(object) {
|
|
1295
|
-
return
|
|
1305
|
+
return y.red(replaceTrailingSpaces(stringify(object)));
|
|
1296
1306
|
}
|
|
1297
1307
|
function printExpected(value) {
|
|
1298
|
-
return
|
|
1308
|
+
return y.green(replaceTrailingSpaces(stringify(value)));
|
|
1299
1309
|
}
|
|
1300
1310
|
function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff) {
|
|
1301
|
-
return diffs.reduce((reduced, diff) => reduced + (diff[0] === 0 ? diff[1] : diff[0] === op ? hasCommonDiff ?
|
|
1311
|
+
return diffs.reduce((reduced, diff) => reduced + (diff[0] === 0 ? diff[1] : diff[0] === op ? hasCommonDiff ? y.inverse(diff[1]) : diff[1] : ""), "");
|
|
1302
1312
|
}
|
|
1303
1313
|
//#endregion
|
|
1304
|
-
export { diff, printDiffOrStringify };
|
|
1314
|
+
export { Diff, diff, diffLinesRaw, diffLinesUnified, diffLinesUnified2, diffStringsRaw, diffStringsUnified, getDefaultFormatOptions, getLabelPrinter, printDiffOrStringify, replaceAsymmetricMatcher };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createDOMElementFilter, format as format$1, plugins } from "
|
|
2
|
-
//#region ../../node_modules
|
|
1
|
+
import { createDOMElementFilter, format as format$1, plugins } from "../../../../../@vitest_pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/display.js
|
|
3
3
|
var ansiColors = {
|
|
4
4
|
bold: ["1", "22"],
|
|
5
5
|
dim: ["2", "22"],
|
|
@@ -553,4 +553,4 @@ function objDisplay(obj, options = {}) {
|
|
|
553
553
|
return str;
|
|
554
554
|
}
|
|
555
555
|
//#endregion
|
|
556
|
-
export { format, formatRegExp, objDisplay, stringify };
|
|
556
|
+
export { format, formatRegExp, inspect, objDisplay, stringify };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { format } from "../../../../../@vitest_pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist/index.js";
|
|
2
|
+
import { getDefaultFormatOptions, printDiffOrStringify } from "./diff.js";
|
|
3
|
+
import { serializeValue } from "./serialize.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/error.js
|
|
5
|
+
function processError(_err, diffOptions, seen = /* @__PURE__ */ new WeakSet()) {
|
|
6
|
+
if (!_err || typeof _err !== "object") return { message: String(_err) };
|
|
7
|
+
const err = _err;
|
|
8
|
+
if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) {
|
|
9
|
+
const options = {
|
|
10
|
+
...diffOptions,
|
|
11
|
+
...err.diffOptions
|
|
12
|
+
};
|
|
13
|
+
err.diff = printDiffOrStringify(err.actual, err.expected, options, err);
|
|
14
|
+
err.expected = prettifyValue(err.expected, options);
|
|
15
|
+
err.actual = prettifyValue(err.actual, options);
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
if (!seen.has(err) && typeof err.cause === "object") {
|
|
19
|
+
seen.add(err);
|
|
20
|
+
err.cause = processError(err.cause, diffOptions, seen);
|
|
21
|
+
}
|
|
22
|
+
} catch {}
|
|
23
|
+
try {
|
|
24
|
+
return serializeValue(err);
|
|
25
|
+
} catch (e) {
|
|
26
|
+
return serializeValue(/* @__PURE__ */ new Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${err?.message}`));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function prettifyValue(value, options) {
|
|
30
|
+
if (typeof value !== "string") return format(value, getDefaultFormatOptions(options));
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { processError, serializeValue as serializeError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/helpers.js
|
|
2
2
|
/**
|
|
3
3
|
* Get original stacktrace without source map support the most performant way.
|
|
4
4
|
* - Create only 1 stack frame.
|
|
@@ -160,7 +160,7 @@ function getCallLastIndex(code) {
|
|
|
160
160
|
}
|
|
161
161
|
function isNegativeNaN(val) {
|
|
162
162
|
if (!Number.isNaN(val)) return false;
|
|
163
|
-
const f64 = new Float64Array(1);
|
|
163
|
+
const f64 = /* @__PURE__ */ new Float64Array(1);
|
|
164
164
|
f64[0] = val;
|
|
165
165
|
return new Uint32Array(f64.buffer)[1] >>> 31 === 1;
|
|
166
166
|
}
|
|
@@ -176,4 +176,4 @@ function unique(array) {
|
|
|
176
176
|
return Array.from(new Set(array));
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
|
-
export { assertTypes, createDefer, createSimpleStackTrace, deepClone, filterOutComments, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, ordinal, toArray, unique };
|
|
179
|
+
export { assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, filterOutComments, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, ordinal, toArray, unique };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/offset.js
|
|
2
2
|
var lineSplitRE = /\r?\n/;
|
|
3
3
|
function positionToOffset(source, lineNumber, columnNumber) {
|
|
4
4
|
const lines = source.split(lineSplitRE);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/serialize.js
|
|
2
2
|
var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
|
|
3
3
|
var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
4
4
|
function isImmutable(v) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { isPrimitive, notNullish } from "./helpers.js";
|
|
2
|
-
import { resolve } from "./chunk-pathe.M-eThtNZ.js";
|
|
3
|
-
//#region ../../node_modules
|
|
2
|
+
import { r as resolve } from "./chunk-pathe.M-eThtNZ.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/source-map.js
|
|
4
4
|
var comma = ",".charCodeAt(0);
|
|
5
5
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
6
|
-
var intToChar = new Uint8Array(64);
|
|
7
|
-
var charToInt = new Uint8Array(128);
|
|
6
|
+
var intToChar = /* @__PURE__ */ new Uint8Array(64);
|
|
7
|
+
var charToInt = /* @__PURE__ */ new Uint8Array(128);
|
|
8
8
|
for (let i = 0; i < chars.length; i++) {
|
|
9
9
|
const c = chars.charCodeAt(i);
|
|
10
10
|
intToChar[i] = c;
|
|
@@ -292,7 +292,7 @@ function parseSingleV8Stack(raw) {
|
|
|
292
292
|
function parseStacktrace(stack, options = {}) {
|
|
293
293
|
const { ignoreStackEntries = stackIgnorePatterns } = options;
|
|
294
294
|
let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
|
|
295
|
-
const helperIndex = stacks.findLastIndex((s) => s.method
|
|
295
|
+
const helperIndex = stacks.findLastIndex((s) => s.method.includes("__VITEST_HELPER__"));
|
|
296
296
|
if (helperIndex >= 0) stacks = stacks.slice(helperIndex + 1);
|
|
297
297
|
return stacks.map((stack) => {
|
|
298
298
|
if (options.getUrlId) stack.file = options.getUrlId(stack.file);
|
|
@@ -368,4 +368,4 @@ function getOriginalPosition(map, needle) {
|
|
|
368
368
|
return result;
|
|
369
369
|
}
|
|
370
370
|
//#endregion
|
|
371
|
-
export { parseErrorStacktrace, parseSingleStack };
|
|
371
|
+
export { DecodedMap, stackIgnorePatterns as defaultStackIgnorePatterns, getOriginalPosition, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.10/node_modules/@vitest/utils/dist/timers.js
|
|
2
2
|
var SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
3
3
|
function getSafeTimers() {
|
|
4
4
|
const { setTimeout: safeSetTimeout, setInterval: safeSetInterval, clearInterval: safeClearInterval, clearTimeout: safeClearTimeout, setImmediate: safeSetImmediate, clearImmediate: safeClearImmediate, queueMicrotask: safeQueueMicrotask } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
package/dist/node_modules/{vitest/dist/vendor/chai.js → .pnpm/chai@6.2.2/node_modules/chai/index.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/
|
|
1
|
+
//#region ../../node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
4
4
|
enumerable: true,
|
|
@@ -613,16 +613,115 @@ function inspect(value, opts = {}) {
|
|
|
613
613
|
}
|
|
614
614
|
__name(inspect, "inspect");
|
|
615
615
|
var config = {
|
|
616
|
+
/**
|
|
617
|
+
* ### config.includeStack
|
|
618
|
+
*
|
|
619
|
+
* User configurable property, influences whether stack trace
|
|
620
|
+
* is included in Assertion error message. Default of false
|
|
621
|
+
* suppresses stack trace in the error message.
|
|
622
|
+
*
|
|
623
|
+
* chai.config.includeStack = true; // enable stack on error
|
|
624
|
+
*
|
|
625
|
+
* @param {boolean}
|
|
626
|
+
* @public
|
|
627
|
+
*/
|
|
616
628
|
includeStack: false,
|
|
629
|
+
/**
|
|
630
|
+
* ### config.showDiff
|
|
631
|
+
*
|
|
632
|
+
* User configurable property, influences whether or not
|
|
633
|
+
* the `showDiff` flag should be included in the thrown
|
|
634
|
+
* AssertionErrors. `false` will always be `false`; `true`
|
|
635
|
+
* will be true when the assertion has requested a diff
|
|
636
|
+
* be shown.
|
|
637
|
+
*
|
|
638
|
+
* @param {boolean}
|
|
639
|
+
* @public
|
|
640
|
+
*/
|
|
617
641
|
showDiff: true,
|
|
642
|
+
/**
|
|
643
|
+
* ### config.truncateThreshold
|
|
644
|
+
*
|
|
645
|
+
* User configurable property, sets length threshold for actual and
|
|
646
|
+
* expected values in assertion errors. If this threshold is exceeded, for
|
|
647
|
+
* example for large data structures, the value is replaced with something
|
|
648
|
+
* like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.
|
|
649
|
+
*
|
|
650
|
+
* Set it to zero if you want to disable truncating altogether.
|
|
651
|
+
*
|
|
652
|
+
* This is especially userful when doing assertions on arrays: having this
|
|
653
|
+
* set to a reasonable large value makes the failure messages readily
|
|
654
|
+
* inspectable.
|
|
655
|
+
*
|
|
656
|
+
* chai.config.truncateThreshold = 0; // disable truncating
|
|
657
|
+
*
|
|
658
|
+
* @param {number}
|
|
659
|
+
* @public
|
|
660
|
+
*/
|
|
618
661
|
truncateThreshold: 40,
|
|
662
|
+
/**
|
|
663
|
+
* ### config.useProxy
|
|
664
|
+
*
|
|
665
|
+
* User configurable property, defines if chai will use a Proxy to throw
|
|
666
|
+
* an error when a non-existent property is read, which protects users
|
|
667
|
+
* from typos when using property-based assertions.
|
|
668
|
+
*
|
|
669
|
+
* Set it to false if you want to disable this feature.
|
|
670
|
+
*
|
|
671
|
+
* chai.config.useProxy = false; // disable use of Proxy
|
|
672
|
+
*
|
|
673
|
+
* This feature is automatically disabled regardless of this config value
|
|
674
|
+
* in environments that don't support proxies.
|
|
675
|
+
*
|
|
676
|
+
* @param {boolean}
|
|
677
|
+
* @public
|
|
678
|
+
*/
|
|
619
679
|
useProxy: true,
|
|
680
|
+
/**
|
|
681
|
+
* ### config.proxyExcludedKeys
|
|
682
|
+
*
|
|
683
|
+
* User configurable property, defines which properties should be ignored
|
|
684
|
+
* instead of throwing an error if they do not exist on the assertion.
|
|
685
|
+
* This is only applied if the environment Chai is running in supports proxies and
|
|
686
|
+
* if the `useProxy` configuration setting is enabled.
|
|
687
|
+
* By default, `then` and `inspect` will not throw an error if they do not exist on the
|
|
688
|
+
* assertion object because the `.inspect` property is read by `util.inspect` (for example, when
|
|
689
|
+
* using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.
|
|
690
|
+
*
|
|
691
|
+
* // By default these keys will not throw an error if they do not exist on the assertion object
|
|
692
|
+
* chai.config.proxyExcludedKeys = ['then', 'inspect'];
|
|
693
|
+
*
|
|
694
|
+
* @param {Array}
|
|
695
|
+
* @public
|
|
696
|
+
*/
|
|
620
697
|
proxyExcludedKeys: [
|
|
621
698
|
"then",
|
|
622
699
|
"catch",
|
|
623
700
|
"inspect",
|
|
624
701
|
"toJSON"
|
|
625
702
|
],
|
|
703
|
+
/**
|
|
704
|
+
* ### config.deepEqual
|
|
705
|
+
*
|
|
706
|
+
* User configurable property, defines which a custom function to use for deepEqual
|
|
707
|
+
* comparisons.
|
|
708
|
+
* By default, the function used is the one from the `deep-eql` package without custom comparator.
|
|
709
|
+
*
|
|
710
|
+
* // use a custom comparator
|
|
711
|
+
* chai.config.deepEqual = (expected, actual) => {
|
|
712
|
+
* return chai.util.eql(expected, actual, {
|
|
713
|
+
* comparator: (expected, actual) => {
|
|
714
|
+
* // for non number comparison, use the default behavior
|
|
715
|
+
* if(typeof expected !== 'number') return null;
|
|
716
|
+
* // allow a difference of 10 between compared numbers
|
|
717
|
+
* return typeof actual === 'number' && Math.abs(actual - expected) < 10
|
|
718
|
+
* }
|
|
719
|
+
* })
|
|
720
|
+
* };
|
|
721
|
+
*
|
|
722
|
+
* @param {Function}
|
|
723
|
+
* @public
|
|
724
|
+
*/
|
|
626
725
|
deepEqual: null
|
|
627
726
|
};
|
|
628
727
|
function inspect2(obj, showHidden, depth, colors) {
|
|
@@ -1325,7 +1424,8 @@ function addChainableMethod(ctx, name, method, chainingBehavior) {
|
|
|
1325
1424
|
Object.setPrototypeOf(chainableMethodWrapper, prototype);
|
|
1326
1425
|
} else Object.getOwnPropertyNames(ctx).forEach(function(asserterName) {
|
|
1327
1426
|
if (excludeNames.indexOf(asserterName) !== -1) return;
|
|
1328
|
-
|
|
1427
|
+
let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);
|
|
1428
|
+
Object.defineProperty(chainableMethodWrapper, asserterName, pd);
|
|
1329
1429
|
});
|
|
1330
1430
|
transferFlags(this, chainableMethodWrapper);
|
|
1331
1431
|
return proxify(chainableMethodWrapper);
|
|
@@ -2869,4 +2969,4 @@ function use(fn) {
|
|
|
2869
2969
|
}
|
|
2870
2970
|
__name(use, "use");
|
|
2871
2971
|
//#endregion
|
|
2872
|
-
export { Assertion, assert, expect, should, use, utils_exports };
|
|
2972
|
+
export { Assertion, AssertionError, Should, assert, config, expect, should, use, utils_exports as util };
|
|
@@ -1,77 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var semicolon = ";".charCodeAt(0);
|
|
4
|
-
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
5
|
-
var intToChar = new Uint8Array(64);
|
|
6
|
-
var charToInt = new Uint8Array(128);
|
|
7
|
-
for (let i = 0; i < chars.length; i++) {
|
|
8
|
-
const c = chars.charCodeAt(i);
|
|
9
|
-
intToChar[i] = c;
|
|
10
|
-
charToInt[c] = i;
|
|
11
|
-
}
|
|
12
|
-
function encodeInteger(builder, num, relative) {
|
|
13
|
-
let delta = num - relative;
|
|
14
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
15
|
-
do {
|
|
16
|
-
let clamped = delta & 31;
|
|
17
|
-
delta >>>= 5;
|
|
18
|
-
if (delta > 0) clamped |= 32;
|
|
19
|
-
builder.write(intToChar[clamped]);
|
|
20
|
-
} while (delta > 0);
|
|
21
|
-
return num;
|
|
22
|
-
}
|
|
23
|
-
var bufLength = 1024 * 16;
|
|
24
|
-
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { decode(buf) {
|
|
25
|
-
return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
|
|
26
|
-
} } : { decode(buf) {
|
|
27
|
-
let out = "";
|
|
28
|
-
for (let i = 0; i < buf.length; i++) out += String.fromCharCode(buf[i]);
|
|
29
|
-
return out;
|
|
30
|
-
} };
|
|
31
|
-
var StringWriter = class {
|
|
32
|
-
constructor() {
|
|
33
|
-
this.pos = 0;
|
|
34
|
-
this.out = "";
|
|
35
|
-
this.buffer = new Uint8Array(bufLength);
|
|
36
|
-
}
|
|
37
|
-
write(v) {
|
|
38
|
-
const { buffer } = this;
|
|
39
|
-
buffer[this.pos++] = v;
|
|
40
|
-
if (this.pos === bufLength) {
|
|
41
|
-
this.out += td.decode(buffer);
|
|
42
|
-
this.pos = 0;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
flush() {
|
|
46
|
-
const { buffer, out, pos } = this;
|
|
47
|
-
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
function encode(decoded) {
|
|
51
|
-
const writer = new StringWriter();
|
|
52
|
-
let sourcesIndex = 0;
|
|
53
|
-
let sourceLine = 0;
|
|
54
|
-
let sourceColumn = 0;
|
|
55
|
-
let namesIndex = 0;
|
|
56
|
-
for (let i = 0; i < decoded.length; i++) {
|
|
57
|
-
const line = decoded[i];
|
|
58
|
-
if (i > 0) writer.write(semicolon);
|
|
59
|
-
if (line.length === 0) continue;
|
|
60
|
-
let genColumn = 0;
|
|
61
|
-
for (let j = 0; j < line.length; j++) {
|
|
62
|
-
const segment = line[j];
|
|
63
|
-
if (j > 0) writer.write(comma);
|
|
64
|
-
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
65
|
-
if (segment.length === 1) continue;
|
|
66
|
-
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
67
|
-
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
68
|
-
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
69
|
-
if (segment.length === 4) continue;
|
|
70
|
-
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return writer.flush();
|
|
74
|
-
}
|
|
1
|
+
import { encode } from "../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs
|
|
75
3
|
var BitSet = class BitSet {
|
|
76
4
|
constructor(arg) {
|
|
77
5
|
this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
|
|
@@ -216,7 +144,7 @@ function getBtoa() {
|
|
|
216
144
|
throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
|
|
217
145
|
};
|
|
218
146
|
}
|
|
219
|
-
var btoa =
|
|
147
|
+
var btoa = /*#__PURE__*/ getBtoa();
|
|
220
148
|
var SourceMap = class {
|
|
221
149
|
constructor(properties) {
|
|
222
150
|
this.version = 3;
|
|
@@ -1006,4 +934,4 @@ var MagicString = class MagicString {
|
|
|
1006
934
|
}
|
|
1007
935
|
};
|
|
1008
936
|
//#endregion
|
|
1009
|
-
export { MagicString as default };
|
|
937
|
+
export { SourceMap, MagicString as default };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/tinyrainbow@3.1.1/node_modules/tinyrainbow/dist/index.js
|
|
2
|
+
var b = {
|
|
3
|
+
reset: [0, 0],
|
|
4
|
+
bold: [
|
|
5
|
+
1,
|
|
6
|
+
22,
|
|
7
|
+
"\x1B[22m\x1B[1m"
|
|
8
|
+
],
|
|
9
|
+
dim: [
|
|
10
|
+
2,
|
|
11
|
+
22,
|
|
12
|
+
"\x1B[22m\x1B[2m"
|
|
13
|
+
],
|
|
14
|
+
italic: [3, 23],
|
|
15
|
+
underline: [4, 24],
|
|
16
|
+
inverse: [7, 27],
|
|
17
|
+
hidden: [8, 28],
|
|
18
|
+
strikethrough: [9, 29],
|
|
19
|
+
black: [30, 39],
|
|
20
|
+
red: [31, 39],
|
|
21
|
+
green: [32, 39],
|
|
22
|
+
yellow: [33, 39],
|
|
23
|
+
blue: [34, 39],
|
|
24
|
+
magenta: [35, 39],
|
|
25
|
+
cyan: [36, 39],
|
|
26
|
+
white: [37, 39],
|
|
27
|
+
gray: [90, 39],
|
|
28
|
+
bgBlack: [40, 49],
|
|
29
|
+
bgRed: [41, 49],
|
|
30
|
+
bgGreen: [42, 49],
|
|
31
|
+
bgYellow: [43, 49],
|
|
32
|
+
bgBlue: [44, 49],
|
|
33
|
+
bgMagenta: [45, 49],
|
|
34
|
+
bgCyan: [46, 49],
|
|
35
|
+
bgWhite: [47, 49],
|
|
36
|
+
blackBright: [90, 39],
|
|
37
|
+
redBright: [91, 39],
|
|
38
|
+
greenBright: [92, 39],
|
|
39
|
+
yellowBright: [93, 39],
|
|
40
|
+
blueBright: [94, 39],
|
|
41
|
+
magentaBright: [95, 39],
|
|
42
|
+
cyanBright: [96, 39],
|
|
43
|
+
whiteBright: [97, 39],
|
|
44
|
+
bgBlackBright: [100, 49],
|
|
45
|
+
bgRedBright: [101, 49],
|
|
46
|
+
bgGreenBright: [102, 49],
|
|
47
|
+
bgYellowBright: [103, 49],
|
|
48
|
+
bgBlueBright: [104, 49],
|
|
49
|
+
bgMagentaBright: [105, 49],
|
|
50
|
+
bgCyanBright: [106, 49],
|
|
51
|
+
bgWhiteBright: [107, 49]
|
|
52
|
+
};
|
|
53
|
+
function i(e) {
|
|
54
|
+
return String(e);
|
|
55
|
+
}
|
|
56
|
+
i.open = "";
|
|
57
|
+
i.close = "";
|
|
58
|
+
function B() {
|
|
59
|
+
let e = typeof process != "undefined" ? process : void 0, r = (e == null ? void 0 : e.env) || {}, a = r.FORCE_TTY !== "false", l = (e == null ? void 0 : e.argv) || [];
|
|
60
|
+
return !("NO_COLOR" in r || l.includes("--no-color")) && ("FORCE_COLOR" in r || l.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || a && r.TERM !== "dumb" || "CI" in r) || typeof window != "undefined" && !!window.chrome;
|
|
61
|
+
}
|
|
62
|
+
function C({ force: e } = {}) {
|
|
63
|
+
let r = e || B(), a = (t, o, u, n) => {
|
|
64
|
+
let g = "", s = 0;
|
|
65
|
+
do
|
|
66
|
+
g += t.substring(s, n) + u, s = n + o.length, n = t.indexOf(o, s);
|
|
67
|
+
while (~n);
|
|
68
|
+
return g + t.substring(s);
|
|
69
|
+
}, l = (t, o, u = t) => {
|
|
70
|
+
let n = (g) => {
|
|
71
|
+
let s = String(g), h = s.indexOf(o, t.length);
|
|
72
|
+
return ~h ? t + a(s, o, u, h) + o : t + s + o;
|
|
73
|
+
};
|
|
74
|
+
return n.open = t, n.close = o, n;
|
|
75
|
+
}, c = { isColorSupported: r }, f = (t) => `\x1B[${t}m`;
|
|
76
|
+
for (let t in b) {
|
|
77
|
+
let o = b[t];
|
|
78
|
+
c[t] = r ? l(f(o[0]), f(o[1]), o[2]) : i;
|
|
79
|
+
}
|
|
80
|
+
return c;
|
|
81
|
+
}
|
|
82
|
+
var y = C();
|
|
83
|
+
//#endregion
|
|
84
|
+
export { C as createColors, y as default, B as isSupported };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@24.12.0_@vitest+browser-preview@4.1.10_@vitest+coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js
|
|
2
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
3
|
+
//#endregion
|
|
4
|
+
export { commonjsGlobal as c };
|