NPM Package Registry search API endpoint
WIP for #20098, implemented to match what's described here in the NPM registry API.
Currently have only implemented the bare minimum to work with the Unity Package Manager.
I've never written Go code before, and this is my first time contributing so please let me know if anything can be improved!
There's a couple of things left that I'm not sure how to implement:
- Verdaccio includes in the
packagesection:
"time": {
"modified": "2022-03-01T22:58:17.890Z"
},
This isn't included in the NPM specs that I linked, but Unity seems to read it to display publish time.
- The name of the package in Unity appears as "com.test.packagename", but with Verdaccio it appeared as "Package Name". It looks like Verdaccio is returning the
"displayName":field of the Unity-specific package.json. Would it be right to just add a DisplayName field to the package metadata structs, or should there be a more general way to show non-standard fields in package.json files?
Could you give me write access for your Gitea fork? I added some changes for this PR.
Could you give me write access for your Gitea fork? I added some changes for this PR.
I do have Allow edits by maintainers checked, is there something else I need to do?
Could you please merge with the current main branch?
Thanks, added PR https://github.com/jackv24/gitea/pull/1
@KN4CK3R , I think it looks good ~~
@jackv24 @KN4CK3R the code Registry: pd.FullWebLink() looks strange. Could you take a look at #29531 ?
Thank you.