diff options
Diffstat (limited to 'lib/commands/diff.js')
-rw-r--r-- | lib/commands/diff.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/commands/diff.js b/lib/commands/diff.js index bbd6fae66..c8fd73491 100644 --- a/lib/commands/diff.js +++ b/lib/commands/diff.js @@ -185,7 +185,7 @@ class Diff extends BaseCommand { // work from the top of the arborist tree to find the original semver // range declared in the package that depends on the package. let bSpec - if (spec.rawSpec) { + if (spec.rawSpec !== '*') { bSpec = spec.rawSpec } else { const bTargetVersion = @@ -269,7 +269,7 @@ class Diff extends BaseCommand { return specs.map(i => { const spec = npa(i) - if (spec.rawSpec) { + if (spec.rawSpec !== '*') { return i } |