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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bank20baht-validator",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Runtime validation for bahtui form/workflow JSON — the exact engine rules the client runs, on the server.",
6
6
  "license": "MIT",