Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.4.0 to 1.4.1

6

lib/index.js

@@ -59,3 +59,3 @@ 'use strict';

},
validate: function validate(source, o, oc) {
validate: function validate(source_, o, oc) {
var _this = this;

@@ -65,2 +65,3 @@

var source = source_;
var options = o;

@@ -117,2 +118,5 @@ if (!this.rules) {

if (typeof rule.transform === 'function') {
if (source === source_) {
source = _extends({}, source);
}
value = source[z] = rule.transform(value);

@@ -119,0 +123,0 @@ }

2

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

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

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

* `enum`: Value must exist in the `enum`.
* `date`: Value must be valid as determined by `moment().isValid()`.
* `date`: Value must be valid as determined by `Date`
* `url`: Must be of type `url`.

@@ -144,0 +144,0 @@ * `hex`: Must be of type `hex`.

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