@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.
@@ -509,7 +509,7 @@ var validateConfigPaths = (applicationConfigsById) => {
509
509
  );
510
510
  }
511
511
  };
512
- var PATH_DEFAULT_PATTERN = "[^\\/#\\?]+?";
512
+ var PATH_DEFAULT_PATTERNS = ["[^\\/#\\?]+?", "(?:(?!\\.)[^\\/#\\?])+?"];
513
513
  function validatePathExpression(path7) {
514
514
  try {
515
515
  const tokens = parsePathRegexp(path7);
@@ -531,7 +531,7 @@ function validatePathExpression(path7) {
531
531
  if (!token.name) {
532
532
  return `Only named wildcards are allowed: ${path7} (hint: add ":path" to the wildcard)`;
533
533
  }
534
- if (token.pattern !== PATH_DEFAULT_PATTERN && // Allows (a|b|c) and ((?!a|b|c).*) regex
534
+ if (!PATH_DEFAULT_PATTERNS.includes(token.pattern) && // Allows (a|b|c) and ((?!a|b|c).*) regex
535
535
  // Only limited regex is supported for now, due to performance considerations
536
536
  // Allows all letters, numbers, and hyphens. Other characters must be escaped.
537
537
  !/^(?<allowed>[\w-~]+(?:\|[^:|()]+)+)$|^\(\?!(?<disallowed>[\w-~]+(?:\|[^:|()]+)*)\)\.\*$/.test(