@trops/dash-core 0.1.104 → 0.1.105
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.
- package/dist/electron/index.js +14 -9
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +32 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +73 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/electron/index.js
CHANGED
|
@@ -11074,15 +11074,20 @@ async function prepareDashboardForPublish$1(
|
|
|
11074
11074
|
let missingFromRegistry = [];
|
|
11075
11075
|
if (!registryCheckFailed) {
|
|
11076
11076
|
const registryNames = new Set(registryPackages.map((p) => p.name));
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
)
|
|
11085
|
-
|
|
11077
|
+
const missingWidgets = widgets.filter(
|
|
11078
|
+
(w) => w.required !== false && !registryNames.has(w.package),
|
|
11079
|
+
);
|
|
11080
|
+
const grouped = {};
|
|
11081
|
+
for (const w of missingWidgets) {
|
|
11082
|
+
if (!grouped[w.package]) grouped[w.package] = [];
|
|
11083
|
+
const widgetName = w.id.includes(".") ? w.id.split(".")[1] : w.id;
|
|
11084
|
+
if (!grouped[w.package].includes(widgetName)) {
|
|
11085
|
+
grouped[w.package].push(widgetName);
|
|
11086
|
+
}
|
|
11087
|
+
}
|
|
11088
|
+
missingFromRegistry = Object.entries(grouped).map(
|
|
11089
|
+
([pkg, widgetNames]) => ({ package: pkg, widgets: widgetNames }),
|
|
11090
|
+
);
|
|
11086
11091
|
}
|
|
11087
11092
|
|
|
11088
11093
|
// 6. Generate registry manifest
|