kempo 4.5.3 → 4.5.4
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/package.json
CHANGED
|
@@ -124,12 +124,14 @@ export default async ({ name }) => {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/*
|
|
127
|
-
Register declarative dashboard widgets
|
|
127
|
+
Register declarative dashboard widgets. A widget is decoration, so one that cannot be registered (an
|
|
128
|
+
invalid definition, or a site that has not applied the dashboardWidget table yet) is reported and
|
|
129
|
+
skipped rather than failing the install of an otherwise working extension.
|
|
128
130
|
*/
|
|
129
131
|
for(const widget of kempoConfig.widgets || []){
|
|
130
132
|
const [widgetError] = await registerDashboardWidget({ ...widget, owner: name });
|
|
131
133
|
if(widgetError){
|
|
132
|
-
|
|
134
|
+
console.warn(`[${name}] dashboard widget "${widget.key}" was not registered: ${widgetError.msg}`);
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
137
|
|
|
@@ -150,7 +150,7 @@ export default async ({ name, version = 'latest' }) => {
|
|
|
150
150
|
for(const widget of newKempo.widgets || []){
|
|
151
151
|
const [widgetError] = await registerDashboardWidget({ ...widget, owner: name });
|
|
152
152
|
if(widgetError){
|
|
153
|
-
|
|
153
|
+
console.warn(`[${name}] dashboard widget "${widget.key}" was not registered: ${widgetError.msg}`);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
for(const { key } of oldKempo.widgets || []){
|