Socket
Socket
Sign inDemoInstall

async-validator

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-validator - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

4

lib/rule/type.js
'use strict';
var util = require('../util');
var required = require('./required');
var pattern = {

@@ -65,5 +66,4 @@ email: /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/,

var type = function type(rule, value, source, errors, options) {
// if value is required and value is undefined
// no need to add this error message
if (rule.required && value === undefined) {
required(rule, value, source, errors, options);
return;

@@ -70,0 +70,0 @@ }

{
"name": "async-validator",
"version": "1.1.5",
"version": "1.1.6",
"description": "validate form asynchronous",

@@ -5,0 +5,0 @@ "keywords": [

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