@storm-software/eslint 0.170.22 → 0.170.23
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/README.md +1 -1
- package/dist/{chunk-SU5B5KLB.js → chunk-3WFF7XDO.js} +1 -1
- package/dist/{chunk-K7BVPORT.js → chunk-5PVBBYWN.js} +2 -2
- package/dist/{chunk-QDOV3D4C.js → chunk-7TA6V3SR.js} +1 -1
- package/dist/{chunk-P3WHTQMA.js → chunk-BGETHCG6.js} +3 -3
- package/dist/{chunk-HUIWMM52.js → chunk-KLEYTOE7.js} +2 -2
- package/dist/{chunk-ZIX7RNLF.js → chunk-MHVQOGPS.js} +1 -1
- package/dist/{chunk-WB46BC5M.js → chunk-N33VWISK.js} +3 -3
- package/dist/{chunk-WPSKYMK5.js → chunk-QSLOFYUS.js} +1 -1
- package/dist/{chunk-FSCBKXG2.js → chunk-ZT2NOHJW.js} +1 -1
- package/dist/preset.cjs +181 -272
- package/dist/preset.js +188 -279
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/types.js +1 -1
- package/dist/utils/banner-plugin.js +4 -4
- package/dist/utils/combine.js +1 -1
- package/dist/utils/constants.js +2 -2
- package/dist/utils/correct-paths.js +2 -2
- package/dist/utils/find-workspace-root.js +3 -3
- package/dist/utils/format-config.js +2 -2
- package/dist/utils/get-file-banner.js +3 -3
- package/dist/utils/helpers.cjs +1 -1
- package/dist/utils/helpers.js +2 -2
- package/dist/utils/index.js +3 -3
- package/dist/utils/tsconfig-path.js +4 -4
- package/package.json +13 -13
package/dist/preset.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-
|
|
2
|
-
import { getTsConfigPath } from './chunk-
|
|
3
|
-
import { banner_plugin_default } from './chunk-
|
|
4
|
-
import { getFileBanner } from './chunk-
|
|
5
|
-
import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX, GLOB_JSX, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_SRC, GLOB_TESTS, GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_YAML, GLOB_TOML, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_GRAPHQL, GLOB_SRC_EXT } from './chunk-
|
|
6
|
-
import { findWorkspaceRoot } from './chunk-
|
|
7
|
-
import { joinPaths } from './chunk-
|
|
8
|
-
import { __commonJS, init_esm_shims, __toESM } from './chunk-
|
|
1
|
+
import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-MHVQOGPS.js';
|
|
2
|
+
import { getTsConfigPath } from './chunk-BGETHCG6.js';
|
|
3
|
+
import { banner_plugin_default } from './chunk-N33VWISK.js';
|
|
4
|
+
import { getFileBanner } from './chunk-5PVBBYWN.js';
|
|
5
|
+
import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX, GLOB_JSX, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_SRC, GLOB_TESTS, GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_YAML, GLOB_TOML, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_GRAPHQL, GLOB_SRC_EXT } from './chunk-QSLOFYUS.js';
|
|
6
|
+
import { findWorkspaceRoot } from './chunk-KLEYTOE7.js';
|
|
7
|
+
import { joinPaths } from './chunk-7TA6V3SR.js';
|
|
8
|
+
import { __commonJS, init_esm_shims, __toESM } from './chunk-ZT2NOHJW.js';
|
|
9
9
|
import * as __import__microsoft_tsdocConfig from '@microsoft/tsdoc-config';
|
|
10
10
|
import * as __import_path from 'path';
|
|
11
11
|
import * as __import_fs from 'fs';
|
|
@@ -44,23 +44,23 @@ import { configs as configs$1 } from 'eslint-plugin-regexp';
|
|
|
44
44
|
|
|
45
45
|
// ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js
|
|
46
46
|
var require_Debug = __commonJS({
|
|
47
|
-
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports
|
|
47
|
+
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
|
|
48
48
|
init_esm_shims();
|
|
49
|
-
Object.defineProperty(exports
|
|
50
|
-
exports
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.Debug = void 0;
|
|
51
51
|
var Debug = class {
|
|
52
52
|
// To debug the plugin, temporarily uncomment the body of this function
|
|
53
53
|
static log(message) {
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
exports
|
|
56
|
+
exports.Debug = Debug;
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
var require_ConfigCache = __commonJS({
|
|
60
|
-
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports
|
|
60
|
+
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
|
|
61
61
|
init_esm_shims();
|
|
62
62
|
var __import___Debug = __toESM(require_Debug());
|
|
63
|
-
var __createBinding = exports
|
|
63
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
64
64
|
if (k2 === void 0) k2 = k;
|
|
65
65
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
66
66
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -73,12 +73,12 @@ var require_ConfigCache = __commonJS({
|
|
|
73
73
|
if (k2 === void 0) k2 = k;
|
|
74
74
|
o[k2] = m[k];
|
|
75
75
|
}));
|
|
76
|
-
var __setModuleDefault = exports
|
|
76
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
77
77
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
78
78
|
}) : function(o, v) {
|
|
79
79
|
o["default"] = v;
|
|
80
80
|
});
|
|
81
|
-
var __importStar = exports
|
|
81
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
|
82
82
|
if (mod && mod.__esModule) return mod;
|
|
83
83
|
var result = {};
|
|
84
84
|
if (mod != null) {
|
|
@@ -87,8 +87,8 @@ var require_ConfigCache = __commonJS({
|
|
|
87
87
|
__setModuleDefault(result, mod);
|
|
88
88
|
return result;
|
|
89
89
|
};
|
|
90
|
-
Object.defineProperty(exports
|
|
91
|
-
exports
|
|
90
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
91
|
+
exports.ConfigCache = void 0;
|
|
92
92
|
var tsdoc_config_1 = __import__microsoft_tsdocConfig;
|
|
93
93
|
var path = __importStar(__import_path);
|
|
94
94
|
var Debug_1 = __import___Debug;
|
|
@@ -384,13 +384,13 @@ var require_ConfigCache = __commonJS({
|
|
|
384
384
|
return cachedConfig.configFile;
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
|
-
exports
|
|
387
|
+
exports.ConfigCache = ConfigCache;
|
|
388
388
|
ConfigCache._cachedConfigs = /* @__PURE__ */ new Map();
|
|
389
389
|
ConfigCache._cachedPaths = /* @__PURE__ */ new Map();
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
var require_lib = __commonJS({
|
|
393
|
-
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports
|
|
393
|
+
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
|
|
394
394
|
init_esm_shims();
|
|
395
395
|
var __import___Debug = __toESM(require_Debug());
|
|
396
396
|
var __import___ConfigCache = __toESM(require_ConfigCache());
|
|
@@ -1211,7 +1211,7 @@ init_esm_shims();
|
|
|
1211
1211
|
// src/plugins.ts
|
|
1212
1212
|
init_esm_shims();
|
|
1213
1213
|
|
|
1214
|
-
// ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=
|
|
1214
|
+
// ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_9a83dbe288d598de72c3e754ec4675de/node_modules/eslint-plugin-pnpm/dist/index.mjs
|
|
1215
1215
|
init_esm_shims();
|
|
1216
1216
|
var name = "eslint-plugin-pnpm";
|
|
1217
1217
|
var version = "0.3.0";
|
|
@@ -2471,17 +2471,12 @@ init_esm_shims();
|
|
|
2471
2471
|
// ../config/src/schema.ts
|
|
2472
2472
|
init_esm_shims();
|
|
2473
2473
|
|
|
2474
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2474
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/external.js
|
|
2475
2475
|
init_esm_shims();
|
|
2476
2476
|
|
|
2477
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2478
|
-
init_esm_shims();
|
|
2479
|
-
|
|
2480
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
|
|
2481
|
-
init_esm_shims();
|
|
2482
|
-
|
|
2483
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
2477
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
2484
2478
|
init_esm_shims();
|
|
2479
|
+
var _a;
|
|
2485
2480
|
// @__NO_SIDE_EFFECTS__
|
|
2486
2481
|
function $constructor(name2, initializer2, params) {
|
|
2487
2482
|
function init(inst, def) {
|
|
@@ -2514,10 +2509,10 @@ function $constructor(name2, initializer2, params) {
|
|
|
2514
2509
|
}
|
|
2515
2510
|
Object.defineProperty(Definition, "name", { value: name2 });
|
|
2516
2511
|
function _(def) {
|
|
2517
|
-
var
|
|
2512
|
+
var _a3;
|
|
2518
2513
|
const inst = params?.Parent ? new Definition() : this;
|
|
2519
2514
|
init(inst, def);
|
|
2520
|
-
(
|
|
2515
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2521
2516
|
for (const fn of inst._zod.deferred) {
|
|
2522
2517
|
fn();
|
|
2523
2518
|
}
|
|
@@ -2539,18 +2534,19 @@ var $ZodAsyncError = class extends Error {
|
|
|
2539
2534
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
2540
2535
|
}
|
|
2541
2536
|
};
|
|
2542
|
-
|
|
2537
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
2538
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
2543
2539
|
function config(newConfig) {
|
|
2544
2540
|
return globalConfig;
|
|
2545
2541
|
}
|
|
2546
2542
|
|
|
2547
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2543
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
2548
2544
|
init_esm_shims();
|
|
2549
2545
|
|
|
2550
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2546
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
2551
2547
|
init_esm_shims();
|
|
2552
2548
|
|
|
2553
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2549
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
2554
2550
|
init_esm_shims();
|
|
2555
2551
|
function getEnumValues(entries) {
|
|
2556
2552
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
@@ -2581,7 +2577,7 @@ function cleanRegex(source) {
|
|
|
2581
2577
|
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
2582
2578
|
return source.slice(start, end);
|
|
2583
2579
|
}
|
|
2584
|
-
var EVALUATING = Symbol("evaluating");
|
|
2580
|
+
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
2585
2581
|
function defineLazy(object2, key, getter) {
|
|
2586
2582
|
let value = void 0;
|
|
2587
2583
|
Object.defineProperty(object2, key, {
|
|
@@ -2630,6 +2626,10 @@ function shallowClone(o) {
|
|
|
2630
2626
|
return { ...o };
|
|
2631
2627
|
if (Array.isArray(o))
|
|
2632
2628
|
return [...o];
|
|
2629
|
+
if (o instanceof Map)
|
|
2630
|
+
return new Map(o);
|
|
2631
|
+
if (o instanceof Set)
|
|
2632
|
+
return new Set(o);
|
|
2633
2633
|
return o;
|
|
2634
2634
|
}
|
|
2635
2635
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
@@ -2643,7 +2643,20 @@ function clone(inst, def, params) {
|
|
|
2643
2643
|
return cl;
|
|
2644
2644
|
}
|
|
2645
2645
|
function normalizeParams(_params) {
|
|
2646
|
-
|
|
2646
|
+
const params = _params;
|
|
2647
|
+
if (!params)
|
|
2648
|
+
return {};
|
|
2649
|
+
if (typeof params === "string")
|
|
2650
|
+
return { error: () => params };
|
|
2651
|
+
if (params?.message !== void 0) {
|
|
2652
|
+
if (params?.error !== void 0)
|
|
2653
|
+
throw new Error("Cannot specify both `message` and `error` params");
|
|
2654
|
+
params.error = params.message;
|
|
2655
|
+
}
|
|
2656
|
+
delete params.message;
|
|
2657
|
+
if (typeof params.error === "string")
|
|
2658
|
+
return { ...params, error: () => params.error };
|
|
2659
|
+
return params;
|
|
2647
2660
|
}
|
|
2648
2661
|
function optionalKeys(shape) {
|
|
2649
2662
|
return Object.keys(shape).filter((k) => {
|
|
@@ -2660,10 +2673,20 @@ function aborted(x, startIndex = 0) {
|
|
|
2660
2673
|
}
|
|
2661
2674
|
return false;
|
|
2662
2675
|
}
|
|
2676
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
2677
|
+
if (x.aborted === true)
|
|
2678
|
+
return true;
|
|
2679
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
2680
|
+
if (x.issues[i]?.continue === false) {
|
|
2681
|
+
return true;
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
return false;
|
|
2685
|
+
}
|
|
2663
2686
|
function prefixIssues(path, issues) {
|
|
2664
2687
|
return issues.map((iss) => {
|
|
2665
|
-
var
|
|
2666
|
-
(
|
|
2688
|
+
var _a3;
|
|
2689
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
2667
2690
|
iss.path.unshift(path);
|
|
2668
2691
|
return iss;
|
|
2669
2692
|
});
|
|
@@ -2672,17 +2695,14 @@ function unwrapMessage(message) {
|
|
|
2672
2695
|
return typeof message === "string" ? message : message?.message;
|
|
2673
2696
|
}
|
|
2674
2697
|
function finalizeIssue(iss, ctx, config3) {
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
delete full.input;
|
|
2684
|
-
}
|
|
2685
|
-
return full;
|
|
2698
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config3.customError?.(iss)) ?? unwrapMessage(config3.localeError?.(iss)) ?? "Invalid input";
|
|
2699
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
2700
|
+
rest.path ?? (rest.path = []);
|
|
2701
|
+
rest.message = message;
|
|
2702
|
+
if (ctx?.reportInput) {
|
|
2703
|
+
rest.input = _input;
|
|
2704
|
+
}
|
|
2705
|
+
return rest;
|
|
2686
2706
|
}
|
|
2687
2707
|
function getLengthableOrigin(input) {
|
|
2688
2708
|
if (Array.isArray(input))
|
|
@@ -2692,7 +2712,7 @@ function getLengthableOrigin(input) {
|
|
|
2692
2712
|
return "unknown";
|
|
2693
2713
|
}
|
|
2694
2714
|
|
|
2695
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2715
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
2696
2716
|
var initializer = (inst, def) => {
|
|
2697
2717
|
inst.name = "$ZodError";
|
|
2698
2718
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -2712,9 +2732,9 @@ var initializer = (inst, def) => {
|
|
|
2712
2732
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
2713
2733
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
2714
2734
|
|
|
2715
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2735
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
2716
2736
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
2717
|
-
const ctx = _ctx ?
|
|
2737
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
2718
2738
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
2719
2739
|
if (result instanceof Promise) {
|
|
2720
2740
|
throw new $ZodAsyncError();
|
|
@@ -2728,7 +2748,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
2728
2748
|
};
|
|
2729
2749
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
2730
2750
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
2731
|
-
const ctx = _ctx ?
|
|
2751
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
2732
2752
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
2733
2753
|
if (result instanceof Promise)
|
|
2734
2754
|
result = await result;
|
|
@@ -2753,7 +2773,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
2753
2773
|
};
|
|
2754
2774
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
2755
2775
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
2756
|
-
const ctx = _ctx ?
|
|
2776
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
2757
2777
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
2758
2778
|
if (result instanceof Promise)
|
|
2759
2779
|
result = await result;
|
|
@@ -2764,14 +2784,15 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
2764
2784
|
};
|
|
2765
2785
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
2766
2786
|
|
|
2767
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2787
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2768
2788
|
init_esm_shims();
|
|
2769
2789
|
|
|
2770
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2790
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
2771
2791
|
init_esm_shims();
|
|
2772
2792
|
|
|
2773
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2793
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
2774
2794
|
init_esm_shims();
|
|
2795
|
+
var httpProtocol = /^https?$/;
|
|
2775
2796
|
var string = (params) => {
|
|
2776
2797
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
2777
2798
|
return new RegExp(`^${regex}$`);
|
|
@@ -2779,17 +2800,17 @@ var string = (params) => {
|
|
|
2779
2800
|
var number = /^-?\d+(?:\.\d+)?$/;
|
|
2780
2801
|
var boolean = /^(?:true|false)$/i;
|
|
2781
2802
|
|
|
2782
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2803
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
2783
2804
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2784
|
-
var
|
|
2805
|
+
var _a3;
|
|
2785
2806
|
inst._zod ?? (inst._zod = {});
|
|
2786
2807
|
inst._zod.def = def;
|
|
2787
|
-
(
|
|
2808
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
2788
2809
|
});
|
|
2789
2810
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2790
|
-
var
|
|
2811
|
+
var _a3;
|
|
2791
2812
|
$ZodCheck.init(inst, def);
|
|
2792
|
-
(
|
|
2813
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2793
2814
|
const val = payload.value;
|
|
2794
2815
|
return !nullish(val) && val.length !== void 0;
|
|
2795
2816
|
});
|
|
@@ -2818,7 +2839,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2818
2839
|
};
|
|
2819
2840
|
});
|
|
2820
2841
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2821
|
-
var
|
|
2842
|
+
var _a3, _b;
|
|
2822
2843
|
$ZodCheck.init(inst, def);
|
|
2823
2844
|
inst._zod.onattach.push((inst2) => {
|
|
2824
2845
|
const bag = inst2._zod.bag;
|
|
@@ -2829,7 +2850,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2829
2850
|
}
|
|
2830
2851
|
});
|
|
2831
2852
|
if (def.pattern)
|
|
2832
|
-
(
|
|
2853
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2833
2854
|
def.pattern.lastIndex = 0;
|
|
2834
2855
|
if (def.pattern.test(payload.value))
|
|
2835
2856
|
return;
|
|
@@ -2871,20 +2892,17 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2871
2892
|
};
|
|
2872
2893
|
});
|
|
2873
2894
|
|
|
2874
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2875
|
-
init_esm_shims();
|
|
2876
|
-
|
|
2877
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
2895
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2878
2896
|
init_esm_shims();
|
|
2879
2897
|
var version2 = {
|
|
2880
2898
|
major: 4,
|
|
2881
|
-
minor:
|
|
2882
|
-
patch:
|
|
2899
|
+
minor: 4,
|
|
2900
|
+
patch: 3
|
|
2883
2901
|
};
|
|
2884
2902
|
|
|
2885
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2903
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2886
2904
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2887
|
-
var
|
|
2905
|
+
var _a3;
|
|
2888
2906
|
inst ?? (inst = {});
|
|
2889
2907
|
inst._zod.def = def;
|
|
2890
2908
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2899,7 +2917,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2899
2917
|
}
|
|
2900
2918
|
}
|
|
2901
2919
|
if (checks.length === 0) {
|
|
2902
|
-
(
|
|
2920
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2903
2921
|
inst._zod.deferred?.push(() => {
|
|
2904
2922
|
inst._zod.run = inst._zod.parse;
|
|
2905
2923
|
});
|
|
@@ -2909,6 +2927,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2909
2927
|
let asyncResult;
|
|
2910
2928
|
for (const ch of checks2) {
|
|
2911
2929
|
if (ch._zod.def.when) {
|
|
2930
|
+
if (explicitlyAborted(payload))
|
|
2931
|
+
continue;
|
|
2912
2932
|
const shouldRun = ch._zod.def.when(payload);
|
|
2913
2933
|
if (!shouldRun)
|
|
2914
2934
|
continue;
|
|
@@ -3021,6 +3041,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
3021
3041
|
inst._zod.check = (payload) => {
|
|
3022
3042
|
try {
|
|
3023
3043
|
const trimmed = payload.value.trim();
|
|
3044
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
3045
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
3046
|
+
payload.issues.push({
|
|
3047
|
+
code: "invalid_format",
|
|
3048
|
+
format: "url",
|
|
3049
|
+
note: "Invalid URL format",
|
|
3050
|
+
input: payload.value,
|
|
3051
|
+
inst,
|
|
3052
|
+
continue: !def.abort
|
|
3053
|
+
});
|
|
3054
|
+
return;
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3024
3057
|
const url2 = new URL(trimmed);
|
|
3025
3058
|
if (def.hostname) {
|
|
3026
3059
|
def.hostname.lastIndex = 0;
|
|
@@ -3131,15 +3164,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
3131
3164
|
return payload;
|
|
3132
3165
|
};
|
|
3133
3166
|
});
|
|
3134
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
3167
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
3168
|
+
const isPresent = key in input;
|
|
3135
3169
|
if (result.issues.length) {
|
|
3136
|
-
if (isOptionalOut && !
|
|
3170
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
3137
3171
|
return;
|
|
3138
3172
|
}
|
|
3139
3173
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
3140
3174
|
}
|
|
3175
|
+
if (!isPresent && !isOptionalIn) {
|
|
3176
|
+
if (!result.issues.length) {
|
|
3177
|
+
final.issues.push({
|
|
3178
|
+
code: "invalid_type",
|
|
3179
|
+
expected: "nonoptional",
|
|
3180
|
+
input: void 0,
|
|
3181
|
+
path: [key]
|
|
3182
|
+
});
|
|
3183
|
+
}
|
|
3184
|
+
return;
|
|
3185
|
+
}
|
|
3141
3186
|
if (result.value === void 0) {
|
|
3142
|
-
if (
|
|
3187
|
+
if (isPresent) {
|
|
3143
3188
|
final.value[key] = void 0;
|
|
3144
3189
|
}
|
|
3145
3190
|
} else {
|
|
@@ -3167,8 +3212,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3167
3212
|
const keySet = def.keySet;
|
|
3168
3213
|
const _catchall = def.catchall._zod;
|
|
3169
3214
|
const t = _catchall.def.type;
|
|
3215
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
3170
3216
|
const isOptionalOut = _catchall.optout === "optional";
|
|
3171
3217
|
for (const key in input) {
|
|
3218
|
+
if (key === "__proto__")
|
|
3219
|
+
continue;
|
|
3172
3220
|
if (keySet.has(key))
|
|
3173
3221
|
continue;
|
|
3174
3222
|
if (t === "never") {
|
|
@@ -3177,9 +3225,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
3177
3225
|
}
|
|
3178
3226
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
3179
3227
|
if (r instanceof Promise) {
|
|
3180
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3228
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3181
3229
|
} else {
|
|
3182
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3230
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3183
3231
|
}
|
|
3184
3232
|
}
|
|
3185
3233
|
if (unrecognized.length) {
|
|
@@ -3245,12 +3293,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3245
3293
|
const shape = value.shape;
|
|
3246
3294
|
for (const key of value.keys) {
|
|
3247
3295
|
const el = shape[key];
|
|
3296
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3248
3297
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3249
3298
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3250
3299
|
if (r instanceof Promise) {
|
|
3251
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3300
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3252
3301
|
} else {
|
|
3253
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3302
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3254
3303
|
}
|
|
3255
3304
|
}
|
|
3256
3305
|
if (!catchall) {
|
|
@@ -3296,10 +3345,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3296
3345
|
}
|
|
3297
3346
|
return void 0;
|
|
3298
3347
|
});
|
|
3299
|
-
const
|
|
3300
|
-
const first = def.options[0]._zod.run;
|
|
3348
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3301
3349
|
inst._zod.parse = (payload, ctx) => {
|
|
3302
|
-
if (
|
|
3350
|
+
if (first) {
|
|
3303
3351
|
return first(payload, ctx);
|
|
3304
3352
|
}
|
|
3305
3353
|
let async = false;
|
|
@@ -3346,19 +3394,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3346
3394
|
for (const key of values) {
|
|
3347
3395
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3348
3396
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3397
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3398
|
+
if (keyResult instanceof Promise) {
|
|
3399
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3400
|
+
}
|
|
3401
|
+
if (keyResult.issues.length) {
|
|
3402
|
+
payload.issues.push({
|
|
3403
|
+
code: "invalid_key",
|
|
3404
|
+
origin: "record",
|
|
3405
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
3406
|
+
input: key,
|
|
3407
|
+
path: [key],
|
|
3408
|
+
inst
|
|
3409
|
+
});
|
|
3410
|
+
continue;
|
|
3411
|
+
}
|
|
3412
|
+
const outKey = keyResult.value;
|
|
3349
3413
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3350
3414
|
if (result instanceof Promise) {
|
|
3351
3415
|
proms.push(result.then((result2) => {
|
|
3352
3416
|
if (result2.issues.length) {
|
|
3353
3417
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3354
3418
|
}
|
|
3355
|
-
payload.value[
|
|
3419
|
+
payload.value[outKey] = result2.value;
|
|
3356
3420
|
}));
|
|
3357
3421
|
} else {
|
|
3358
3422
|
if (result.issues.length) {
|
|
3359
3423
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3360
3424
|
}
|
|
3361
|
-
payload.value[
|
|
3425
|
+
payload.value[outKey] = result.value;
|
|
3362
3426
|
}
|
|
3363
3427
|
}
|
|
3364
3428
|
}
|
|
@@ -3382,6 +3446,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3382
3446
|
for (const key of Reflect.ownKeys(input)) {
|
|
3383
3447
|
if (key === "__proto__")
|
|
3384
3448
|
continue;
|
|
3449
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
3450
|
+
continue;
|
|
3385
3451
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3386
3452
|
if (keyResult instanceof Promise) {
|
|
3387
3453
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -3476,7 +3542,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
3476
3542
|
};
|
|
3477
3543
|
});
|
|
3478
3544
|
function handleOptionalResult(result, input) {
|
|
3479
|
-
if (result.issues.length
|
|
3545
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
3480
3546
|
return { issues: [], value: void 0 };
|
|
3481
3547
|
}
|
|
3482
3548
|
return result;
|
|
@@ -3494,10 +3560,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
3494
3560
|
});
|
|
3495
3561
|
inst._zod.parse = (payload, ctx) => {
|
|
3496
3562
|
if (def.innerType._zod.optin === "optional") {
|
|
3563
|
+
const input = payload.value;
|
|
3497
3564
|
const result = def.innerType._zod.run(payload, ctx);
|
|
3498
3565
|
if (result instanceof Promise)
|
|
3499
|
-
return result.then((r) => handleOptionalResult(r,
|
|
3500
|
-
return handleOptionalResult(result,
|
|
3566
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
3567
|
+
return handleOptionalResult(result, input);
|
|
3501
3568
|
}
|
|
3502
3569
|
if (payload.value === void 0) {
|
|
3503
3570
|
return payload;
|
|
@@ -3548,159 +3615,9 @@ function handleDefaultResult(payload, def) {
|
|
|
3548
3615
|
return payload;
|
|
3549
3616
|
}
|
|
3550
3617
|
|
|
3551
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
3552
|
-
init_esm_shims();
|
|
3553
|
-
|
|
3554
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
|
|
3555
|
-
init_esm_shims();
|
|
3556
|
-
|
|
3557
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
|
|
3558
|
-
init_esm_shims();
|
|
3559
|
-
|
|
3560
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
|
|
3561
|
-
init_esm_shims();
|
|
3562
|
-
|
|
3563
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
|
|
3564
|
-
init_esm_shims();
|
|
3565
|
-
|
|
3566
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
|
|
3567
|
-
init_esm_shims();
|
|
3568
|
-
|
|
3569
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
|
|
3570
|
-
init_esm_shims();
|
|
3571
|
-
|
|
3572
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
|
|
3573
|
-
init_esm_shims();
|
|
3574
|
-
|
|
3575
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
|
|
3576
|
-
init_esm_shims();
|
|
3577
|
-
|
|
3578
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
3579
|
-
init_esm_shims();
|
|
3580
|
-
|
|
3581
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
|
|
3582
|
-
init_esm_shims();
|
|
3583
|
-
|
|
3584
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
|
|
3585
|
-
init_esm_shims();
|
|
3586
|
-
|
|
3587
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
|
|
3588
|
-
init_esm_shims();
|
|
3589
|
-
|
|
3590
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
|
|
3591
|
-
init_esm_shims();
|
|
3592
|
-
|
|
3593
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
|
|
3594
|
-
init_esm_shims();
|
|
3595
|
-
|
|
3596
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
|
|
3597
|
-
init_esm_shims();
|
|
3598
|
-
|
|
3599
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
|
|
3600
|
-
init_esm_shims();
|
|
3601
|
-
|
|
3602
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
|
|
3618
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
3603
3619
|
init_esm_shims();
|
|
3604
|
-
|
|
3605
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
|
|
3606
|
-
init_esm_shims();
|
|
3607
|
-
|
|
3608
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
|
|
3609
|
-
init_esm_shims();
|
|
3610
|
-
|
|
3611
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
|
|
3612
|
-
init_esm_shims();
|
|
3613
|
-
|
|
3614
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
|
|
3615
|
-
init_esm_shims();
|
|
3616
|
-
|
|
3617
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
|
|
3618
|
-
init_esm_shims();
|
|
3619
|
-
|
|
3620
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
|
|
3621
|
-
init_esm_shims();
|
|
3622
|
-
|
|
3623
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
|
|
3624
|
-
init_esm_shims();
|
|
3625
|
-
|
|
3626
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
|
|
3627
|
-
init_esm_shims();
|
|
3628
|
-
|
|
3629
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
|
|
3630
|
-
init_esm_shims();
|
|
3631
|
-
|
|
3632
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
|
|
3633
|
-
init_esm_shims();
|
|
3634
|
-
|
|
3635
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
|
|
3636
|
-
init_esm_shims();
|
|
3637
|
-
|
|
3638
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
|
|
3639
|
-
init_esm_shims();
|
|
3640
|
-
|
|
3641
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
|
|
3642
|
-
init_esm_shims();
|
|
3643
|
-
|
|
3644
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
|
|
3645
|
-
init_esm_shims();
|
|
3646
|
-
|
|
3647
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
|
|
3648
|
-
init_esm_shims();
|
|
3649
|
-
|
|
3650
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
|
|
3651
|
-
init_esm_shims();
|
|
3652
|
-
|
|
3653
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
|
|
3654
|
-
init_esm_shims();
|
|
3655
|
-
|
|
3656
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
|
|
3657
|
-
init_esm_shims();
|
|
3658
|
-
|
|
3659
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
|
|
3660
|
-
init_esm_shims();
|
|
3661
|
-
|
|
3662
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
|
|
3663
|
-
init_esm_shims();
|
|
3664
|
-
|
|
3665
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
|
|
3666
|
-
init_esm_shims();
|
|
3667
|
-
|
|
3668
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
|
|
3669
|
-
init_esm_shims();
|
|
3670
|
-
|
|
3671
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
|
|
3672
|
-
init_esm_shims();
|
|
3673
|
-
|
|
3674
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
|
|
3675
|
-
init_esm_shims();
|
|
3676
|
-
|
|
3677
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
|
|
3678
|
-
init_esm_shims();
|
|
3679
|
-
|
|
3680
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
|
|
3681
|
-
init_esm_shims();
|
|
3682
|
-
|
|
3683
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
|
|
3684
|
-
init_esm_shims();
|
|
3685
|
-
|
|
3686
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
|
|
3687
|
-
init_esm_shims();
|
|
3688
|
-
|
|
3689
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
|
|
3690
|
-
init_esm_shims();
|
|
3691
|
-
|
|
3692
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
|
|
3693
|
-
init_esm_shims();
|
|
3694
|
-
|
|
3695
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
|
|
3696
|
-
init_esm_shims();
|
|
3697
|
-
|
|
3698
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
|
|
3699
|
-
init_esm_shims();
|
|
3700
|
-
|
|
3701
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
3702
|
-
init_esm_shims();
|
|
3703
|
-
var _a;
|
|
3620
|
+
var _a2;
|
|
3704
3621
|
var $ZodRegistry = class {
|
|
3705
3622
|
constructor() {
|
|
3706
3623
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
@@ -3744,15 +3661,15 @@ var $ZodRegistry = class {
|
|
|
3744
3661
|
function registry() {
|
|
3745
3662
|
return new $ZodRegistry();
|
|
3746
3663
|
}
|
|
3747
|
-
(
|
|
3664
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
3748
3665
|
|
|
3749
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
3666
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
3750
3667
|
init_esm_shims();
|
|
3751
3668
|
// @__NO_SIDE_EFFECTS__
|
|
3752
3669
|
function _string(Class, params) {
|
|
3753
3670
|
return new Class({
|
|
3754
3671
|
type: "string",
|
|
3755
|
-
...normalizeParams()
|
|
3672
|
+
...normalizeParams(params)
|
|
3756
3673
|
});
|
|
3757
3674
|
}
|
|
3758
3675
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -3762,14 +3679,14 @@ function _url(Class, params) {
|
|
|
3762
3679
|
format: "url",
|
|
3763
3680
|
check: "string_format",
|
|
3764
3681
|
abort: false,
|
|
3765
|
-
...normalizeParams()
|
|
3682
|
+
...normalizeParams(params)
|
|
3766
3683
|
});
|
|
3767
3684
|
}
|
|
3768
3685
|
// @__NO_SIDE_EFFECTS__
|
|
3769
3686
|
function _boolean(Class, params) {
|
|
3770
3687
|
return new Class({
|
|
3771
3688
|
type: "boolean",
|
|
3772
|
-
...normalizeParams()
|
|
3689
|
+
...normalizeParams(params)
|
|
3773
3690
|
});
|
|
3774
3691
|
}
|
|
3775
3692
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -3782,7 +3699,7 @@ function _any(Class) {
|
|
|
3782
3699
|
function _length(length, params) {
|
|
3783
3700
|
return new $ZodCheckLengthEquals({
|
|
3784
3701
|
check: "length_equals",
|
|
3785
|
-
...normalizeParams(),
|
|
3702
|
+
...normalizeParams(params),
|
|
3786
3703
|
length
|
|
3787
3704
|
});
|
|
3788
3705
|
}
|
|
@@ -3791,7 +3708,7 @@ function _regex(pattern, params) {
|
|
|
3791
3708
|
return new $ZodCheckRegex({
|
|
3792
3709
|
check: "string_format",
|
|
3793
3710
|
format: "regex",
|
|
3794
|
-
...normalizeParams(),
|
|
3711
|
+
...normalizeParams(params),
|
|
3795
3712
|
pattern
|
|
3796
3713
|
});
|
|
3797
3714
|
}
|
|
@@ -3811,22 +3728,10 @@ function _toLowerCase() {
|
|
|
3811
3728
|
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
3812
3729
|
}
|
|
3813
3730
|
|
|
3814
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
3815
|
-
init_esm_shims();
|
|
3816
|
-
|
|
3817
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
3818
|
-
init_esm_shims();
|
|
3819
|
-
|
|
3820
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
|
|
3731
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/parse.js
|
|
3821
3732
|
init_esm_shims();
|
|
3822
3733
|
|
|
3823
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
3824
|
-
init_esm_shims();
|
|
3825
|
-
|
|
3826
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/parse.js
|
|
3827
|
-
init_esm_shims();
|
|
3828
|
-
|
|
3829
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
|
|
3734
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
3830
3735
|
init_esm_shims();
|
|
3831
3736
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
3832
3737
|
if (!inst._zod)
|
|
@@ -3843,7 +3748,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
3843
3748
|
...def,
|
|
3844
3749
|
checks: [
|
|
3845
3750
|
...def.checks ?? [],
|
|
3846
|
-
...checks.map((ch) => typeof ch === "function" ? {
|
|
3751
|
+
...checks.map((ch) => typeof ch === "function" ? {
|
|
3752
|
+
_zod: { check: ch, def: { check: "custom" }, onattach: [] }
|
|
3753
|
+
} : ch)
|
|
3847
3754
|
]
|
|
3848
3755
|
}, { parent: true });
|
|
3849
3756
|
};
|
|
@@ -3862,7 +3769,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
|
|
|
3862
3769
|
});
|
|
3863
3770
|
// @__NO_SIDE_EFFECTS__
|
|
3864
3771
|
function string2(params) {
|
|
3865
|
-
return _string(ZodMiniString);
|
|
3772
|
+
return _string(ZodMiniString, params);
|
|
3866
3773
|
}
|
|
3867
3774
|
var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
|
|
3868
3775
|
$ZodStringFormat.init(inst, def);
|
|
@@ -3874,7 +3781,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
|
|
|
3874
3781
|
});
|
|
3875
3782
|
// @__NO_SIDE_EFFECTS__
|
|
3876
3783
|
function url(params) {
|
|
3877
|
-
return _url(ZodMiniURL);
|
|
3784
|
+
return _url(ZodMiniURL, params);
|
|
3878
3785
|
}
|
|
3879
3786
|
var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
|
|
3880
3787
|
$ZodBoolean.init(inst, def);
|
|
@@ -3882,7 +3789,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
|
|
|
3882
3789
|
});
|
|
3883
3790
|
// @__NO_SIDE_EFFECTS__
|
|
3884
3791
|
function boolean2(params) {
|
|
3885
|
-
return _boolean(ZodMiniBoolean);
|
|
3792
|
+
return _boolean(ZodMiniBoolean, params);
|
|
3886
3793
|
}
|
|
3887
3794
|
var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
|
|
3888
3795
|
$ZodAny.init(inst, def);
|
|
@@ -3901,7 +3808,7 @@ function array(element, params) {
|
|
|
3901
3808
|
return new ZodMiniArray({
|
|
3902
3809
|
type: "array",
|
|
3903
3810
|
element,
|
|
3904
|
-
...normalizeParams()
|
|
3811
|
+
...normalizeParams(params)
|
|
3905
3812
|
});
|
|
3906
3813
|
}
|
|
3907
3814
|
var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
|
|
@@ -3914,7 +3821,7 @@ function object(shape, params) {
|
|
|
3914
3821
|
const def = {
|
|
3915
3822
|
type: "object",
|
|
3916
3823
|
shape: shape ?? {},
|
|
3917
|
-
...normalizeParams()
|
|
3824
|
+
...normalizeParams(params)
|
|
3918
3825
|
};
|
|
3919
3826
|
return new ZodMiniObject(def);
|
|
3920
3827
|
}
|
|
@@ -3927,7 +3834,7 @@ function union(options, params) {
|
|
|
3927
3834
|
return new ZodMiniUnion({
|
|
3928
3835
|
type: "union",
|
|
3929
3836
|
options,
|
|
3930
|
-
...normalizeParams()
|
|
3837
|
+
...normalizeParams(params)
|
|
3931
3838
|
});
|
|
3932
3839
|
}
|
|
3933
3840
|
var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
|
|
@@ -3936,11 +3843,19 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
|
|
|
3936
3843
|
});
|
|
3937
3844
|
// @__NO_SIDE_EFFECTS__
|
|
3938
3845
|
function record(keyType, valueType, params) {
|
|
3846
|
+
if (!valueType || !valueType._zod) {
|
|
3847
|
+
return new ZodMiniRecord({
|
|
3848
|
+
type: "record",
|
|
3849
|
+
keyType: /* @__PURE__ */ string2(),
|
|
3850
|
+
valueType: keyType,
|
|
3851
|
+
...normalizeParams(valueType)
|
|
3852
|
+
});
|
|
3853
|
+
}
|
|
3939
3854
|
return new ZodMiniRecord({
|
|
3940
3855
|
type: "record",
|
|
3941
3856
|
keyType,
|
|
3942
3857
|
valueType,
|
|
3943
|
-
...normalizeParams()
|
|
3858
|
+
...normalizeParams(params)
|
|
3944
3859
|
});
|
|
3945
3860
|
}
|
|
3946
3861
|
var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
|
|
@@ -3954,7 +3869,7 @@ function _enum(values, params) {
|
|
|
3954
3869
|
return new ZodMiniEnum({
|
|
3955
3870
|
type: "enum",
|
|
3956
3871
|
entries,
|
|
3957
|
-
...normalizeParams()
|
|
3872
|
+
...normalizeParams(params)
|
|
3958
3873
|
});
|
|
3959
3874
|
}
|
|
3960
3875
|
var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
|
|
@@ -3966,7 +3881,7 @@ function literal(value, params) {
|
|
|
3966
3881
|
return new ZodMiniLiteral({
|
|
3967
3882
|
type: "literal",
|
|
3968
3883
|
values: Array.isArray(value) ? value : [value],
|
|
3969
|
-
...normalizeParams()
|
|
3884
|
+
...normalizeParams(params)
|
|
3970
3885
|
});
|
|
3971
3886
|
}
|
|
3972
3887
|
var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
|
|
@@ -4006,13 +3921,7 @@ function _default(innerType, defaultValue) {
|
|
|
4006
3921
|
});
|
|
4007
3922
|
}
|
|
4008
3923
|
|
|
4009
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4010
|
-
init_esm_shims();
|
|
4011
|
-
|
|
4012
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/iso.js
|
|
4013
|
-
init_esm_shims();
|
|
4014
|
-
|
|
4015
|
-
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/coerce.js
|
|
3924
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/checks.js
|
|
4016
3925
|
init_esm_shims();
|
|
4017
3926
|
|
|
4018
3927
|
// ../config/src/schema.ts
|