-
-
Notifications
You must be signed in to change notification settings - Fork 328
Open
Labels
Description
Describe the bug
The npmx interface links to the wrong package when a package specifies a dependency through an alias (e.g., "foo": "npm:bar@1.2.3" in package.json) in the "Dependencies" section of the sidebar. See for example string-width-cjs npm:string-wi... in the preview below:
which currently links to https://npmx.dev/package/string-width-cjs but should link to https://npmx.dev/package/string-width per https://npmx.dev/package-code/@isaacs/cliui/v/8.0.2/package.json#L53.
Additional context
Example:
- For https://npmx.dev/package/@isaacs/cliui/v/8.0.2 the
*-cjsdependencies link to the wrong package and should instead link to the aliased package. - Compare that to https://www.npmjs.com/package/@isaacs/cliui/v/8.0.2?activeTab=dependencies which only links to the correct dependencies1.
Logs
n/aFootnotes
-
this appears to be a quite recent change because I definitely remember them linking to the alias-named package not too long ago. See also https://snyk.io/blog/exploring-extensions-of-dependency-confusion-attacks-via-npm-package-aliasing/. ↩
Reactions are currently unavailable