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

zod-form-data

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zod-form-data - npm Package Compare versions

Comparing version 1.3.2-beta.0 to 2.0.0

8

dist/index.d.ts

@@ -56,5 +56,9 @@ import { ZodString, ZodNumber, z, ZodArray, ZodTypeAny, ZodEffects, ZodObject } from 'zod';

declare const repeatableOfType: <T extends z.ZodTypeAny>(schema: T) => z.ZodEffects<z.ZodArray<T, "many">, T["_output"][], T["_input"][]>;
type FormDataLikeInput = {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
entries(): IterableIterator<[string, FormDataEntryValue]>;
};
type FormDataType = {
<T extends z.ZodRawShape>(shape: T): ZodEffects<ZodObject<T>>;
<T extends z.ZodTypeAny>(schema: T): ZodEffects<T>;
<T extends z.ZodRawShape>(shape: T): ZodEffects<ZodObject<T>, z.output<ZodObject<T>>, FormDataLikeInput>;
<T extends z.ZodTypeAny>(schema: T): ZodEffects<T, z.output<T>, FormDataLikeInput>;
};

@@ -61,0 +65,0 @@ declare const json: <T extends z.ZodTypeAny>(schema: T) => z.ZodEffects<T, T["_output"], T["_input"]>;

{
"name": "zod-form-data",
"version": "1.3.2-beta.0",
"version": "2.0.0",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "module": "./dist/index.mjs",

@@ -117,5 +117,18 @@ import { setPath } from "set-get";

type FormDataLikeInput = {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
entries(): IterableIterator<[string, FormDataEntryValue]>;
};
type FormDataType = {
<T extends z.ZodRawShape>(shape: T): ZodEffects<ZodObject<T>>;
<T extends z.ZodTypeAny>(schema: T): ZodEffects<T>;
<T extends z.ZodRawShape>(shape: T): ZodEffects<
ZodObject<T>,
z.output<ZodObject<T>>,
FormDataLikeInput
>;
<T extends z.ZodTypeAny>(schema: T): ZodEffects<
T,
z.output<T>,
FormDataLikeInput
>;
};

@@ -122,0 +135,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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