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

form-schema

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

form-schema - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

2

package.json
{
"name": "form-schema",
"version": "1.1.0",
"version": "2.0.0",
"description": "A form validation tool that traverses the data according to the schema and calls the validators.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -12,3 +12,3 @@ export default class FormField {

validate(value, ...rest) {
if (typeof value === 'undefined') {
if (typeof value === 'undefined' || (value === null && typeof value === 'object')) {
return this._isRequired ? {

@@ -15,0 +15,0 @@ isValid: false,

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