@vercel/microfrontends 2.2.2 → 2.3.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.
@@ -554,7 +554,7 @@ var validateConfigPaths = (applicationConfigsById) => {
554
554
  );
555
555
  }
556
556
  };
557
- var PATH_DEFAULT_PATTERN = "[^\\/#\\?]+?";
557
+ var PATH_DEFAULT_PATTERNS = ["[^\\/#\\?]+?", "(?:(?!\\.)[^\\/#\\?])+?"];
558
558
  function validatePathExpression(path6) {
559
559
  try {
560
560
  const tokens = (0, import_path_to_regexp2.parse)(path6);
@@ -576,7 +576,7 @@ function validatePathExpression(path6) {
576
576
  if (!token.name) {
577
577
  return `Only named wildcards are allowed: ${path6} (hint: add ":path" to the wildcard)`;
578
578
  }
579
- if (token.pattern !== PATH_DEFAULT_PATTERN && // Allows (a|b|c) and ((?!a|b|c).*) regex
579
+ if (!PATH_DEFAULT_PATTERNS.includes(token.pattern) && // Allows (a|b|c) and ((?!a|b|c).*) regex
580
580
  // Only limited regex is supported for now, due to performance considerations
581
581
  // Allows all letters, numbers, and hyphens. Other characters must be escaped.
582
582
  !/^(?<allowed>[\w-~]+(?:\|[^:|()]+)+)$|^\(\?!(?<disallowed>[\w-~]+(?:\|[^:|()]+)*)\)\.\*$/.test(