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