Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-schema-to-zod

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-to-zod - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

dist/cjs/utils/cliTools.js

8

dist/cjs/cli.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc