Socket
Socket
Sign inDemoInstall

async-validator

Package Overview
Dependencies
Maintainers
2
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 4.2.3 to 4.2.4

9

dist-node/index.js

@@ -1253,5 +1253,8 @@ 'use strict';

setTimeout(function () {
throw error;
}, 0);
if (!options.suppressValidatorError) {
setTimeout(function () {
throw error;
}, 0);
}
cb(error.message);

@@ -1258,0 +1261,0 @@ }

export declare type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email' | 'pattern' | 'any';
export interface ValidateOption {
suppressWarning?: boolean;
suppressValidatorError?: boolean;
first?: boolean;

@@ -5,0 +6,0 @@ firstFields?: boolean | string[];

@@ -1249,5 +1249,8 @@ function _extends() {

setTimeout(function () {
throw error;
}, 0);
if (!options.suppressValidatorError) {
setTimeout(function () {
throw error;
}, 0);
}
cb(error.message);

@@ -1254,0 +1257,0 @@ }

{
"name": "async-validator",
"description": "validate form asynchronous",
"version": "4.2.3",
"version": "4.2.4",
"license": "MIT",

@@ -37,3 +37,3 @@ "files": [

"lint-staged": "^7.2.0",
"np": "^5.0.3",
"np": "7.x",
"pika-plugin-build-web-babel": "^0.10.0",

@@ -40,0 +40,0 @@ "pika-plugin-ts-types": "0.1.x",

@@ -12,4 +12,4 @@ # async-validator

[npm-url]: https://npmjs.org/package/async-validator
[travis-image]: https://img.shields.io/travis/yiminghe/async-validator.svg?style=flat-square
[travis-url]: https://travis-ci.com/yiminghe/async-validator
[travis-image]:https://app.travis-ci.com/yiminghe/async-validator.svg?branch=master
[travis-url]: https://app.travis-ci.com/github/yiminghe/async-validator
[coveralls-image]: https://img.shields.io/coveralls/yiminghe/async-validator.svg?style=flat-square

@@ -16,0 +16,0 @@ [coveralls-url]: https://coveralls.io/r/yiminghe/async-validator?branch=master

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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