{
  "version": 3,
  "sources": ["../../../../src/packages/catalogs.protocol-parser/parseCatalogProtocol.ts"],
  "sourcesContent": ["const CATALOG_PROTOCOL = 'catalog:';\n\n/**\n * Parse a package.json dependency specifier using the catalog: protocol.\n * Returns null if the given specifier does not start with 'catalog:'.\n */\nexport function parseCatalogProtocol(pref: string): string | 'default' | null {\n  if (!pref.startsWith(CATALOG_PROTOCOL)) {\n    return null;\n  }\n\n  const catalogNameRaw = pref.slice(CATALOG_PROTOCOL.length).trim();\n\n  return catalogNameRaw === '' ? 'default' : catalogNameRaw;\n}\n"],
  "mappings": "AAAA,MAAM,mBAAmB;AAMlB,SAAS,qBAAqB,MAAyC;AAC5E,MAAI,CAAC,KAAK,WAAW,gBAAgB,GAAG;AACtC,WAAO;AAAA,EACT;AAEA,QAAM,iBAAiB,KAAK,MAAM,iBAAiB,MAAM,EAAE,KAAK;AAEhE,SAAO,mBAAmB,KAAK,YAAY;AAC7C;",
  "names": []
}
