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.6 to 1.0.0-rc.0

2

lib/rules.js

@@ -44,3 +44,3 @@ "use strict";

for (var i = 0; i < value.length; i++) {
if (!isValidateEmpty(value[i]))
if (value[i] !== undefined)
return false;

@@ -47,0 +47,0 @@ }

@@ -37,3 +37,3 @@ import { FormPathPattern } from '@uform/shared';

export declare type ValidatePatternRules = InternalFormats | CustomValidator | ValidateDescription | ValidateArrayRules;
export declare type CustomValidator = (value: any, rescription?: ValidateDescription) => ValidateResponse;
export declare type CustomValidator = (value: any, description?: ValidateDescription) => ValidateResponse;
export declare type SyncValidateResponse = null | string | boolean | {

@@ -40,0 +40,0 @@ type?: 'error' | 'warning';

{
"name": "@uform/validator",
"version": "1.0.0-beta.6",
"version": "1.0.0-rc.0",
"license": "MIT",

@@ -28,3 +28,3 @@ "main": "lib",

"dependencies": {
"@uform/shared": "^1.0.0-beta.6"
"@uform/shared": "^1.0.0-rc.0"
},

@@ -34,3 +34,3 @@ "publishConfig": {

},
"gitHead": "3426348f0fc6f0b3cc32635b393487243d6a3bf0"
"gitHead": "d66cee79ee61c227f5beaac446b83c37b143ee42"
}

@@ -6,5 +6,5 @@ import { getMessage } from './message'

isStr,
isArr,
isFn,
toArr,
isArr,
isBool

@@ -16,3 +16,3 @@ } from '@uform/shared'

for (let i = 0; i < value.length; i++) {
if (!isValidateEmpty(value[i])) return false
if (value[i] !== undefined) return false
}

@@ -19,0 +19,0 @@ return true

@@ -70,3 +70,3 @@ import { FormPathPattern } from '@uform/shared'

value: any,
rescription?: ValidateDescription
description?: ValidateDescription
) => ValidateResponse

@@ -73,0 +73,0 @@

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