Skip to content

Commit

Permalink
feat(registry): return package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
daimond113 committed Oct 14, 2024
1 parent b3f0a3c commit d2e04f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions registry/src/endpoints/package_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ pub async fn get_package_version(

let mut value = serde_json::to_value(response)?;
value["docs"] = serde_json::to_value(entry.docs.clone())?;
value["dependencies"] = serde_json::to_value(entry.dependencies.clone())?;

Ok(HttpResponse::Ok().json(value))
}

0 comments on commit d2e04f4

Please sign in to comment.