@wix/form-public 0.522.0 → 0.523.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -258,7 +258,7 @@ function deriveError(validation, error, options) {
|
|
|
258
258
|
if (!error) {
|
|
259
259
|
return error;
|
|
260
260
|
}
|
|
261
|
-
return derivePatternError(error) ?? deriveCharacterLengthError(validation, error) ?? deriveItemsCountError(validation, error) ?? deriveNumericValueError(validation, error) ??
|
|
261
|
+
return derivePatternError(error) ?? deriveCharacterLengthError(validation, error) ?? deriveItemsCountError(validation, error) ?? deriveNumericValueError(validation, error) ?? deriveDateTimeFieldError(validation, error, options?.value) ?? deriveDateFieldError(validation, error, options?.value) ?? error;
|
|
262
262
|
}
|
|
263
263
|
function derivePatternError(error) {
|
|
264
264
|
if (!error || error.errorType !== types.ErrorType.PATTERN_ERROR) {
|