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

@onetyped/zod

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onetyped/zod - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

12

dist/index.js

@@ -13,2 +13,3 @@ // src/from-schema.ts

nullable,
nullType,
number,

@@ -21,2 +22,3 @@ object,

tuple,
undefinedType,
union,

@@ -38,2 +40,8 @@ unknown

}
case ZodFirstPartyTypeKind.ZodNull: {
return nullType();
}
case ZodFirstPartyTypeKind.ZodUndefined: {
return undefinedType();
}
case ZodFirstPartyTypeKind.ZodUnknown: {

@@ -131,3 +139,3 @@ return unknown();

case "regexp": {
return z2.custom((data) => data instanceof RegExp);
return z2.instanceof(RegExp);
}

@@ -216,3 +224,3 @@ case "bigint": {

case "regexp": {
return createZodMethod("custom", "(data) => data instanceof RegExp");
return createZodMethod("instanceof", "RegExp");
}

@@ -219,0 +227,0 @@ case "bigint": {

2

package.json
{
"name": "@onetyped/zod",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",

@@ -5,0 +5,0 @@ "description": "onetyped Zod integration",

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