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