@storm-software/workspace-tools 1.66.30 → 1.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +42 -1
- package/executors.json +1 -1
- package/index.js +225 -96
- package/meta.json +1 -1
- package/package.json +3 -3
- package/src/base/index.js +16 -3
- package/src/executors/rolldown/executor.js +81 -19
- package/src/executors/rolldown/schema.json +4 -17
- package/src/executors/tsup/executor.js +60 -12
- package/src/executors/tsup/schema.json +5 -21
- package/src/executors/tsup-browser/executor.js +60 -12
- package/src/executors/tsup-neutral/executor.js +60 -12
- package/src/executors/tsup-node/executor.js +60 -12
- package/src/executors/typia/executor.js +16 -3
- package/src/generators/browser-library/generator.js +16 -3
- package/src/generators/config-schema/generator.js +116 -71
- package/src/generators/neutral-library/generator.js +16 -3
- package/src/generators/node-library/generator.js +16 -3
- package/src/generators/preset/files/.env.template +2 -7
- package/src/generators/preset/files/.eslintignore +17 -0
- package/src/generators/preset/files/.eslintrc.base.json +42 -0
- package/src/generators/preset/files/.github/CODEOWNERS +1 -1
- package/src/generators/preset/files/.github/dependabot.yml +24 -0
- package/src/generators/preset/files/.github/labels.yml +3 -0
- package/src/generators/preset/files/.github/renovate.json.template +14 -2
- package/src/generators/preset/files/.github/stale.yml +22 -17
- package/src/generators/preset/files/.github/workflows/build-release.yml.template +11 -80
- package/src/generators/preset/files/.github/workflows/codeql.yml +1 -1
- package/src/generators/preset/files/.github/workflows/dependabot-approve.yml +24 -0
- package/src/generators/preset/files/.github/workflows/git-guardian.yml +1 -1
- package/src/generators/preset/files/.github/workflows/greetings.yml +2 -3
- package/src/generators/preset/files/.vscode/settings.json +127 -42
- package/src/generators/preset/files/.vscode/tasks.json +1 -16
- package/src/generators/preset/files/storm.config.js.template +29 -0
- package/src/generators/preset/files/tsconfig.base.json.template +1 -1
- package/src/generators/preset/generator.js +16 -3
- package/src/generators/release-version/generator.js +16 -3
- package/src/utils/index.js +16 -3
- package/src/generators/preset/files/.github/actions/setup-workspace/action.yaml +0 -41
- /package/src/generators/preset/files/{.github/.whitesource → .whitesource} +0 -0
package/index.js
CHANGED
|
@@ -215278,7 +215278,9 @@ var init_schema = __esm({
|
|
|
215278
215278
|
fatal: z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
215279
215279
|
}).describe("Colors used for various workspace elements");
|
|
215280
215280
|
StormConfigSchema = z.object({
|
|
215281
|
-
extends: z.string().trim().optional().describe(
|
|
215281
|
+
extends: z.string().trim().optional().describe(
|
|
215282
|
+
"The path to a base JSON file to use as a configuration preset file"
|
|
215283
|
+
),
|
|
215282
215284
|
name: z.string().trim().toLowerCase().optional().describe("The name of the package"),
|
|
215283
215285
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
215284
215286
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
@@ -215292,7 +215294,9 @@ var init_schema = __esm({
|
|
|
215292
215294
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
215293
215295
|
),
|
|
215294
215296
|
env: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
215295
|
-
ci: z.boolean().default(true).describe(
|
|
215297
|
+
ci: z.boolean().default(true).describe(
|
|
215298
|
+
"An indicator specifying if the current environment is a CI environment"
|
|
215299
|
+
),
|
|
215296
215300
|
workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
|
|
215297
215301
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
215298
215302
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
@@ -215308,7 +215312,16 @@ var init_schema = __esm({
|
|
|
215308
215312
|
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
215309
215313
|
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
215310
215314
|
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
215311
|
-
logLevel: z.enum([
|
|
215315
|
+
logLevel: z.enum([
|
|
215316
|
+
"silent",
|
|
215317
|
+
"fatal",
|
|
215318
|
+
"error",
|
|
215319
|
+
"warn",
|
|
215320
|
+
"info",
|
|
215321
|
+
"debug",
|
|
215322
|
+
"trace",
|
|
215323
|
+
"all"
|
|
215324
|
+
]).default("debug").describe(
|
|
215312
215325
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
215313
215326
|
),
|
|
215314
215327
|
configFile: z.string().trim().nullable().default(null).describe(
|
|
@@ -449002,7 +449015,9 @@ var DefaultConfig = {
|
|
|
449002
449015
|
}
|
|
449003
449016
|
};
|
|
449004
449017
|
async function getRolldownBuildOptions(config, options, dependencies, packageJson, npmDeps) {
|
|
449005
|
-
const buildOptions = defineConfig(
|
|
449018
|
+
const buildOptions = defineConfig(
|
|
449019
|
+
(0, import_deepmerge2.default)(DefaultConfig, options)
|
|
449020
|
+
);
|
|
449006
449021
|
buildOptions.output ??= DefaultConfig.output;
|
|
449007
449022
|
buildOptions.output.dir = options?.outputPath;
|
|
449008
449023
|
buildOptions.resolve = options.resolve;
|
|
@@ -449014,9 +449029,16 @@ async function getRolldownBuildOptions(config, options, dependencies, packageJso
|
|
|
449014
449029
|
buildOptions.output.banner = options.banner;
|
|
449015
449030
|
buildOptions.output.footer = options.footer;
|
|
449016
449031
|
buildOptions.cwd = config.workspaceRoot;
|
|
449017
|
-
const tsConfigPath = (0, import_devkit9.joinPathFragments)(
|
|
449032
|
+
const tsConfigPath = (0, import_devkit9.joinPathFragments)(
|
|
449033
|
+
config.workspaceRoot ?? "./",
|
|
449034
|
+
options.tsConfig
|
|
449035
|
+
);
|
|
449018
449036
|
const configFile = import_typescript.default.readConfigFile(tsConfigPath, import_typescript.default.sys.readFile);
|
|
449019
|
-
const tsconfig = import_typescript.default.parseJsonConfigFileContent(
|
|
449037
|
+
const tsconfig = import_typescript.default.parseJsonConfigFileContent(
|
|
449038
|
+
configFile.config,
|
|
449039
|
+
import_typescript.default.sys,
|
|
449040
|
+
(0, import_node_path8.dirname)(tsConfigPath)
|
|
449041
|
+
);
|
|
449020
449042
|
let externalPackages = [...Object.keys(packageJson.peerDependencies || {})];
|
|
449021
449043
|
externalPackages.push(
|
|
449022
449044
|
...Object.keys(packageJson.dependencies || {}).filter(
|
|
@@ -449040,7 +449062,11 @@ async function getRolldownBuildOptions(config, options, dependencies, packageJso
|
|
|
449040
449062
|
check: !options.skipTypeCheck,
|
|
449041
449063
|
tsconfig: options.tsConfig,
|
|
449042
449064
|
tsconfigOverride: {
|
|
449043
|
-
compilerOptions: createTsCompilerOptions(
|
|
449065
|
+
compilerOptions: createTsCompilerOptions(
|
|
449066
|
+
tsconfig,
|
|
449067
|
+
dependencies,
|
|
449068
|
+
options
|
|
449069
|
+
)
|
|
449044
449070
|
}
|
|
449045
449071
|
}),
|
|
449046
449072
|
(0, import_type_definitions.typeDefinitions)({
|
|
@@ -449048,7 +449074,10 @@ async function getRolldownBuildOptions(config, options, dependencies, packageJso
|
|
|
449048
449074
|
projectRoot: options.projectRoot
|
|
449049
449075
|
}),
|
|
449050
449076
|
(0, import_rollup_plugin_peer_deps_external.default)({
|
|
449051
|
-
packageJsonPath: (0, import_devkit9.joinPathFragments)(
|
|
449077
|
+
packageJsonPath: (0, import_devkit9.joinPathFragments)(
|
|
449078
|
+
options.projectRoot,
|
|
449079
|
+
"package.json"
|
|
449080
|
+
)
|
|
449052
449081
|
}),
|
|
449053
449082
|
postcss({
|
|
449054
449083
|
inject: true,
|
|
@@ -449071,7 +449100,9 @@ async function getRolldownBuildOptions(config, options, dependencies, packageJso
|
|
|
449071
449100
|
let nextConfig = {
|
|
449072
449101
|
...buildOpts,
|
|
449073
449102
|
plugins: buildOpts.plugins.map((plugin) => (0, import_config_utils.loadConfigFile)(plugin)),
|
|
449074
|
-
external: (id) => externalPackages.some(
|
|
449103
|
+
external: (id) => externalPackages.some(
|
|
449104
|
+
(name) => id === name || id.startsWith(`${name}/`)
|
|
449105
|
+
),
|
|
449075
449106
|
cwd: config.workspaceRoot,
|
|
449076
449107
|
platform: options.platform
|
|
449077
449108
|
};
|
|
@@ -449114,7 +449145,9 @@ async function loadConfig(configPath) {
|
|
|
449114
449145
|
if (!isSupportedFormat(configPath)) {
|
|
449115
449146
|
throw new Error("Unsupported config file format");
|
|
449116
449147
|
}
|
|
449117
|
-
return import((0, import_node_url.pathToFileURL)(configPath).toString()).then(
|
|
449148
|
+
return import((0, import_node_url.pathToFileURL)(configPath).toString()).then(
|
|
449149
|
+
(config) => config.default
|
|
449150
|
+
);
|
|
449118
449151
|
}
|
|
449119
449152
|
function isSupportedFormat(configPath) {
|
|
449120
449153
|
const ext2 = (0, import_node_path8.extname)(configPath);
|
|
@@ -455907,7 +455940,9 @@ ${commentStart} ----------------------------------------------------------------
|
|
|
455907
455940
|
// packages/build-tools/src/utils/task-graph.ts
|
|
455908
455941
|
var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
|
|
455909
455942
|
function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
|
|
455910
|
-
const defaultDependencyConfigs = (0, import_create_task_graph.mapTargetDefaultsToDependencies)(
|
|
455943
|
+
const defaultDependencyConfigs = (0, import_create_task_graph.mapTargetDefaultsToDependencies)(
|
|
455944
|
+
nxJson.targetDefaults
|
|
455945
|
+
);
|
|
455911
455946
|
const taskGraphs = {};
|
|
455912
455947
|
const taskGraphErrors = {};
|
|
455913
455948
|
for (const projectName in projectGraph.nodes) {
|
|
@@ -455932,7 +455967,9 @@ function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
|
|
|
455932
455967
|
};
|
|
455933
455968
|
taskGraphErrors[taskId] = err.message;
|
|
455934
455969
|
}
|
|
455935
|
-
const configurations = Object.keys(
|
|
455970
|
+
const configurations = Object.keys(
|
|
455971
|
+
project?.data?.targets?.[target]?.configurations || {}
|
|
455972
|
+
);
|
|
455936
455973
|
if (configurations.length > 0) {
|
|
455937
455974
|
for (const configuration of configurations) {
|
|
455938
455975
|
const taskId2 = createTaskId(projectName, target, configuration);
|
|
@@ -456019,7 +456056,12 @@ async function build3(config, options = {}) {
|
|
|
456019
456056
|
await buildWithOptions(
|
|
456020
456057
|
config,
|
|
456021
456058
|
applyDefaultOptions(
|
|
456022
|
-
{
|
|
456059
|
+
{
|
|
456060
|
+
projectRoot,
|
|
456061
|
+
projectName,
|
|
456062
|
+
sourceRoot: projectConfiguration.sourceRoot,
|
|
456063
|
+
...options
|
|
456064
|
+
},
|
|
456023
456065
|
config
|
|
456024
456066
|
)
|
|
456025
456067
|
);
|
|
@@ -456038,7 +456080,10 @@ async function buildWithOptions(config, options) {
|
|
|
456038
456080
|
writeInfo(config, `\u{1F9F9} Cleaning output path: ${enhancedOptions.outputPath}`);
|
|
456039
456081
|
(0, import_fs_extra.removeSync)(enhancedOptions.outputPath);
|
|
456040
456082
|
}
|
|
456041
|
-
writeDebug(
|
|
456083
|
+
writeDebug(
|
|
456084
|
+
config,
|
|
456085
|
+
`\u{1F4E6} Copying asset files to output directory: ${enhancedOptions.outputPath}`
|
|
456086
|
+
);
|
|
456042
456087
|
const assets = Array.from(options.assets ?? []);
|
|
456043
456088
|
if (!enhancedOptions.assets?.some((asset) => asset?.glob === "*.md")) {
|
|
456044
456089
|
assets.push({
|
|
@@ -456047,7 +456092,9 @@ async function buildWithOptions(config, options) {
|
|
|
456047
456092
|
output: "/"
|
|
456048
456093
|
});
|
|
456049
456094
|
}
|
|
456050
|
-
if (!enhancedOptions.assets?.some(
|
|
456095
|
+
if (!enhancedOptions.assets?.some(
|
|
456096
|
+
(asset) => asset?.glob === "LICENSE"
|
|
456097
|
+
)) {
|
|
456051
456098
|
assets.push({
|
|
456052
456099
|
input: "",
|
|
456053
456100
|
glob: "LICENSE",
|
|
@@ -456118,10 +456165,26 @@ async function buildWithOptions(config, options) {
|
|
|
456118
456165
|
)}`
|
|
456119
456166
|
);
|
|
456120
456167
|
const files = globSync([
|
|
456121
|
-
(0, import_devkit12.joinPathFragments)(
|
|
456122
|
-
|
|
456123
|
-
|
|
456124
|
-
|
|
456168
|
+
(0, import_devkit12.joinPathFragments)(
|
|
456169
|
+
workspaceRoot3,
|
|
456170
|
+
enhancedOptions.outputPath,
|
|
456171
|
+
"src/**/*.ts"
|
|
456172
|
+
),
|
|
456173
|
+
(0, import_devkit12.joinPathFragments)(
|
|
456174
|
+
workspaceRoot3,
|
|
456175
|
+
enhancedOptions.outputPath,
|
|
456176
|
+
"src/**/*.tsx"
|
|
456177
|
+
),
|
|
456178
|
+
(0, import_devkit12.joinPathFragments)(
|
|
456179
|
+
workspaceRoot3,
|
|
456180
|
+
enhancedOptions.outputPath,
|
|
456181
|
+
"src/**/*.js"
|
|
456182
|
+
),
|
|
456183
|
+
(0, import_devkit12.joinPathFragments)(
|
|
456184
|
+
workspaceRoot3,
|
|
456185
|
+
enhancedOptions.outputPath,
|
|
456186
|
+
"src/**/*.jsx"
|
|
456187
|
+
)
|
|
456125
456188
|
]);
|
|
456126
456189
|
await Promise.allSettled(
|
|
456127
456190
|
files.map(
|
|
@@ -456146,7 +456209,11 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
456146
456209
|
if (enhancedOptions.generatePackageJson !== false) {
|
|
456147
456210
|
writeDebug(config, "\u270D\uFE0F Writing package.json file");
|
|
456148
456211
|
await (0, import_fileutils2.writeJsonFile)(
|
|
456149
|
-
(0, import_devkit12.joinPathFragments)(
|
|
456212
|
+
(0, import_devkit12.joinPathFragments)(
|
|
456213
|
+
workspaceRoot3,
|
|
456214
|
+
enhancedOptions.outputPath,
|
|
456215
|
+
"package.json"
|
|
456216
|
+
),
|
|
456150
456217
|
packageJson
|
|
456151
456218
|
);
|
|
456152
456219
|
enhancedOptions.external ??= [];
|
|
@@ -456157,7 +456224,12 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
456157
456224
|
}
|
|
456158
456225
|
}
|
|
456159
456226
|
writeDebug(config, "\u{1F50D} Detecting entry points for the build process");
|
|
456160
|
-
const entryPoints = getEntryPoints(
|
|
456227
|
+
const entryPoints = getEntryPoints(
|
|
456228
|
+
config,
|
|
456229
|
+
projectRoot,
|
|
456230
|
+
sourceRoot,
|
|
456231
|
+
enhancedOptions
|
|
456232
|
+
);
|
|
456161
456233
|
writeTrace(
|
|
456162
456234
|
config,
|
|
456163
456235
|
`Found entry points:
|
|
@@ -456256,7 +456328,10 @@ async function rolldownWithOptions(config, options) {
|
|
|
456256
456328
|
writeInfo(config, `\u{1F9F9} Cleaning output path: ${enhancedOptions.outputPath}`);
|
|
456257
456329
|
(0, import_fs_extra2.removeSync)(enhancedOptions.outputPath);
|
|
456258
456330
|
}
|
|
456259
|
-
writeDebug(
|
|
456331
|
+
writeDebug(
|
|
456332
|
+
config,
|
|
456333
|
+
`\u{1F4E6} Copying asset files to output directory: ${enhancedOptions.outputPath}`
|
|
456334
|
+
);
|
|
456260
456335
|
const assets = Array.from(options.assets ?? []);
|
|
456261
456336
|
if (!enhancedOptions.assets?.some((asset) => asset?.glob === "*.md")) {
|
|
456262
456337
|
assets.push({
|
|
@@ -456265,7 +456340,9 @@ async function rolldownWithOptions(config, options) {
|
|
|
456265
456340
|
output: "/"
|
|
456266
456341
|
});
|
|
456267
456342
|
}
|
|
456268
|
-
if (!enhancedOptions.assets?.some(
|
|
456343
|
+
if (!enhancedOptions.assets?.some(
|
|
456344
|
+
(asset) => asset?.glob === "LICENSE"
|
|
456345
|
+
)) {
|
|
456269
456346
|
assets.push({
|
|
456270
456347
|
input: "",
|
|
456271
456348
|
glob: "LICENSE",
|
|
@@ -456337,10 +456414,26 @@ async function rolldownWithOptions(config, options) {
|
|
|
456337
456414
|
)}`
|
|
456338
456415
|
);
|
|
456339
456416
|
const files = globSync([
|
|
456340
|
-
(0, import_devkit13.joinPathFragments)(
|
|
456341
|
-
|
|
456342
|
-
|
|
456343
|
-
|
|
456417
|
+
(0, import_devkit13.joinPathFragments)(
|
|
456418
|
+
workspaceRoot3,
|
|
456419
|
+
enhancedOptions.outputPath,
|
|
456420
|
+
"src/**/*.ts"
|
|
456421
|
+
),
|
|
456422
|
+
(0, import_devkit13.joinPathFragments)(
|
|
456423
|
+
workspaceRoot3,
|
|
456424
|
+
enhancedOptions.outputPath,
|
|
456425
|
+
"src/**/*.tsx"
|
|
456426
|
+
),
|
|
456427
|
+
(0, import_devkit13.joinPathFragments)(
|
|
456428
|
+
workspaceRoot3,
|
|
456429
|
+
enhancedOptions.outputPath,
|
|
456430
|
+
"src/**/*.js"
|
|
456431
|
+
),
|
|
456432
|
+
(0, import_devkit13.joinPathFragments)(
|
|
456433
|
+
workspaceRoot3,
|
|
456434
|
+
enhancedOptions.outputPath,
|
|
456435
|
+
"src/**/*.jsx"
|
|
456436
|
+
)
|
|
456344
456437
|
]);
|
|
456345
456438
|
await Promise.allSettled(
|
|
456346
456439
|
files.map(
|
|
@@ -456366,7 +456459,11 @@ ${enhancedOptions.footer && typeof enhancedOptions.footer === "string" ? enhance
|
|
|
456366
456459
|
true
|
|
456367
456460
|
);
|
|
456368
456461
|
const packageJson = (0, import_devkit13.readJsonFile)(
|
|
456369
|
-
(0, import_devkit13.joinPathFragments)(
|
|
456462
|
+
(0, import_devkit13.joinPathFragments)(
|
|
456463
|
+
workspaceRoot3,
|
|
456464
|
+
enhancedOptions.projectRoot,
|
|
456465
|
+
"package.json"
|
|
456466
|
+
)
|
|
456370
456467
|
);
|
|
456371
456468
|
const npmDeps = (projectGraph.dependencies[projectName] ?? []).filter((d4) => d4.target.startsWith("npm:")).map((d4) => d4.target.slice(4));
|
|
456372
456469
|
writeDebug(config, "\u{1F50D} Detecting entry points for the build process");
|
|
@@ -456686,7 +456783,7 @@ var import_node_fs7 = require("node:fs");
|
|
|
456686
456783
|
var import_node_path10 = require("node:path");
|
|
456687
456784
|
init_lib();
|
|
456688
456785
|
|
|
456689
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456786
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
456690
456787
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
456691
456788
|
if (!refs?.errorMessages)
|
|
456692
456789
|
return;
|
|
@@ -456702,15 +456799,17 @@ function setResponseValueAndErrors(res, key, value2, errorMessage, refs) {
|
|
|
456702
456799
|
addErrorMessage(res, key, errorMessage, refs);
|
|
456703
456800
|
}
|
|
456704
456801
|
|
|
456705
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456802
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
456803
|
+
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
456706
456804
|
var defaultOptions = {
|
|
456707
456805
|
name: void 0,
|
|
456708
456806
|
$refStrategy: "root",
|
|
456709
456807
|
basePath: ["#"],
|
|
456710
456808
|
effectStrategy: "input",
|
|
456711
456809
|
pipeStrategy: "all",
|
|
456712
|
-
dateStrategy: "
|
|
456810
|
+
dateStrategy: "format:date-time",
|
|
456713
456811
|
mapStrategy: "entries",
|
|
456812
|
+
removeAdditionalStrategy: "passthrough",
|
|
456714
456813
|
definitionPath: "definitions",
|
|
456715
456814
|
target: "jsonSchema7",
|
|
456716
456815
|
strictUnions: false,
|
|
@@ -456728,15 +456827,15 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
456728
456827
|
...options
|
|
456729
456828
|
};
|
|
456730
456829
|
|
|
456731
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456830
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
456732
456831
|
init_lib();
|
|
456733
456832
|
|
|
456734
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456833
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
456735
456834
|
function parseAnyDef() {
|
|
456736
456835
|
return {};
|
|
456737
456836
|
}
|
|
456738
456837
|
|
|
456739
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456838
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
456740
456839
|
init_lib();
|
|
456741
456840
|
function parseArrayDef(def, refs) {
|
|
456742
456841
|
const res = {
|
|
@@ -456761,7 +456860,7 @@ function parseArrayDef(def, refs) {
|
|
|
456761
456860
|
return res;
|
|
456762
456861
|
}
|
|
456763
456862
|
|
|
456764
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456863
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
456765
456864
|
function parseBigintDef(def, refs) {
|
|
456766
456865
|
const res = {
|
|
456767
456866
|
type: "integer",
|
|
@@ -456807,71 +456906,83 @@ function parseBigintDef(def, refs) {
|
|
|
456807
456906
|
return res;
|
|
456808
456907
|
}
|
|
456809
456908
|
|
|
456810
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456909
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
456811
456910
|
function parseBooleanDef() {
|
|
456812
456911
|
return {
|
|
456813
456912
|
type: "boolean"
|
|
456814
456913
|
};
|
|
456815
456914
|
}
|
|
456816
456915
|
|
|
456817
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456916
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
456818
456917
|
function parseBrandedDef(_def, refs) {
|
|
456819
456918
|
return parseDef(_def.type._def, refs);
|
|
456820
456919
|
}
|
|
456821
456920
|
|
|
456822
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456921
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
456823
456922
|
var parseCatchDef = (def, refs) => {
|
|
456824
456923
|
return parseDef(def.innerType._def, refs);
|
|
456825
456924
|
};
|
|
456826
456925
|
|
|
456827
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456828
|
-
function parseDateDef(def, refs) {
|
|
456829
|
-
|
|
456830
|
-
|
|
456831
|
-
} else {
|
|
456926
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
456927
|
+
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
456928
|
+
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
456929
|
+
if (Array.isArray(strategy)) {
|
|
456832
456930
|
return {
|
|
456833
|
-
|
|
456834
|
-
format: "date-time"
|
|
456931
|
+
anyOf: strategy.map((item, i) => parseDateDef(def, refs, item))
|
|
456835
456932
|
};
|
|
456836
456933
|
}
|
|
456934
|
+
switch (strategy) {
|
|
456935
|
+
case "string":
|
|
456936
|
+
case "format:date-time":
|
|
456937
|
+
return {
|
|
456938
|
+
type: "string",
|
|
456939
|
+
format: "date-time"
|
|
456940
|
+
};
|
|
456941
|
+
case "format:date":
|
|
456942
|
+
return {
|
|
456943
|
+
type: "string",
|
|
456944
|
+
format: "date"
|
|
456945
|
+
};
|
|
456946
|
+
case "integer":
|
|
456947
|
+
return integerDateParser(def, refs);
|
|
456948
|
+
}
|
|
456837
456949
|
}
|
|
456838
456950
|
var integerDateParser = (def, refs) => {
|
|
456839
456951
|
const res = {
|
|
456840
456952
|
type: "integer",
|
|
456841
456953
|
format: "unix-time"
|
|
456842
456954
|
};
|
|
456955
|
+
if (refs.target === "openApi3") {
|
|
456956
|
+
return res;
|
|
456957
|
+
}
|
|
456843
456958
|
for (const check of def.checks) {
|
|
456844
456959
|
switch (check.kind) {
|
|
456845
456960
|
case "min":
|
|
456846
|
-
|
|
456847
|
-
|
|
456848
|
-
|
|
456849
|
-
|
|
456850
|
-
|
|
456851
|
-
|
|
456852
|
-
|
|
456853
|
-
|
|
456854
|
-
);
|
|
456855
|
-
}
|
|
456961
|
+
setResponseValueAndErrors(
|
|
456962
|
+
res,
|
|
456963
|
+
"minimum",
|
|
456964
|
+
check.value,
|
|
456965
|
+
// This is in milliseconds
|
|
456966
|
+
check.message,
|
|
456967
|
+
refs
|
|
456968
|
+
);
|
|
456856
456969
|
break;
|
|
456857
456970
|
case "max":
|
|
456858
|
-
|
|
456859
|
-
|
|
456860
|
-
|
|
456861
|
-
|
|
456862
|
-
|
|
456863
|
-
|
|
456864
|
-
|
|
456865
|
-
|
|
456866
|
-
);
|
|
456867
|
-
}
|
|
456971
|
+
setResponseValueAndErrors(
|
|
456972
|
+
res,
|
|
456973
|
+
"maximum",
|
|
456974
|
+
check.value,
|
|
456975
|
+
// This is in milliseconds
|
|
456976
|
+
check.message,
|
|
456977
|
+
refs
|
|
456978
|
+
);
|
|
456868
456979
|
break;
|
|
456869
456980
|
}
|
|
456870
456981
|
}
|
|
456871
456982
|
return res;
|
|
456872
456983
|
};
|
|
456873
456984
|
|
|
456874
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456985
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
456875
456986
|
function parseDefaultDef(_def, refs) {
|
|
456876
456987
|
return {
|
|
456877
456988
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -456879,12 +456990,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
456879
456990
|
};
|
|
456880
456991
|
}
|
|
456881
456992
|
|
|
456882
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456993
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
456883
456994
|
function parseEffectsDef(_def, refs) {
|
|
456884
456995
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : {};
|
|
456885
456996
|
}
|
|
456886
456997
|
|
|
456887
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
456998
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
456888
456999
|
function parseEnumDef(def) {
|
|
456889
457000
|
return {
|
|
456890
457001
|
type: "string",
|
|
@@ -456892,7 +457003,7 @@ function parseEnumDef(def) {
|
|
|
456892
457003
|
};
|
|
456893
457004
|
}
|
|
456894
457005
|
|
|
456895
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457006
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
456896
457007
|
var isJsonSchema7AllOfType = (type) => {
|
|
456897
457008
|
if ("type" in type && type.type === "string")
|
|
456898
457009
|
return false;
|
|
@@ -456934,7 +457045,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
456934
457045
|
} : void 0;
|
|
456935
457046
|
}
|
|
456936
457047
|
|
|
456937
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457048
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
456938
457049
|
function parseLiteralDef(def, refs) {
|
|
456939
457050
|
const parsedType = typeof def.value;
|
|
456940
457051
|
if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") {
|
|
@@ -456954,10 +457065,10 @@ function parseLiteralDef(def, refs) {
|
|
|
456954
457065
|
};
|
|
456955
457066
|
}
|
|
456956
457067
|
|
|
456957
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457068
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
456958
457069
|
init_lib();
|
|
456959
457070
|
|
|
456960
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457071
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
456961
457072
|
var zodPatterns = {
|
|
456962
457073
|
/**
|
|
456963
457074
|
* `c` was changed to `[cC]` to replicate /i flag
|
|
@@ -457130,7 +457241,7 @@ var addPattern = (schema, value2, message, refs) => {
|
|
|
457130
457241
|
}
|
|
457131
457242
|
};
|
|
457132
457243
|
|
|
457133
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457244
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
457134
457245
|
function parseRecordDef(def, refs) {
|
|
457135
457246
|
if (refs.target === "openApi3" && def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) {
|
|
457136
457247
|
return {
|
|
@@ -457173,7 +457284,7 @@ function parseRecordDef(def, refs) {
|
|
|
457173
457284
|
return schema;
|
|
457174
457285
|
}
|
|
457175
457286
|
|
|
457176
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457287
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
457177
457288
|
function parseMapDef(def, refs) {
|
|
457178
457289
|
if (refs.mapStrategy === "record") {
|
|
457179
457290
|
return parseRecordDef(def, refs);
|
|
@@ -457198,7 +457309,7 @@ function parseMapDef(def, refs) {
|
|
|
457198
457309
|
};
|
|
457199
457310
|
}
|
|
457200
457311
|
|
|
457201
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457312
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
457202
457313
|
function parseNativeEnumDef(def) {
|
|
457203
457314
|
const object = def.values;
|
|
457204
457315
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -457212,14 +457323,14 @@ function parseNativeEnumDef(def) {
|
|
|
457212
457323
|
};
|
|
457213
457324
|
}
|
|
457214
457325
|
|
|
457215
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457326
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
457216
457327
|
function parseNeverDef() {
|
|
457217
457328
|
return {
|
|
457218
457329
|
not: {}
|
|
457219
457330
|
};
|
|
457220
457331
|
}
|
|
457221
457332
|
|
|
457222
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457333
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
457223
457334
|
function parseNullDef(refs) {
|
|
457224
457335
|
return refs.target === "openApi3" ? {
|
|
457225
457336
|
enum: ["null"],
|
|
@@ -457229,7 +457340,7 @@ function parseNullDef(refs) {
|
|
|
457229
457340
|
};
|
|
457230
457341
|
}
|
|
457231
457342
|
|
|
457232
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457343
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
457233
457344
|
var primitiveMappings = {
|
|
457234
457345
|
ZodString: "string",
|
|
457235
457346
|
ZodNumber: "number",
|
|
@@ -457297,7 +457408,7 @@ var asAnyOf = (def, refs) => {
|
|
|
457297
457408
|
return anyOf.length ? { anyOf } : void 0;
|
|
457298
457409
|
};
|
|
457299
457410
|
|
|
457300
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457411
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
457301
457412
|
function parseNullableDef(def, refs) {
|
|
457302
457413
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
457303
457414
|
if (refs.target === "openApi3") {
|
|
@@ -457318,6 +457429,8 @@ function parseNullableDef(def, refs) {
|
|
|
457318
457429
|
...refs,
|
|
457319
457430
|
currentPath: [...refs.currentPath]
|
|
457320
457431
|
});
|
|
457432
|
+
if (base2 && "$ref" in base2)
|
|
457433
|
+
return { allOf: [base2], nullable: true };
|
|
457321
457434
|
return base2 && { ...base2, nullable: true };
|
|
457322
457435
|
}
|
|
457323
457436
|
const base = parseDef(def.innerType._def, {
|
|
@@ -457327,7 +457440,7 @@ function parseNullableDef(def, refs) {
|
|
|
457327
457440
|
return base && { anyOf: [base, { type: "null" }] };
|
|
457328
457441
|
}
|
|
457329
457442
|
|
|
457330
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457443
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
457331
457444
|
function parseNumberDef(def, refs) {
|
|
457332
457445
|
const res = {
|
|
457333
457446
|
type: "number"
|
|
@@ -457376,7 +457489,20 @@ function parseNumberDef(def, refs) {
|
|
|
457376
457489
|
return res;
|
|
457377
457490
|
}
|
|
457378
457491
|
|
|
457379
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457492
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
457493
|
+
function decideAdditionalProperties(def, refs) {
|
|
457494
|
+
if (refs.removeAdditionalStrategy === "strict") {
|
|
457495
|
+
return def.catchall._def.typeName === "ZodNever" ? def.unknownKeys !== "strict" : parseDef(def.catchall._def, {
|
|
457496
|
+
...refs,
|
|
457497
|
+
currentPath: [...refs.currentPath, "additionalProperties"]
|
|
457498
|
+
}) ?? true;
|
|
457499
|
+
} else {
|
|
457500
|
+
return def.catchall._def.typeName === "ZodNever" ? def.unknownKeys === "passthrough" : parseDef(def.catchall._def, {
|
|
457501
|
+
...refs,
|
|
457502
|
+
currentPath: [...refs.currentPath, "additionalProperties"]
|
|
457503
|
+
}) ?? true;
|
|
457504
|
+
}
|
|
457505
|
+
}
|
|
457380
457506
|
function parseObjectDef(def, refs) {
|
|
457381
457507
|
const result = {
|
|
457382
457508
|
type: "object",
|
|
@@ -457395,17 +457521,14 @@ function parseObjectDef(def, refs) {
|
|
|
457395
457521
|
required: propDef.isOptional() ? acc.required : [...acc.required, propName]
|
|
457396
457522
|
};
|
|
457397
457523
|
}, { properties: {}, required: [] }),
|
|
457398
|
-
additionalProperties:
|
|
457399
|
-
...refs,
|
|
457400
|
-
currentPath: [...refs.currentPath, "additionalProperties"]
|
|
457401
|
-
}) ?? true
|
|
457524
|
+
additionalProperties: decideAdditionalProperties(def, refs)
|
|
457402
457525
|
};
|
|
457403
457526
|
if (!result.required.length)
|
|
457404
457527
|
delete result.required;
|
|
457405
457528
|
return result;
|
|
457406
457529
|
}
|
|
457407
457530
|
|
|
457408
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457531
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
457409
457532
|
var parseOptionalDef = (def, refs) => {
|
|
457410
457533
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
457411
457534
|
return parseDef(def.innerType._def, refs);
|
|
@@ -457424,7 +457547,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
457424
457547
|
} : {};
|
|
457425
457548
|
};
|
|
457426
457549
|
|
|
457427
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457550
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
457428
457551
|
var parsePipelineDef = (def, refs) => {
|
|
457429
457552
|
if (refs.pipeStrategy === "input") {
|
|
457430
457553
|
return parseDef(def.in._def, refs);
|
|
@@ -457444,12 +457567,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
457444
457567
|
};
|
|
457445
457568
|
};
|
|
457446
457569
|
|
|
457447
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457570
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
457448
457571
|
function parsePromiseDef(def, refs) {
|
|
457449
457572
|
return parseDef(def.type._def, refs);
|
|
457450
457573
|
}
|
|
457451
457574
|
|
|
457452
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457575
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
457453
457576
|
function parseSetDef(def, refs) {
|
|
457454
457577
|
const items = parseDef(def.valueType._def, {
|
|
457455
457578
|
...refs,
|
|
@@ -457469,7 +457592,7 @@ function parseSetDef(def, refs) {
|
|
|
457469
457592
|
return schema;
|
|
457470
457593
|
}
|
|
457471
457594
|
|
|
457472
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457595
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
457473
457596
|
function parseTupleDef(def, refs) {
|
|
457474
457597
|
if (def.rest) {
|
|
457475
457598
|
return {
|
|
@@ -457497,26 +457620,32 @@ function parseTupleDef(def, refs) {
|
|
|
457497
457620
|
}
|
|
457498
457621
|
}
|
|
457499
457622
|
|
|
457500
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457623
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
457501
457624
|
function parseUndefinedDef() {
|
|
457502
457625
|
return {
|
|
457503
457626
|
not: {}
|
|
457504
457627
|
};
|
|
457505
457628
|
}
|
|
457506
457629
|
|
|
457507
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457630
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
457508
457631
|
function parseUnknownDef() {
|
|
457509
457632
|
return {};
|
|
457510
457633
|
}
|
|
457511
457634
|
|
|
457512
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457635
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
457513
457636
|
var parseReadonlyDef = (def, refs) => {
|
|
457514
457637
|
return parseDef(def.innerType._def, refs);
|
|
457515
457638
|
};
|
|
457516
457639
|
|
|
457517
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457640
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
457518
457641
|
function parseDef(def, refs, forceResolution = false) {
|
|
457519
457642
|
const seenItem = refs.seen.get(def);
|
|
457643
|
+
if (refs.override) {
|
|
457644
|
+
const overrideResult = refs.override?.(def, refs, seenItem, forceResolution);
|
|
457645
|
+
if (overrideResult !== ignoreOverride) {
|
|
457646
|
+
return overrideResult;
|
|
457647
|
+
}
|
|
457648
|
+
}
|
|
457520
457649
|
if (seenItem && !forceResolution) {
|
|
457521
457650
|
const seenSchema = get$ref(seenItem, refs);
|
|
457522
457651
|
if (seenSchema !== void 0) {
|
|
@@ -457640,7 +457769,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
457640
457769
|
return jsonSchema;
|
|
457641
457770
|
};
|
|
457642
457771
|
|
|
457643
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457772
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
457644
457773
|
var getRefs = (options) => {
|
|
457645
457774
|
const _options = getDefaultOptions(options);
|
|
457646
457775
|
const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -457660,7 +457789,7 @@ var getRefs = (options) => {
|
|
|
457660
457789
|
};
|
|
457661
457790
|
};
|
|
457662
457791
|
|
|
457663
|
-
// node_modules/.pnpm/zod-to-json-schema@3.22.
|
|
457792
|
+
// node_modules/.pnpm/zod-to-json-schema@3.22.5_zod@3.22.4/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
457664
457793
|
var zodToJsonSchema = (schema, options) => {
|
|
457665
457794
|
const refs = getRefs(options);
|
|
457666
457795
|
const definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|