async-validator
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -120,3 +120,3 @@ 'use strict'; | ||
warning = function warning(type, errors) { | ||
if (typeof console !== 'undefined' && console.warn) { | ||
if (typeof console !== 'undefined' && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === 'undefined') { | ||
if (errors.every(function (e) { | ||
@@ -123,0 +123,0 @@ return typeof e === 'string'; |
@@ -116,3 +116,3 @@ function _extends() { | ||
warning = function warning(type, errors) { | ||
if (typeof console !== 'undefined' && console.warn) { | ||
if (typeof console !== 'undefined' && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === 'undefined') { | ||
if (errors.every(function (e) { | ||
@@ -119,0 +119,0 @@ return typeof e === 'string'; |
{ | ||
"name": "async-validator", | ||
"description": "validate form asynchronous", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -432,3 +432,3 @@ # async-validator | ||
### How to avoid warning | ||
### How to avoid global warning | ||
@@ -440,2 +440,7 @@ ```js | ||
or | ||
```js | ||
globalThis.ASYNC_VALIDATOR_NO_WARNING = 1; | ||
``` | ||
### How to check if it is `true` | ||
@@ -442,0 +447,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
254530
473