@infrab4a/connect-angular 4.17.0-beta.4 → 4.17.0-beta.6
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);
|
|
@@ -2699,8 +2699,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2699
2699
|
}
|
|
2700
2700
|
catch (error) {
|
|
2701
2701
|
console.warn('ReCAPTCHA site key not provided or invalid, App Check not initialized');
|
|
2702
|
+
return initializeAppCheck(app, {
|
|
2703
|
+
provider: undefined,
|
|
2704
|
+
isTokenAutoRefreshEnabled: true,
|
|
2705
|
+
});
|
|
2702
2706
|
}
|
|
2703
|
-
return;
|
|
2704
2707
|
}),
|
|
2705
2708
|
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
2706
2709
|
AngularElasticSeachModule,
|
|
@@ -2718,8 +2721,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2718
2721
|
return appName ? getApp(appName) : getApp();
|
|
2719
2722
|
}
|
|
2720
2723
|
catch (error) {
|
|
2724
|
+
console.warn('Firebase app not found, initializing new app');
|
|
2721
2725
|
if (error instanceof Error) {
|
|
2722
|
-
console.warn('Firebase app not found, initializing new app');
|
|
2723
2726
|
console.error(error.message);
|
|
2724
2727
|
}
|
|
2725
2728
|
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
@@ -2736,8 +2739,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2736
2739
|
}
|
|
2737
2740
|
catch (error) {
|
|
2738
2741
|
console.warn('ReCAPTCHA site key not provided or invalid, App Check not initialized');
|
|
2742
|
+
return initializeAppCheck(app, {
|
|
2743
|
+
provider: undefined,
|
|
2744
|
+
isTokenAutoRefreshEnabled: true,
|
|
2745
|
+
});
|
|
2739
2746
|
}
|
|
2740
|
-
return;
|
|
2741
2747
|
}),
|
|
2742
2748
|
provideStorage((injector) => getStorage(injector.get(FirebaseApp))),
|
|
2743
2749
|
AngularElasticSeachModule,
|