gitea icon indicating copy to clipboard operation
gitea copied to clipboard

NPM Package Registry search API endpoint

Open jackv24 opened this issue 3 years ago • 5 comments

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!

jackv24 avatar Jul 07 '22 08:07 jackv24

There's a couple of things left that I'm not sure how to implement:

  • Verdaccio includes in the package section:
"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?

jackv24 avatar Jul 08 '22 07:07 jackv24

Could you give me write access for your Gitea fork? I added some changes for this PR.

KN4CK3R avatar Sep 16 '22 14:09 KN4CK3R

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?

jackv24 avatar Sep 16 '22 21:09 jackv24

Could you please merge with the current main branch?

KN4CK3R avatar Sep 18 '22 10:09 KN4CK3R

Thanks, added PR https://github.com/jackv24/gitea/pull/1

KN4CK3R avatar Sep 18 '22 11:09 KN4CK3R

@KN4CK3R , I think it looks good ~~

wxiaoguang avatar Sep 24 '22 05:09 wxiaoguang

@jackv24 @KN4CK3R the code Registry: pd.FullWebLink() looks strange. Could you take a look at #29531 ?

Thank you.

wxiaoguang avatar Mar 02 '24 03:03 wxiaoguang