bank20baht-validator 0.3.0 → 0.3.1
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.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ const FIELD_TYPES = new Set([
|
|
|
39
39
|
'text',
|
|
40
40
|
'textarea',
|
|
41
41
|
'number',
|
|
42
|
+
'currency',
|
|
42
43
|
'email',
|
|
43
44
|
'password',
|
|
44
45
|
'dropdown',
|
|
@@ -106,6 +107,7 @@ function typeIssue(field, value) {
|
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
case 'number':
|
|
110
|
+
case 'currency':
|
|
109
111
|
return typeof value === 'number' && Number.isFinite(value) ? null : t('pattern');
|
|
110
112
|
case 'checkbox':
|
|
111
113
|
case 'toggle':
|
package/package.json
CHANGED