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.0.2 to 4.0.3

2

dist-node/index.js

@@ -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

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