pub fn primary_version(&self) -> Option<String> {
        let Locator { reference, .. } = Locator::from_patch_reference(&self.range)?;
        // This is always owned due to needing to replace '%3A' with ':' so
        // we extract the owned string.
        Some(reference.into_owned())
    }
If the descriptor is a patch returns the version that the patch targets
crates/turborepo-lockfiles/src/berry/identifiers.rs