Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only latest version shows in versions array #71

Open
digitalsadhu opened this issue Dec 10, 2019 · 2 comments
Open

Only latest version shows in versions array #71

digitalsadhu opened this issue Dec 10, 2019 · 2 comments

Comments

@digitalsadhu
Copy link
Member

digitalsadhu commented Dec 10, 2019

When I visit http://localhost:4001/map/my-map-test, only the latest version shows up in the array.

{
  "versions": [
    [
      1,
      {
        "version": "1.0.2",
        "integrity": "sha512-hTa+HaZLSjhw4kpAs4ojrXB0NRXQ4JG7LnanLWfB8GizW/MUpu8n5raaUNZ6dUWme9aZCy+Cis9ymYIjWdcsJQ=="
      }
    ]
  ],
  "name": "my-map-test",
  "org": "finn"
}

Visiting http://local.finn.no:4001/finn/map/my-map-test/1.0.0 and http://local.finn.no:4001/finn/map/my-map-test/1.0.1 and http://local.finn.no:4001/finn/map/my-map-test/1.0.2 all work, however.

The same applies for pkg endpoints

@trygve-lie
Copy link
Contributor

trygve-lie commented Dec 12, 2019

Yeah. It lists only the latest version of a major. The idea was to keep this small and fast. Do we have a use case for getting all versions as is?

@digitalsadhu
Copy link
Member Author

Ah ok, intended then. My only use case was being able to list all versions in a npm show style command at some point. Theres currently no way to know what's been published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants