New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@uform/validator

Package Overview
Dependencies
Maintainers
4
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uform/validator - npm Package Compare versions

Comparing version 1.0.0-beta.5 to 1.0.0-beta.6

10

lib/rules.js

@@ -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;

7

package.json
{
"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

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