async-validator
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -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 @@ } |
{ | ||
"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`. |
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
51153
1090