@hookstate/validation
Advanced tools
Comparing version 0.10.3 to 0.10.4
@@ -148,12 +148,12 @@ var ValidationSeverity; | ||
get validShallow() { | ||
return getErrors(l, 1).length === 0; | ||
return getErrors(l, 1, undefined, true).length === 0; | ||
}, | ||
get valid() { | ||
return getErrors(l, Number.MAX_SAFE_INTEGER).length === 0; | ||
return getErrors(l, Number.MAX_SAFE_INTEGER, undefined, true).length === 0; | ||
}, | ||
get invalidShallow() { | ||
return getErrors(l, 1).length !== 0; | ||
return getErrors(l, 1, undefined, true).length !== 0; | ||
}, | ||
get invalid() { | ||
return getErrors(l, Number.MAX_SAFE_INTEGER).length !== 0; | ||
return getErrors(l, Number.MAX_SAFE_INTEGER, undefined, true).length !== 0; | ||
}, | ||
@@ -168,3 +168,3 @@ errors: function (filter, depth, first) { | ||
} | ||
return r; | ||
return r[0]; | ||
}, | ||
@@ -171,0 +171,0 @@ }); } |
@@ -151,12 +151,12 @@ 'use strict'; | ||
get validShallow() { | ||
return getErrors(l, 1).length === 0; | ||
return getErrors(l, 1, undefined, true).length === 0; | ||
}, | ||
get valid() { | ||
return getErrors(l, Number.MAX_SAFE_INTEGER).length === 0; | ||
return getErrors(l, Number.MAX_SAFE_INTEGER, undefined, true).length === 0; | ||
}, | ||
get invalidShallow() { | ||
return getErrors(l, 1).length !== 0; | ||
return getErrors(l, 1, undefined, true).length !== 0; | ||
}, | ||
get invalid() { | ||
return getErrors(l, Number.MAX_SAFE_INTEGER).length !== 0; | ||
return getErrors(l, Number.MAX_SAFE_INTEGER, undefined, true).length !== 0; | ||
}, | ||
@@ -171,3 +171,3 @@ errors: function (filter, depth, first) { | ||
} | ||
return r; | ||
return r[0]; | ||
}, | ||
@@ -174,0 +174,0 @@ }); } |
{ | ||
"name": "@hookstate/validation", | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"description": "Plugin for @hookstate/core to enable validation of data state.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52209