Skip to content

Commit 06c7429

Browse files
committed
Include download counts
1 parent 230a844 commit 06c7429

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/packages/router.gleam

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ pub fn package_to_json(
107107
#("repository", json.nullable(package.repository_url, json.string)),
108108
#("updated-at", json_timestamp(package.updated_in_hex_at)),
109109
#("owners", json.array(package.owners, json.string)),
110+
#("total-downloads", json.int(package.downloads_all)),
111+
#("recent-downloads", json.int(package.downloads_recent)),
110112
]
111113

112114
let fields = case releases {

0 commit comments

Comments
 (0)