@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.
@@ -541,7 +541,7 @@ var validateConfigPaths = (applicationConfigsById) => {
541
541
  );
542
542
  }
543
543
  };
544
- var PATH_DEFAULT_PATTERN = "[^\\/#\\?]+?";
544
+ var PATH_DEFAULT_PATTERNS = ["[^\\/#\\?]+?", "(?:(?!\\.)[^\\/#\\?])+?"];
545
545
  function validatePathExpression(path6) {
546
546
  try {
547
547
  const tokens = (0, import_path_to_regexp2.parse)(path6);
@@ -563,7 +563,7 @@ function validatePathExpression(path6) {
563
563
  if (!token.name) {
564
564
  return `Only named wildcards are allowed: ${path6} (hint: add ":path" to the wildcard)`;
565
565
  }
566
- if (token.pattern !== PATH_DEFAULT_PATTERN && // Allows (a|b|c) and ((?!a|b|c).*) regex
566
+ if (!PATH_DEFAULT_PATTERNS.includes(token.pattern) && // Allows (a|b|c) and ((?!a|b|c).*) regex
567
567
  // Only limited regex is supported for now, due to performance considerations
568
568
  // Allows all letters, numbers, and hyphens. Other characters must be escaped.
569
569
  !/^(?<allowed>[\w-~]+(?:\|[^:|()]+)+)$|^\(\?!(?<disallowed>[\w-~]+(?:\|[^:|()]+)*)\)\.\*$/.test(