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.6 to 1.2.0

lib/validator/date.js

3

lib/rule/type.js

@@ -31,2 +31,5 @@ 'use strict';

},
date: function date(value) {
return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
},
number: function number(value) {

@@ -33,0 +36,0 @@ if (isNaN(value)) {

@@ -17,3 +17,4 @@ 'use strict';

url: require('./type'),
date: require('./date'),
hex: require('./type')
};

2

package.json
{
"name": "async-validator",
"version": "1.1.6",
"version": "1.2.0",
"description": "validate form asynchronous",

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

@@ -9,3 +9,3 @@ # async-validator

- support ie8
- support ``type:url`` ``type:email`` ``type:hex``
- support ``type:url`` ``type:email`` ``type:hex`` ``type:date``
- support nice nested object validation message

@@ -16,3 +16,2 @@

- remove parallel config, defaults to true
- remove ``type:date`` support
- remove .error constructor

@@ -19,0 +18,0 @@

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