@bpmn-io/form-js-playground 1.21.1 → 1.21.2

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.
@@ -61610,11 +61610,23 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61610
61610
  errors.push('Field is required.');
61611
61611
  }
61612
61612
  }
61613
- if ('min' in validation && (value || value === 0) && value < validation.min) {
61614
- errors.push(`Field must have minimum value of ${validation.min}.`);
61613
+ if ('min' in validation && (value || value === 0)) {
61614
+ try {
61615
+ if (Big$1(value).lt(Big$1(validation.min))) {
61616
+ errors.push(`Field must have minimum value of ${validation.min}.`);
61617
+ }
61618
+ } catch {
61619
+ errors.push('Min validation value is not a valid number.');
61620
+ }
61615
61621
  }
61616
- if ('max' in validation && (value || value === 0) && value > validation.max) {
61617
- errors.push(`Field must have maximum value of ${validation.max}.`);
61622
+ if ('max' in validation && (value || value === 0)) {
61623
+ try {
61624
+ if (Big$1(value).gt(Big$1(validation.max))) {
61625
+ errors.push(`Field must have maximum value of ${validation.max}.`);
61626
+ }
61627
+ } catch {
61628
+ errors.push('Max validation value is not a valid number.');
61629
+ }
61618
61630
  }
61619
61631
  if ('minLength' in validation && value && value.trim().length < validation.minLength) {
61620
61632
  errors.push(`Field must have minimum length of ${validation.minLength}.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-playground",
3
- "version": "1.21.1",
3
+ "version": "1.21.2",
4
4
  "description": "A form-js playground",
5
5
  "files": [
6
6
  "dist"
@@ -45,8 +45,8 @@
45
45
  "url": "https://github.com/bpmn-io"
46
46
  },
47
47
  "dependencies": {
48
- "@bpmn-io/form-js-editor": "1.21.1",
49
- "@bpmn-io/form-js-viewer": "1.21.1",
48
+ "@bpmn-io/form-js-editor": "1.21.2",
49
+ "@bpmn-io/form-js-viewer": "1.21.2",
50
50
  "@codemirror/autocomplete": "^6.20.0",
51
51
  "@codemirror/commands": "^6.10.1",
52
52
  "@codemirror/lang-json": "^6.0.2",
@@ -71,5 +71,5 @@
71
71
  "rollup-plugin-css-only": "^4.5.5",
72
72
  "style-loader": "^4.0.0"
73
73
  },
74
- "gitHead": "b36907be7a2b3d872369b1c44d5a8b059a5d4c5d"
74
+ "gitHead": "c0cc5188b11954fe78aa612805d7763a5efe2120"
75
75
  }