@c8y/ngx-components 1017.0.110 → 1017.0.112
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/core/plugins/plugins-resolve.service.d.ts +4 -1
- package/esm2020/core/plugins/plugins-resolve.service.mjs +10 -8
- package/fesm2015/c8y-ngx-components.mjs +9 -7
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +9 -7
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -10224,10 +10224,7 @@ class PluginsResolveService {
|
|
|
10224
10224
|
* @param remoteModules The remote plugins to load as factory name mapping array.
|
|
10225
10225
|
*/
|
|
10226
10226
|
resolveRemotePlugins(remoteModules) {
|
|
10227
|
-
|
|
10228
|
-
.filter(({ factory }) => factory)
|
|
10229
|
-
.map(({ name, factory }) => factory[name]);
|
|
10230
|
-
this.loadModulesDynamically(remoteNgModules);
|
|
10227
|
+
this.loadModulesDynamically(remoteModules);
|
|
10231
10228
|
this.refreshHooks();
|
|
10232
10229
|
this.markPluginsAsLoaded();
|
|
10233
10230
|
}
|
|
@@ -10235,9 +10232,14 @@ class PluginsResolveService {
|
|
|
10235
10232
|
* Loads modules and handles hooking correctly.
|
|
10236
10233
|
* @param remoteNgModules The modules to load.
|
|
10237
10234
|
*/
|
|
10238
|
-
loadModulesDynamically(
|
|
10239
|
-
for (const
|
|
10240
|
-
|
|
10235
|
+
loadModulesDynamically(remoteModules) {
|
|
10236
|
+
for (const { factory, name } of remoteModules) {
|
|
10237
|
+
try {
|
|
10238
|
+
this.loadModule(factory[name]);
|
|
10239
|
+
}
|
|
10240
|
+
catch (ex) {
|
|
10241
|
+
console.error(`Failed to load ${name}`, ex);
|
|
10242
|
+
}
|
|
10241
10243
|
}
|
|
10242
10244
|
}
|
|
10243
10245
|
loadModule(remoteNgModule) {
|