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.10 to 2.0.11

2

dist/cjs/utils/cliTools.js

@@ -65,3 +65,3 @@ "use strict";

jsonOrPath = jsonOrPath.trim();
if ((0, fs_1.statSync)(jsonOrPath, { throwIfNoEntry: false })?.isFile()) {
if (jsonOrPath.length < 255 && (0, fs_1.statSync)(jsonOrPath, { throwIfNoEntry: false })?.isFile()) {
jsonOrPath = (0, fs_1.readFileSync)(jsonOrPath, "utf-8");

@@ -68,0 +68,0 @@ }

@@ -61,3 +61,3 @@ import { statSync, readFileSync } from "fs";

jsonOrPath = jsonOrPath.trim();
if (statSync(jsonOrPath, { throwIfNoEntry: false })?.isFile()) {
if (jsonOrPath.length < 255 && statSync(jsonOrPath, { throwIfNoEntry: false })?.isFile()) {
jsonOrPath = readFileSync(jsonOrPath, "utf-8");

@@ -64,0 +64,0 @@ }

{
"name": "json-schema-to-zod",
"version": "2.0.10",
"version": "2.0.11",
"description": "Converts JSON schema objects or files into Zod schemas",

@@ -59,2 +59,2 @@ "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