-
-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Currently the lookup API endpoint allows specifying a hex-encoded sha256 hash to be looked up:
But looking at some of the other API endpoints, in their responses they provide base64 encoded sha256 hashes, eg.
- https://www.jsdelivr.com/docs/data.jsdelivr.com#get-/v1/packages/npm/-package-@-version-
-
hash*: string: A base64-encoded sha256 of file contents.
-
While I could obviously write some glue code to convert this; it would be nice if we were able to provide the base64 encoded version directly; with the API either automatically detecting the hash type, or even if we had to specify an extra param to tell it which encoding we're providing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels