Skip to content

Commit

Permalink
Fix the jspm inspect registry:name when there are forks
Browse files Browse the repository at this point in the history
Currently, this only shows top level dependencies.
This commit allows to show all the forks and what their parent
packages are.

This was previously discussed in PR #1968 as a new feature,
while it was actually a bug.

Example output:

    Installed versions of npm:d3

       d3 4.1.1 (^4.1.1)

       npm:d3-heatmap@1.2.1
         d3 3.5.17 (^3.5.16)
  • Loading branch information
Olivier Ligot authored and guybedford committed Jul 19, 2016
1 parent 56bf63f commit d5f23fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ function loadExistingRange(name, parent, inject) {
});
})
.then(function(deps) {
return deps[name];
return parent ? deps[(new PackageName(parent)).exactName][name] : deps[name];
});
})
.then(function(target) {
Expand Down

0 comments on commit d5f23fb

Please sign in to comment.