@trops/dash-core 0.1.366 → 0.1.367

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64988,11 +64988,16 @@ async function getDashboardPublishPlan$1(
64988
64988
  return { success: false, error: deps.error };
64989
64989
  }
64990
64990
 
64991
+ // Dedupe by scope/name — many components can share the same package,
64992
+ // and there's no point sending duplicate refs to the registry.
64991
64993
  const refs = [];
64994
+ const seenRefs = new Set();
64992
64995
  for (const w of deps.widgets) {
64993
- if (w.scope && w.packageName) {
64994
- refs.push({ scope: w.scope, name: w.packageName });
64995
- }
64996
+ if (!w.scope || !w.packageName) continue;
64997
+ const key = `${w.scope}/${w.packageName}`;
64998
+ if (seenRefs.has(key)) continue;
64999
+ seenRefs.add(key);
65000
+ refs.push({ scope: w.scope, name: w.packageName });
64996
65001
  }
64997
65002
  if (deps.theme && deps.theme.scope && deps.theme.name) {
64998
65003
  refs.push({ scope: deps.theme.scope, name: deps.theme.name });