{"ast":null,"code":"import { parse as parseUrl } from 'url';\nexport const subpathIsPresent = (url, subpath) => {\n  if (typeof url !== 'string' || typeof subpath !== 'string') {\n    return false;\n  }\n\n  const {\n    pathname\n  } = parseUrl(url);\n  return typeof pathname === 'string' && (pathname.length === subpath.length + 1 && pathname === `/${subpath}` || pathname.startsWith(`/${subpath}/`));\n};","map":null,"metadata":{},"sourceType":"module"}