@accordproject/concerto-cto 5.1.0 → 5.2.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.
@@ -2,8 +2,8 @@ import {
2
2
  createDefaultFileDownloader,
3
3
  external_default,
4
4
  resolveExternal
5
- } from "./chunk-5Z2F6LHO.mjs";
6
- import "./chunk-TQPDAJQB.mjs";
5
+ } from "./chunk-PJXM6CEI.mjs";
6
+ import "./chunk-QKEYAQ6S.mjs";
7
7
  import "./chunk-E5UYTZNO.mjs";
8
8
  import "./chunk-MSZDQHW6.mjs";
9
9
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  external_default
3
- } from "./chunk-5Z2F6LHO.mjs";
3
+ } from "./chunk-PJXM6CEI.mjs";
4
4
  import {
5
5
  parserMain_default
6
- } from "./chunk-HZQXVGUH.mjs";
7
- import "./chunk-TQPDAJQB.mjs";
6
+ } from "./chunk-NDRBPICP.mjs";
7
+ import "./chunk-QKEYAQ6S.mjs";
8
8
  import {
9
9
  parseexception_default
10
10
  } from "./chunk-OMK4IF4X.mjs";
@@ -2,8 +2,8 @@ import {
2
2
  parse,
3
3
  parseModels,
4
4
  parserMain_default
5
- } from "./chunk-HZQXVGUH.mjs";
6
- import "./chunk-TQPDAJQB.mjs";
5
+ } from "./chunk-NDRBPICP.mjs";
6
+ import "./chunk-QKEYAQ6S.mjs";
7
7
  import "./chunk-OMK4IF4X.mjs";
8
8
  import "./chunk-E5UYTZNO.mjs";
9
9
  import "./chunk-MSZDQHW6.mjs";
package/dist/parser.js CHANGED
@@ -908,6 +908,9 @@ function peg$parse(input, options) {
908
908
  return regex;
909
909
  };
910
910
  var peg$f83 = function (minLength, maxLength) {
911
+ if (!minLength && !maxLength) {
912
+ error('At least one length bound must be specified');
913
+ }
911
914
  const result = {
912
915
  $class: `${metamodelNamespace}.StringLengthValidator`
913
916
  };