Skip to content

[BUG] npm view --json with range giving incorrect results #1640

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

Closed
MylesBorins opened this issue Aug 7, 2020 · 1 comment
Closed

[BUG] npm view --json with range giving incorrect results #1640

MylesBorins opened this issue Aug 7, 2020 · 1 comment
Assignees
Labels
Bug thing that needs fixing Release 7.x work is associated with a specific npm 7 release

Comments

@MylesBorins
Copy link
Contributor

Current Behavior:

$ npm view --json omg-i-pass@^2.0.0
{
  "_id": "[email protected]",
...
}

Only a single result is returned for 2.0.0

Expected Behavior:

$ npm view --json omg-i-pass@^2.0.0
[
 {
        "_id": "[email protected]",
  ...
  },
  {
    "_id": "[email protected]",
  }
]

npm 6 returns an array of results that satisfy the semver range.

Steps To Reproduce:

Use commands as seen above

Environment:

OSX 10.15.6
Node.js v14.6.0
npm v7.0.0-beta.2

@MylesBorins MylesBorins added Release 7.x work is associated with a specific npm 7 release Bug thing that needs fixing Needs Triage needs review for next steps labels Aug 7, 2020
@darcyclarke darcyclarke removed the Needs Triage needs review for next steps label Aug 10, 2020
@darcyclarke darcyclarke added this to the OSS - Sprint 13 milestone Aug 10, 2020
@isaacs
Copy link
Contributor

isaacs commented Aug 23, 2020

Fixed in latest v7 beta. Thanks!

@isaacs isaacs closed this as completed Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

4 participants