async-validator
Advanced tools
Comparing version 3.5.1 to 3.5.2
@@ -26,3 +26,4 @@ 'use strict'; | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
_setPrototypeOf(subClass, superClass); | ||
} | ||
@@ -52,3 +53,3 @@ | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
@@ -354,3 +355,3 @@ } catch (e) { | ||
if (typeof value === 'object' && typeof target[s] === 'object') { | ||
target[s] = _extends(_extends({}, target[s]), value); | ||
target[s] = _extends({}, target[s], value); | ||
} else { | ||
@@ -1284,3 +1285,3 @@ target[s] = value; | ||
function addFullfield(key, schema) { | ||
return _extends(_extends({}, schema), {}, { | ||
return _extends({}, schema, { | ||
fullField: rule.fullField + "." + key | ||
@@ -1342,3 +1343,3 @@ }); | ||
fieldsSchema = _extends(_extends({}, fieldsSchema), data.rule.fields); | ||
fieldsSchema = _extends({}, fieldsSchema, data.rule.fields); | ||
@@ -1345,0 +1346,0 @@ for (var f in fieldsSchema) { |
@@ -67,3 +67,3 @@ // Type definitions for async-validator 3.0.4 | ||
options: ValidateOption, | ||
) => void; | ||
) => boolean | Error | Error[]; | ||
} | ||
@@ -70,0 +70,0 @@ |
@@ -22,3 +22,4 @@ function _extends() { | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
_setPrototypeOf(subClass, superClass); | ||
} | ||
@@ -48,3 +49,3 @@ | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
@@ -350,3 +351,3 @@ } catch (e) { | ||
if (typeof value === 'object' && typeof target[s] === 'object') { | ||
target[s] = _extends(_extends({}, target[s]), value); | ||
target[s] = _extends({}, target[s], value); | ||
} else { | ||
@@ -1280,3 +1281,3 @@ target[s] = value; | ||
function addFullfield(key, schema) { | ||
return _extends(_extends({}, schema), {}, { | ||
return _extends({}, schema, { | ||
fullField: rule.fullField + "." + key | ||
@@ -1338,3 +1339,3 @@ }); | ||
fieldsSchema = _extends(_extends({}, fieldsSchema), data.rule.fields); | ||
fieldsSchema = _extends({}, fieldsSchema, data.rule.fields); | ||
@@ -1341,0 +1342,0 @@ for (var f in fieldsSchema) { |
{ | ||
"name": "async-validator", | ||
"description": "validate form asynchronous", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
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
254338