From 7217ee5f42c5f3fa1bdd415271d109c159e4dadc Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Sat, 9 Aug 2025 13:46:00 +0300 Subject: [PATCH] fix(RegistryClient): convert hash to version map to array The hash can be obtained from the version files. --- src/registry/RegistryClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/registry/RegistryClient.ts b/src/registry/RegistryClient.ts index 8705118..3c5b081 100644 --- a/src/registry/RegistryClient.ts +++ b/src/registry/RegistryClient.ts @@ -231,7 +231,8 @@ export class RegistryClient extends HTTPClient { hashes, algorithm: "sha512", }), - }).then(res => res.json()); + }).then(res => res.json()) + .then((json: Record) => Object.values(json)); } /**