Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formily/validator

Package Overview
Dependencies
Maintainers
1
Versions
243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formily/validator - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

4

lib/message.js

@@ -40,4 +40,4 @@ "use strict";

var message = getIn(LOCALE.messages, getMatchLang(LOCALE.lang) + "." + path);
if (!message && console && console.error) {
console.error("field is not valid,but not found " + path + " error message. Please set the language pack first through setValidationLocale");
if (!message) {
shared_1.log.error("field is not valid,but not found " + path + " error message. Please set the language pack first through setValidationLocale");
}

@@ -44,0 +44,0 @@ return message || 'Field is invalid';

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

error_1 = _a.sent();
console.error(error_1);
shared_1.log.error(error_1);
return [2, {

@@ -282,0 +282,0 @@ errors: errors,

{
"name": "@formily/validator",
"version": "1.0.5",
"version": "1.0.6",
"license": "MIT",

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

"dependencies": {
"@formily/shared": "^1.0.5"
"@formily/shared": "^1.0.6"
},

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

},
"gitHead": "e442ec065eecb7983498462f32df24138078647a"
"gitHead": "e1f178bddef45d6387e35449389d9ed9615441db"
}

@@ -5,3 +5,4 @@ import {

globalThisPolyfill,
merge as deepmerge
merge as deepmerge,
log
} from '@formily/shared'

@@ -59,4 +60,4 @@ import locales from './locale'

const message = getIn(LOCALE.messages, `${getMatchLang(LOCALE.lang)}.${path}`)
if (!message && console && console.error) {
console.error(
if (!message) {
log.error(
`field is not valid,but not found ${path} error message. Please set the language pack first through setValidationLocale`

@@ -63,0 +64,0 @@ )

@@ -23,2 +23,3 @@ import {

each,
log,
reduce,

@@ -212,3 +213,3 @@ FormPath,

} catch (error) {
console.error(error)
log.error(error)
return {

@@ -215,0 +216,0 @@ errors,

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