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.3 to 1.1.4

4

lib/index.js

@@ -237,6 +237,6 @@ 'use strict';

//console.dir(rule);
if (typeof rule.validator !== 'function' && (!rule.type || !validators.hasOwnProperty(rule.type))) {
if (typeof rule.validator !== 'function' && (rule.type && !validators.hasOwnProperty(rule.type))) {
throw new Error(util.format('Unknown rule type %s', rule.type));
}
return rule.type;
return rule.type || 'string';
};

@@ -243,0 +243,0 @@

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