@uform/validator
Advanced tools
Comparing version 1.0.0-beta.5 to 1.0.0-beta.6
@@ -42,8 +42,6 @@ "use strict"; | ||
var isValidateEmpty = function (value) { | ||
if (typeof value === 'object') { | ||
for (var key in value) { | ||
if (value.hasOwnProperty(key)) { | ||
if (!isValidateEmpty(value[key])) | ||
return false; | ||
} | ||
if (shared_1.isArr(value)) { | ||
for (var i = 0; i < value.length; i++) { | ||
if (!isValidateEmpty(value[i])) | ||
return false; | ||
} | ||
@@ -50,0 +48,0 @@ return true; |
{ | ||
"name": "@uform/validator", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"license": "MIT", | ||
@@ -28,4 +28,3 @@ "main": "lib", | ||
"dependencies": { | ||
"@uform/shared": "^1.0.0-beta.5", | ||
"@uform/types": "^0.4.0" | ||
"@uform/shared": "^1.0.0-beta.6" | ||
}, | ||
@@ -35,3 +34,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ff1a862eae66c842d639b8c263f541df7d3586c3" | ||
"gitHead": "3426348f0fc6f0b3cc32635b393487243d6a3bf0" | ||
} |
@@ -8,2 +8,3 @@ import { getMessage } from './message' | ||
toArr, | ||
isArr, | ||
isBool | ||
@@ -13,7 +14,5 @@ } from '@uform/shared' | ||
const isValidateEmpty = (value: any) => { | ||
if (typeof value === 'object') { | ||
for (let key in value) { | ||
if (value.hasOwnProperty(key)) { | ||
if (!isValidateEmpty(value[key])) return false | ||
} | ||
if (isArr(value)) { | ||
for (let i = 0; i < value.length; i++) { | ||
if (!isValidateEmpty(value[i])) return false | ||
} | ||
@@ -20,0 +19,0 @@ return true |
2
57598
1457
- Removed@uform/types@^0.4.0
- Removed@uform/types@0.4.4(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedtslib@1.14.1(transitive)
Updated@uform/shared@^1.0.0-beta.6