You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New logic is needed to use the last part for the dependency name, or the last two parts, but exclude GitHub, even though it won't always be there
Sample
it("returns a static badge for a Go package",()=>{constimageTarget="https://img.shields.io/badge/dependency-githubv4-blue";constlinkTarget="https://pkg.go.dev/github.com/shurcooL/githubv4";expect(dependency("githubv4",REGISTRY.Go,{})).toBe(`[![dependency - githubv4](${imageTarget})](${linkTarget})`);});
e.g.
https://pkg.go.dev/github.com/shurcooL/githubv4
https://pkg.go.dev/google.golang.org/api/transport/http
https://pkg.go.dev/net/http/httputil
https://pkg.go.dev/golang.org/x/oauth2
The text was updated successfully, but these errors were encountered: