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

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.5.0 to 1.5.1

4

lib/validator/boolean.js

@@ -9,2 +9,4 @@ 'use strict';

var _util = require('../util');
var _rule = require('../rule/');

@@ -28,3 +30,3 @@

if (validate) {
if (value === undefined && !rule.required) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();

@@ -31,0 +33,0 @@ }

@@ -13,2 +13,4 @@ 'use strict';

var _util = require('../util');
var ENUM = 'enum';

@@ -30,3 +32,3 @@

if (validate) {
if (value === undefined && !rule.required) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();

@@ -33,0 +35,0 @@ }

@@ -13,2 +13,4 @@ 'use strict';

var _util = require('../util');
/**

@@ -28,3 +30,3 @@ * Validates a number is a floating point number.

if (validate) {
if (value === undefined && !rule.required) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();

@@ -31,0 +33,0 @@ }

@@ -13,2 +13,4 @@ 'use strict';

var _util = require('../util');
/**

@@ -28,3 +30,3 @@ * Validates a number is an integer.

if (validate) {
if (value === undefined && !rule.required) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();

@@ -31,0 +33,0 @@ }

@@ -13,2 +13,4 @@ 'use strict';

var _util = require('../util');
/**

@@ -28,3 +30,3 @@ * Validates a function.

if (validate) {
if (value === undefined && !rule.required) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();

@@ -31,0 +33,0 @@ }

@@ -13,2 +13,4 @@ 'use strict';

var _util = require('../util');
/**

@@ -28,3 +30,3 @@ * Validates a number.

if (validate) {
if (value === undefined && !rule.required) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();

@@ -31,0 +33,0 @@ }

@@ -13,2 +13,4 @@ 'use strict';

var _util = require('../util');
/**

@@ -28,3 +30,3 @@ * Validates an object.

if (validate) {
if (value === undefined && !rule.required) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();

@@ -31,0 +33,0 @@ }

{
"name": "async-validator",
"version": "1.5.0",
"version": "1.5.1",
"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