From 98e96bc5eef660689a169340f89e7e8cd5fe9f77 Mon Sep 17 00:00:00 2001 From: kael-wq Date: Fri, 25 Sep 2026 17:07:58 +0800 Subject: [PATCH] fix(inspector): hide dedupe command when package manager is unknown The Multiple Versions page was showing "npm-registry dedupe" when viewing reports generated via the browser, where the package manager is not known. `npm-registry` is an internal value, not a runnable command. Now the dedupe hint is only shown when the package manager is known and supports the dedupe command (i.e., not `bun` and not `npm-registry`). Closes #213 --- .../src/app/components/report/MultipleVersions.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node-modules-inspector/src/app/components/report/MultipleVersions.vue b/packages/node-modules-inspector/src/app/components/report/MultipleVersions.vue index 658218ed..84d56df9 100644 --- a/packages/node-modules-inspector/src/app/components/report/MultipleVersions.vue +++ b/packages/node-modules-inspector/src/app/components/report/MultipleVersions.vue @@ -40,9 +40,9 @@ function showGraph(pkgs: PackageNode[]) { Multi-Versions Packages - +
Run - {{ rawPayload?.packageManager }} dedupe + {{ rawPayload.packageManager }} dedupe to de-duplicate packages that satisfies with the ranges