json-schema-to-zod
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -7,3 +7,3 @@ #!/usr/bin/env node | ||
const path_1 = require("path"); | ||
const args_js_1 = require("./args.js"); | ||
const cliTools_js_1 = require("./utils/cliTools.js"); | ||
const pick_js_1 = require("./utils/pick.js"); | ||
@@ -40,5 +40,5 @@ const params = { | ||
async function main() { | ||
const args = (0, args_js_1.parseArgs)(params, process.argv, true); | ||
const input = args.input || (await (0, args_js_1.readPipe)()); | ||
const jsonSchema = (0, args_js_1.parseOrReadJSON)(input); | ||
const args = (0, cliTools_js_1.parseArgs)(params, process.argv, true); | ||
const input = args.input || (await (0, cliTools_js_1.readPipe)()); | ||
const jsonSchema = (0, cliTools_js_1.parseOrReadJSON)(input); | ||
const zodSchema = (0, jsonSchemaToZod_js_1.jsonSchemaToZod)(jsonSchema, (0, pick_js_1.pick)(args, "name", "depth", "module")); | ||
@@ -45,0 +45,0 @@ if (args.output) { |
@@ -5,3 +5,3 @@ #!/usr/bin/env node | ||
import { dirname } from "path"; | ||
import { parseArgs, parseOrReadJSON, readPipe } from "./args.js"; | ||
import { parseArgs, parseOrReadJSON, readPipe } from "./utils/cliTools.js"; | ||
import { pick } from "./utils/pick.js"; | ||
@@ -8,0 +8,0 @@ const params = { |
{ | ||
"name": "json-schema-to-zod", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Converts JSON schema objects or files into Zod schemas", | ||
@@ -5,0 +5,0 @@ "types": "dist/types/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95050