@infrab4a/connect-angular 4.17.0-beta.4 → 4.17.0-beta.5

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.
@@ -2617,6 +2617,7 @@ class AngularConnectModule {
2617
2617
  return {
2618
2618
  ngModule: AngularConnectModule,
2619
2619
  providers: [
2620
+ { provide: FIREBASE_APP_NAME, useValue: nameOrConfig },
2620
2621
  {
2621
2622
  provide: CATEGORY_STRUCTURE,
2622
2623
  useClass: isNil(options?.oldCategoryStructure) || options?.oldCategoryStructure
@@ -2626,7 +2627,6 @@ class AngularConnectModule {
2626
2627
  { provide: PERSISTENCE_PROVIDER, useClass: options?.persistenceProvider || CookieDataPersistence },
2627
2628
  ...(isNil(defaultShop) ? [] : [{ provide: DEFAULT_SHOP, useValue: defaultShop }]),
2628
2629
  ...(isNil(options?.firebase) ? [] : [{ provide: FIREBASE_OPTIONS, useValue: options?.firebase }]),
2629
- ...(isNil(options?.firebase) ? [] : [{ provide: FIREBASE_APP_NAME, useValue: nameOrConfig }]),
2630
2630
  ...(isNil(options?.elasticSearch) ? [] : [{ provide: ES_CONFIG, useValue: options.elasticSearch }]),
2631
2631
  ...(isNil(options?.vertexConfig) ? [] : [{ provide: VERTEX_CONFIG, useValue: options.vertexConfig }]),
2632
2632
  ...(isNil(options?.hasura) ? [] : [{ provide: HASURA_OPTIONS, useValue: options.hasura }]),
@@ -2681,8 +2681,8 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2681
2681
  return appName ? getApp(appName) : getApp();
2682
2682
  }
2683
2683
  catch (error) {
2684
+ console.warn('Firebase app not found, initializing new app');
2684
2685
  if (error instanceof Error) {
2685
- console.warn('Firebase app not found, initializing new app');
2686
2686
  console.error(error.message);
2687
2687
  }
2688
2688
  return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
@@ -2718,8 +2718,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2718
2718
  return appName ? getApp(appName) : getApp();
2719
2719
  }
2720
2720
  catch (error) {
2721
+ console.warn('Firebase app not found, initializing new app');
2721
2722
  if (error instanceof Error) {
2722
- console.warn('Firebase app not found, initializing new app');
2723
2723
  console.error(error.message);
2724
2724
  }
2725
2725
  return initializeApp(injector.get(FIREBASE_OPTIONS), appName);