@formily/validator
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1512
59445
Updated@formily/shared@^1.0.6