@wolkabout/commons 0.0.13 → 0.0.14

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.
@@ -433,7 +433,13 @@ class FeatureRegistry {
433
433
  loadExternalFeatures(features) {
434
434
  features.forEach((feature) => {
435
435
  console.log('Loading external module: ', feature.remote + '/' + feature.feature);
436
- from(loadRemoteModule(feature.remote, feature.feature)).pipe(map(module => module.default), catchError(() => of(null)), filter((feature) => !!feature)).subscribe((feature) => this.registerFeature(feature));
436
+ from(loadRemoteModule(feature.remote, feature.feature)).pipe(map(module => {
437
+ console.log('Received', module);
438
+ return module.default;
439
+ }), catchError((error) => {
440
+ console.warn("Unable to load: ", feature.remote + '/' + feature.feature, error);
441
+ return of(null);
442
+ }), filter((feature) => !!feature)).subscribe((feature) => this.registerFeature(feature));
437
443
  });
438
444
  }
439
445
  get features$() {