@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.
@@ -526,7 +526,7 @@ var validateConfigPaths = (applicationConfigsById) => {
526
526
  );
527
527
  }
528
528
  };
529
- var PATH_DEFAULT_PATTERN = "[^\\/#\\?]+?";
529
+ var PATH_DEFAULT_PATTERNS = ["[^\\/#\\?]+?", "(?:(?!\\.)[^\\/#\\?])+?"];
530
530
  function validatePathExpression(path6) {
531
531
  try {
532
532
  const tokens = parsePathRegexp(path6);
@@ -548,7 +548,7 @@ function validatePathExpression(path6) {
548
548
  if (!token.name) {
549
549
  return `Only named wildcards are allowed: ${path6} (hint: add ":path" to the wildcard)`;
550
550
  }
551
- if (token.pattern !== PATH_DEFAULT_PATTERN && // Allows (a|b|c) and ((?!a|b|c).*) regex
551
+ if (!PATH_DEFAULT_PATTERNS.includes(token.pattern) && // Allows (a|b|c) and ((?!a|b|c).*) regex
552
552
  // Only limited regex is supported for now, due to performance considerations
553
553
  // Allows all letters, numbers, and hyphens. Other characters must be escaped.
554
554
  !/^(?<allowed>[\w-~]+(?:\|[^:|()]+)+)$|^\(\?!(?<disallowed>[\w-~]+(?:\|[^:|()]+)*)\)\.\*$/.test(