Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2016-05-13 05:29:07 +0300
committerKat Marchán <kzm@sykosomatic.org>2016-05-20 00:34:26 +0300
commit42d71be2cec674dd9e860ad414f53184f667620d (patch)
treee5860538694b09a0e19576b418499ae3df089e7a /node_modules/read-package-tree
parentc698ae666afc92fbc0fcba3c082cfa9b34a4420d (diff)
ls: fix filter when prerelease version present
If `ls` for a package without using a semver filter, for example, `npm ls foo` vs `foo@1.2.3`, `ls` was using semver ranges based on `*`, which doesn't match prerelease versions. So, if you had installed a prerelease version (`foo@1.2.3-xyz`), the `npm ls` will return no results for `foo`, at all. This patch bypasses the semver check entirely when there's no semver filter for the search. Fixes: https://github.com/npm/npm/issues/9436 Credit: @zkat PR-URL: https://github.com/npm/npm/pull/12685 Reviewed-By: @othiym23
Diffstat (limited to 'node_modules/read-package-tree')
0 files changed, 0 insertions, 0 deletions