feat(registry): return package dependencies

This commit is contained in:
daimond113 2024-10-14 13:21:09 +02:00
parent b3f0a3cbfb
commit d2e04f49d0
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -162,6 +162,7 @@ pub async fn get_package_version(
let mut value = serde_json::to_value(response)?; let mut value = serde_json::to_value(response)?;
value["docs"] = serde_json::to_value(entry.docs.clone())?; value["docs"] = serde_json::to_value(entry.docs.clone())?;
value["dependencies"] = serde_json::to_value(entry.dependencies.clone())?;
Ok(HttpResponse::Ok().json(value)) Ok(HttpResponse::Ok().json(value))
} }